BYOS Infrastructure · 7 min read · Updated 2026-11-14

Mailgun Custom SMTP Routing with Sakvex BYOS Marketing Platform

Configure Mailgun custom sending domains and SMTP credentials with Sakvex. Build a high-deliverability marketing engine with Mailgun's global delivery network.

SX
Sakvex Engineering Email Infrastructure & Deliverability Team

Introduction: Bridging Mailgun and Email Marketing

Sinch Mailgun is a heavyweight in cloud email delivery. Built specifically for developers, Mailgun powers billions of transactional notifications and marketing messages each month with sophisticated log search tools, custom sending domains, and optional dedicated IP pools.

However, while Mailgun provides developer APIs and SMTP endpoints, it is not an all-in-one visual email marketing platform:

  • There is no drag-and-drop template builder with automated Outlook VML safety.
  • There is no visual subscriber database or behavioral segment filter.
  • Marketing teams cannot easily schedule newsletters or manage automated customer drips without developer assistance.
+--------------------------------------------------------------------------+
| Mailgun + Sakvex High-Velocity Architecture:                             |
|                                                                          |
| [ Marketing Team / Sakvex Visual Studio ]                                |
|   | - Drag-and-Drop Templates with Outlook VML Rendering Safety          |
|   | - Audience CRM, Custom Tags, and Behavioral Segmentation             |
|   | - Preflight DNS Deliverability Verification & RFC 8058 Injection     |
|   v                                                                      |
| [ TLS Socket Outbound Dispatch (Port 587 STARTTLS) ]                     |
|   v                                                                      |
| [ Mailgun Global SMTP Relay (smtp.mailgun.org / smtp.eu.mailgun.org) ]   |
|   | - Dedicated or Shared Clean Sending IP Pools                         |
|   | - Real-Time Message Analytics & Log Retention                        |
|   | - Regional US & EU Data Sovereignty Options                          |
|   v                                                                      |
| [ Customer Inboxes: Gmail, Microsoft 365, Apple Mail, Yahoo ]            |
+--------------------------------------------------------------------------+

By connecting Mailgun directly to Sakvex, your business bridges the gap between developer-grade cloud delivery and modern visual marketing execution.


Step 1: Configuring Your Domain in Mailgun

To start sending through Mailgun, configure and verify your custom sending domain:

1.1 Add Sending Domain

  1. Log into your Mailgun Dashboard at app.mailgun.com.
  2. In the left navigation sidebar, go to Sending > Domains.
  3. Click Add New Domain.
  4. Enter your domain (e.g., mail.yourbrand.com or root domain yourbrand.com).
  5. Select your target region: US or EU (for GDPR compliance).
  6. Click Add Domain.

1.2 Publish Required DNS Records

Mailgun provides five DNS records necessary for full deliverability authentication:

# 1. SPF Record
Type:  TXT
Name:  mail.yourbrand.com
Value: "v=spf1 include:mailgun.org ~all"

# 2. DKIM Record (2048-bit RSA)
Type:  TXT
Name:  krs._domainkey.mail.yourbrand.com
Value: "v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA..."

# 3. Custom MX Records (For Inbound & Bounce Delivery)
Type:     MX
Name:     mail.yourbrand.com
Priority: 10
Value:    mxa.mailgun.org

Type:     MX
Name:     mail.yourbrand.com
Priority: 10
Value:    mxb.mailgun.org

# 4. CNAME Tracking Record
Type:   CNAME
Name:   email.mail.yourbrand.com
Target: mailgun.org

Once published in your DNS provider, click Verify DNS Settings in Mailgun until all indicators display green checkmarks.


Step 2: Configuring Root DMARC Alignment

To ensure high inbox placement across modern spam filters, publish your DMARC record on your root domain:

Type:  TXT
Name:  _dmarc.yourbrand.com
Value: "v=DMARC1; p=quarantine; pct=100; rua=mailto:[email protected]; aspf=r; adkim=r;"

DMARC alignment requires that the domain in your friendly From header matches the domain verified in Mailgun. If sending from [email protected], your SPF and DKIM records align in strict or relaxed mode, satisfying Google and Yahoo bulk sender requirements.


Step 3: Generating Mailgun SMTP Credentials

Mailgun assigns dedicated SMTP credentials to each verified sending domain:

  1. In the Mailgun Dashboard, select your domain under Sending > Domains.
  2. Click the Domain Settings tab, then select the Sending keys or SMTP credentials sub-tab.
  3. Click Add New SMTP User.
  4. Enter a username (e.g., [email protected]) and set a strong password.
  5. Click Create Credentials.

Step 4: Connecting Mailgun to Sakvex

Connecting Mailgun into Sakvex takes two minutes:

  1. In your Sakvex workspace, navigate to Settings > SMTP Relay.
  2. Enter the connection parameters:
    • Host: smtp.mailgun.org (or smtp.eu.mailgun.org if using Mailgun EU)
    • Port: 587
    • Security: STARTTLS
    • Username: Your Mailgun SMTP username (e.g., [email protected])
    • Password: Your Mailgun SMTP password
    • Sender Email: An authorized email on your verified domain (e.g., [email protected])
    • Sender Name: Your Brand Name
  3. Click Save Relay & Verify Connection.

Sakvex runs an immediate socket handshake test, verifying TLS encryption and Mailgun authentication.


Dedicated IP Warming & Traffic Staging in Mailgun

When upgrading to a dedicated IP in Mailgun, internet service providers have zero historical reputation data for that specific IP address. Blasting a massive 100,000-subscriber campaign immediately through a cold IP will trigger automated rate limits and spam filtering at Gmail and Microsoft.

Sakvex provides built-in tools to support a structured four-week warming schedule:

Warmup Stage Daily Send Target Suggested Audience Segment Expected ISP Behavior
Week 1 (Days 1–7) 1,000 – 2,500 / day Highly engaged contacts (opened within 14 days) Establishing IP baseline reputation
Week 2 (Days 8–14) 5,000 – 10,000 / day Active contacts (opened within 30 days) Increasing hourly throughput limits
Week 3 (Days 15–21) 20,000 – 40,000 / day Active contacts (opened within 60 days) Full inbox trust established
Week 4 (Days 22+) Full list volume Complete segmented broadcast audience Unthrottled parallel socket dispatch

Using Sakvex’s audience segmentation filters, you can isolate your most active subscribers during the initial warmup window, ensuring high open rates and positive user interaction signals that reinforce your Mailgun dedicated IP standing.


Handling Webhooks and Bounce Synchronization

To maintain pristine sender reputation, failed deliveries must be quarantined immediately before they harm your domain's standing:

  1. Hard Bounces (5xx SMTP Errors): Recipient mailbox does not exist (550 5.1.1). Sakvex immediately marks the address as permanently suppressed, preventing future dispatch attempts.
  2. Soft Bounces (4xx Temporary Errors): Mailbox temporarily full or receiving server busy (452 4.2.2). Sakvex tracks retry attempts and automatically suppresses records that fail consistently across three consecutive broadcasts.
  3. Spam Complaints (FBL Reports): Subscriber clicks "Report Spam" in their email client. Sakvex logs the feedback loop notification and removes the subscriber from all active marketing segments.

Deliverability QA: Preflight Modal and RFC 8058 Headers

Before you send a campaign, Sakvex executes automatic deliverability safeguards:

  • Preflight DNS QA Modal: Queries public nameservers to confirm that your Mailgun DKIM record resolves, your SPF string includes include:mailgun.org, and DMARC alignment passes.
  • Automated RFC 8058 Injection: Every outgoing email embeds machine-readable one-click unsubscribe headers:
List-Unsubscribe: <https://sakvex.com/api/unsubscribe/one-click?token=3b8d1a>, <mailto:[email protected]?subject=one-click>
List-Unsubscribe-Post: List-Unsubscribe=One-Click
  • Outlook VML Rendering: Automatically embeds Microsoft Vector Markup Language directives for clean button and container rendering across desktop Outlook clients.

Cost Comparison: Mailchimp vs Sakvex + Mailgun

Compare the monthly software costs for a business communicating with 50,000 subscribers sending 150,000 emails per month:

Cost Element Mailchimp Standard Plan Sakvex + Mailgun Monthly Net Savings Annual Capital Saved
Email Marketing Software $350.00 / month $39.00 / month (Sakvex Agency · ₹2,499/mo) $330.00 / mo $3,960.00 / year
Mailgun Delivery Fees Included in list tax $75.00 / month (150k sends) -$75.00 / mo -$900.00 / year
Total Monthly Spend $350.00 / month $95.00 / month $255.00 / mo (72.8%) $3,060.00 / year

By connecting Mailgun to Sakvex, you eliminate Mailchimp's $350/month list markup, saving over $3,000 every single year while routing through Mailgun's developer infrastructure.


Conclusion

Mailgun is a powerhouse of cloud email delivery, but it needs an equally capable marketing front-end to unlock its full potential.

By pairing Mailgun with Sakvex, your team gets an enterprise visual email marketing suite, pristine deliverability, and wholesale cloud economics.

Interactive Cost Model

Model Your BYOS Economics

Compare a commercial plan with a Sakvex software fee plus a provider transport estimate. Confirm current provider pricing before purchasing.

50,000
5,000 100,000 200,000 300,000+
150,000
10,000 300,000 600,000 1,000,000+
BYOS Economics Formula
Sakvex charges a predictable monthly software fee. Sending is billed directly by your SMTP provider; this calculator uses an editable estimate and is not a quote.
Estimated Monthly Difference
Model estimate
Difference $296.00 per month
Equal to $3,552.00 in annual budget reclaimed
Mailchimp Cost
$350.00
/ month
Sakvex + SES Cost
$54.00
/ month total
Sakvex Platform Fee: $39.00/mo
AWS SES Wholesale Delivery: $15.00/mo
Compare Your Setup →

14-day free trial · Zero credit card required upfront

Frequently Asked Questions

Mailgun excels at developer-first email delivery, DNS verification, and dedicated IP routing. However, it lacks a visual drag-and-drop newsletter builder, subscriber CRM, and marketing segmentation suite. Sakvex provides that entire visual layer on top of Mailgun's SMTP relay.

Mailgun operates two isolated infrastructure regions: US (smtp.mailgun.org on port 587) and EU (smtp.eu.mailgun.org on port 587). Sakvex supports both regions, allowing European organizations to ensure 100% GDPR data sovereignty.

Sakvex handles hard and soft bounces automatically through integrated IMAP bounce mailboxes or webhook endpoints, updating subscriber suppression statuses in real time.

Yes. When you attach a dedicated IP to your sending domain in Mailgun, all outbound emails dispatched from Sakvex automatically route through that dedicated IP address.
Enterprise Architecture Built into the Sakvex Platform Engine:
Journey Automation Quiet hours protection (9 AM – 6 PM) in contact local timezone
Campaign Scheduling Timezone calendar dispatches with automated preflight QA
Public Signup Forms Invisible bot honeypot protection & double opt-in tokens
BYOS SMTP Freedom Wholesale delivery via AWS SES, Postmark, or private MTA
Zero Per-Contact Surcharges

Take Full Control of Your Email Delivery Infrastructure

Connect your AWS SES, Postmark, or custom SMTP server to Sakvex in under 3 minutes. Experience wholesale email economics with agency-grade marketing automation.