Mailgun

Solid mid-market option with US and EU regions. Per-domain isolation.

Setup

  1. Add your sender domain in the Mailgun dashboard. Mailgun shows a list of DNS records (TXT for SPF + DKIM, optional MX for inbound).

  2. Add those records at your DNS host. Mailgun re-verifies automatically every few minutes.

  3. Settings → API security → grab the Private API key.

  4. Brand → Provider → pick Mailgun. Paste:

    • domain — the verified sending domain
    • regionus or eu
    • api_key — the private API key

EU vs US

Mailgun isolates domains per region. If you signed up in the EU, your domain lives on api.eu.mailgun.net; US domains use api.mailgun.net. Pick the matching region in Maillayer or the API call will 404.

Webhooks

Sending → Webhooks → add an endpoint per event:

https://<your-app>/api/webhooks/mailgun/<brandId>

Subscribe to Permanent failure and Spam complaint at minimum. Maillayer verifies the webhook signature against your private key.

Sandbox domain doesn't work for real sends
New Mailgun accounts get a sandbox*.mailgun.org domain that only delivers to verified-recipient addresses. Add and verify your own domain before running real campaigns.