Mailgun alternative

The open-source Mailgun alternative, on your own Amazon SES

Sinch's email API with SMTP, inbound routes and email validation. OpenSES gives you the sending API, inbox, contacts, broadcasts and sequences on your own AWS account, so you pay Amazon's $0.10 per 1,000 emails and keep the domain reputation.

Cost

Mailgun vs your own SES, per month

List prices from Mailgun's pricing page, checked 9 November 2026. SES is à la carte. OpenSES adds nothing per email.

Emails per month10k50k100k500k1M
Mailgun$15$35$90$530$1,080
OpenSES + your SES$1$5$10$50$100

Source: Mailgun pricing and Amazon SES pricing explained. “from” means the vendor only publishes a starting price for that plan. Full breakdown: Mailgun pricing in 2026.

Why teams look for a Mailgun alternative

  • Overage pricing makes spiky volume expensive
  • Short log retention on cheaper plans
  • Wanting the inbound features without a per-route limit

What Mailgun does well

  • Inbound routing and parsing
  • SMTP and API side by side
  • Dedicated IPs from mid-tier plans
Side by side

OpenSES and Mailgun

OpenSESMailgun
What it isOpen-source email platform on your own Amazon SESEmail API
Who sends the emailAmazon SES in your AWS accountMailgun's infrastructure
Price per 1,000 emails$0.10, paid to AWSPlan price plus overage
Free optionSelf-host free; Cloud 7-day free trial100 emails a day, one-day log retention, one inbound route.
Domain reputationYours; stays if you leave OpenSESTied to your Mailgun account
Transactional APIYes, with templates, scheduling and idempotencyYes
Receiving and inboxYes, threaded, with replies; on your domain or a subdomain beside Google WorkspaceInbound routes to a URL
Broadcasts and sequencesYes, with topics, segments and one-click unsubscribeNo
Self-hostYes, one command into your AWSNo
Source codeAGPL-3.0Closed
Migration

Moving from Mailgun to OpenSES

You can run both side by side while you switch; nothing has to happen in one night.

  1. 1

    Add your domain in OpenSES and publish the DKIM TXT and MAIL FROM records.

  2. 2

    Replace Mailgun's form-encoded send call with a JSON POST to /v1/emails; v:variables become template variables.

  3. 3

    Mailgun routes become OpenSES inboxes: turn on receiving for the domain and change the MX to SES's inbound endpoint. Forwarding to a URL becomes the email.received webhook.

  4. 4

    Export bounces, unsubscribes and complaints and import them as suppressions.

  5. 5

    Move traffic, then remove Mailgun's DNS records.

When to stay on Mailgun

OpenSES is not the right choice for everyone. Stay if:

  • You need Mailgun's email validation API as a core feature
  • You want SMTP relay; OpenSES sends over the HTTP API
FAQ

Common questions

Run it on your own SES

Self-host OpenSES for free, or use OpenSES Cloud with a 7-day free trial. Either way, Amazon bills you $0.10 per thousand emails and your domains stay in your AWS account.