Skip to content

Deliverability

Mailgun for email marketing: campaigns on your Mailgun account

Mailgun email marketing explained: what Mailgun offers for campaigns, its acceptable use thresholds, plan pricing, and what a campaign platform on top adds.

· 5 min read · By

Mailgun for email marketing: campaigns on your Mailgun account

TL;DR: Mailgun can carry email marketing: it's an API and SMTP sending service with templates, mailing lists, batch sending up to 1,000 recipients per call, tracking and analytics. What it doesn't hand you is a full campaign workflow (list consent records, suppression across providers, scheduling drops, per-offer reporting), and its acceptable use policy is strict: explicit opt-in only, a complaint threshold of 0.08%, and affiliate marketing accepted only with specific guarantees. If your program fits that policy, a campaign platform on top of your own Mailgun account gives you the workflow while Mailgun does the delivery.

Mailgun (Sinch Mailgun) is an email delivery service for developers: you send through its REST API or SMTP relay and receive events by webhook. Email marketing here means bulk messages to subscribers who opted in: newsletters, promotions and offers, as opposed to transactional email such as receipts.

What Mailgun gives you for campaigns

According to Mailgun's email marketing page and documentation:

  • Templates: HTML or a drag-and-drop builder, stored with versions and filled with variables at send time.
  • Batch sending: one API call with up to 1,000 recipients and recipient variables, so each person gets an individual message. The batch sending guide warns that without recipient variables every address shows in the To field.
  • Mailing lists: stored lists you send to with one address.
  • Tracking and events: opens, clicks and unsubscribes, plus webhooks for deliveries, failures and complaints.
  • Suppressions: bounces, unsubscribes and complaints are suppressed automatically.
  • US or EU region: data stays in the region of the account.

That's enough to send a newsletter from your own code. For a team running several lists, offers or senders, the gaps are the workflow around the send: who may send what, which addresses are suppressed for which advertiser, when to pause, and what each send earned.

What Mailgun's acceptable use policy requires

Read Mailgun's acceptable use policy before the first campaign. The points that matter most for marketing:

RuleWhat the policy says
ConsentExplicit, provable consent through a confirmed single or double opt-in, with an unticked checkbox
ListsBought, rented or scraped lists are prohibited
UnsubscribeA clear link in every marketing email, honored without undue delay
PrivacyA link to your privacy policy in each email
Bounces5% or less
Unsubscribes1.4% or less (1% if unsubscribes exceed clicks)
Complaints0.08% or less
BlocksUnder 20%

One clause matters for affiliate mailers in particular: the prohibited-content section says Mailgun does not work in principle with senders who promote affiliate marketing, payday loans or debt collection "unless the sender gives us sufficient and specific guarantees". If you mail affiliate offers, contact Mailgun first and keep their answer in writing. Otherwise use a provider whose policy fits your program; see multi-provider sending for how several accounts work side by side.

The 0.08% complaint threshold is also stricter than Gmail's 0.3% ceiling in the bulk sender requirements, so a stop rule well below it is worth setting.

Mailgun or another provider for affiliate offers?

If your program is affiliate offers, the honest answer is: ask Mailgun first. The policy doesn't ban affiliate marketing outright; it says Mailgun doesn't work with it "in principle" without specific guarantees, which in practice means a conversation about your list sources, consent records and complaint history before volume goes out. Some senders get that agreement, others are better served elsewhere.

Whatever the answer, don't put your whole program on one account. A suspended account stops every drop at once. Spreading traffic across a few providers you've each warmed up, each with its own authenticated domain, keeps one decision from halting the business, as long as each account carries the mail its policy accepts. That's capacity planning, not filter evasion: the same list never goes to a second provider to get around a block. Amazon SES, for example, has its own rules and review process, described in our Amazon SES bulk email guide.

What Mailgun costs

Mailgun's pricing page lists these Send plans (published 1 Dec 2026, USD):

PlanMonthlyIncludedNotes
Free$0100 emails a day1 custom sending domain
Basicfrom $1510,000 emailsOverage from $1.80 per 1,000
Foundationfrom $3550,000 emails1,000 sending domains, template builder
Scalefrom $90100,000 emailsDedicated IP pools, send time optimization

Dedicated IPs are available from 50,000 emails a month and included at 100,000+. Check the page for current numbers.

What a campaign platform adds on top

Inspiremail sends through your own Mailgun account; Mailgun keeps doing the delivery and you keep paying Mailgun directly. On top of it you get:

  • Lists with consent records and an organization-wide suppression list (emails, domains, SHA-256 hashes) applied before every send, including advertiser lists from Optizmo per offer.
  • Drops scheduled from Deploy, with sending pools that can mix Mailgun with Amazon SES, SendGrid, Postmark, SparkPost or Brevo.
  • Your own tracking domain per sender: Mailgun's tracking is switched off and messages go out as raw MIME, so List-Unsubscribe and your headers arrive untouched (why tracking domains matter).
  • A stop rule: a drop pauses itself when bounces pass 5% or complaints pass 0.1% once 500 messages are delivered; both thresholds can be changed per drop, which helps you stay under Mailgun's limits.
  • Warmup caps for new domains, a live monitor and reports per list, sender and offer.

Connecting takes a private API key, the region and one webhook per event type; the steps are in the Mailgun setup guide, and the overview is on the Mailgun integration page.

Before your first Mailgun campaign

  1. Verify your own sending domain; the sandbox domain only delivers to authorized recipients.
  2. Publish SPF, DKIM and DMARC for it (SPF, DKIM and DMARC explained).
  3. Confirm your list was collected with an opt-in you can prove, and import past unsubscribes and bounces as suppression.
  4. Start with your most engaged subscribers and ramp volume on a new domain or IP over days, not hours.
  5. Send a seed test, then watch bounces and complaints during the first drops.

How we checked this guide

We read Mailgun's acceptable use policy, pricing page and documentation linked above on 1 December 2026, and checked the Inspiremail behavior against the product. Prices and thresholds change; Mailgun's own pages are authoritative. For the wider workflow, see the affiliate email marketing guide. If something here no longer matches, contact us and we'll correct it, as our editorial policy describes.

Frequently asked questions

Can I use Mailgun for marketing emails?

Yes, if every recipient gave explicit, provable consent. Mailgun's acceptable use policy requires a confirmed opt-in, an unsubscribe link in every marketing email, a link to your privacy policy and sending metrics within its thresholds, and it forbids bought, rented or scraped lists.

Does Mailgun allow affiliate marketing?

Mailgun's acceptable use policy lists affiliate marketing among the activities it does not work with in principle, unless the sender gives sufficient and specific guarantees at Mailgun's discretion. If you mail affiliate offers, talk to Mailgun before you send and keep written confirmation of what was agreed.

What bounce and complaint rates does Mailgun accept?

The policy sets bounces at 5% or less, unsubscribes at 1.4% or less (1% if unsubscribes exceed clicks), spam complaints at 0.08% or less and blocks under 20%. Mailgun may update these thresholds without notice.

How many recipients can one Mailgun API call have?

Up to 1,000 recipients per batch, using recipient variables so each person gets an individual message. Larger lists are sent as several batches, or through a Mailgun mailing list.

Does Inspiremail use Mailgun's own click tracking?

No. Inspiremail sends each message to Mailgun as raw MIME with Mailgun's tracking switched off; clicks, opens and unsubscribes run on your own tracking domain, and Mailgun's signed webhooks bring deliveries, failures and complaints back.

  • Mailgun email marketing
  • mailgun
  • mailgun bulk email
  • batch sending
  • acceptable use policy

Product updates and deliverability notes

One email when something worth knowing ships — new features, provider changes and bulk-sender rule updates. No spam, unsubscribe anytime.

Ready to run your next drop on Inspiremail?

Tell us about your volume, providers and networks — or apply directly and pick your plan during onboarding.

Already a customer? Sign in