Email Providers

Mailgun

Configure Mailgun as your email provider in Notifuse.

Mailgun integration allows you to use Mailgun for sending transactional emails through Notifuse.

Configuration

Navigate to Settings → Integrations, click Add integration, then choose Mailgun under Email sending. The form opens full page.

Mailgun Integration Form Mailgun Settings

Form Fields

FieldDescriptionExample
DomainYour verified sending domainmg.yourdomain.com
API KeyYour Mailgun private API keykey-1234567890abcdef...
RegionMailgun region dropdownUS or EU

Senders List

Add sender addresses that have been verified in your Mailgun account:

FieldDescriptionExample
NameDisplay name for the senderSupport Team
EmailSender email addresssupport@yourdomain.com

Important: Senders must be verified in Mailgun console before they can be used.

Usage Types

Mailgun can be used for both transactional emails and broadcast campaigns:

OptionDescriptionExamples
Use for transactionalSystem-generated emails triggered by user actionsPassword resets, order confirmations, account notifications
Use for marketingMass email campaigns and newslettersMarketing newsletters, product updates, promotional emails

Webhooks

Notifuse automatically registers the following Mailgun webhooks:

Webhook TypeDescriptionPurpose
DeliveryEmail successfully deliveredTrack successful deliveries
BounceEmail bouncedMonitor bounces
ComplaintsRecipient filed abuse complaintHandle abuse reports

These webhooks provide real-time feedback on email performance and delivery status.

Inbound replies (stop-on-reply)

To use Exit on reply in automations, Mailgun must forward inbound replies back to Notifuse. This is a one-time setup with two parts:

  1. Point your domain’s MX records at Mailgun. Add Mailgun’s inbound MX records to your sending domain’s DNS—typically mxa.mailgun.org and mxb.mailgun.org, both at priority 10. Without these, replies never reach Mailgun. Mailgun has no API for DNS, so this step is manual.
  2. Register the inbound route. In Settings → Integrations, open the Mailgun integration’s ⋯ menu and choose Re-register webhooks (Register webhooks if its webhooks are not registered yet). Alongside the delivery, bounce, and complaint webhooks, Notifuse creates a Mailgun Route that forwards inbound mail for your domain to Notifuse. The route is non-preemptive—it forwards a copy and lets any other Mailgun routes you’ve configured keep running, so it won’t disrupt an existing inbound setup.

Replies are matched to the original send by their Message-ID (an unguessable value Notifuse sets at send time), so no separate inbound signing key is required. The inbound endpoint is rate-limited.

Once both parts are in place, a contact’s reply to an automation email will exit their journey whenever that automation has Exit on reply enabled. Bounces and out-of-office auto-replies are filtered out and never count as a reply.

Prerequisites

Before configuring Mailgun:

  1. Mailgun Account: Active Mailgun account
  2. Verified Domain: Domain verified in Mailgun console
  3. API Key: Mailgun private API key

Testing

Click Test Integration to verify your configuration.