Skip to content
Start free trial

Mailgun integration

The Mailgun integration lets InboxEagle receive email events (opens, clicks, bounces, complaints) from your Mailgun account, pass them through the Bot Finder pipeline for bot classification, and surface clean engagement signals in your InboxEagle dashboard.


  • An active InboxEagle account (Basic or Agency plan required for Bot Finder)
  • A Mailgun account with a sending domain configured and verified
  • Mailgun API key or access to the Mailgun Control Panel to configure webhooks

Mailgun sends event data to InboxEagle via webhook on every email event. InboxEagle’s Bot Finder pipeline:

  1. Receives the Mailgun webhook payload
  2. Verifies the HMAC-SHA256 signature (Mailgun’s webhook authentication) with a 5-minute replay window
  3. Normalizes the event into a unified schema alongside SES and Klaviyo events
  4. Analyzes the event using the same 6-layer bot detection pipeline as the SES integration
  5. Delivers the classified result to your configured delivery method (webhook, SNS, or S3)

  1. Open the Mailgun integration

    In the InboxEagle app, go to Integrations → Mailgun (or navigate via the Integrations hub at app.inboxeagle.com/integrations).

  2. Get your InboxEagle Mailgun webhook URL

    Click Generate webhook URL. InboxEagle generates a unique endpoint URL for your account. Copy this URL — you will register it in Mailgun.

  3. Register the webhook in Mailgun

    In your Mailgun Control Panel:

    • Go to Sending → Webhooks
    • Select your sending domain from the dropdown
    • Click Add webhook
    • Choose the event types to send: Opens, Clicks, Bounces, Spam Complaints, Unsubscribes, Failures
    • Paste the InboxEagle webhook URL into the URL field
    • Click Create webhook
  4. Verify the connection

    In InboxEagle, the Mailgun integration page shows a Connection status indicator. After Mailgun sends the first test event, it updates to Active.

    If the status remains Pending, use Mailgun’s Test webhook feature (available in the webhook settings) to send a test event manually.

  5. Send a test email

    Send a test email through your Mailgun-configured sending domain. After a few minutes, bot-classified events should appear in the InboxEagle Bot Finder dashboard.


Mailgun eventInboxEagle classification
openedAnalyzed for bot activity; classified as bot, suspicious, or human
clickedAnalyzed for bot activity; classified as bot, suspicious, or human
deliveredLogged; not analyzed for bots
bouncedLogged; contributes to bounce rate metrics
complainedLogged; contributes to spam complaint metrics
unsubscribedLogged; contributes to unsubscribe rate metrics
failedLogged as a delivery error

InboxEagle verifies every incoming Mailgun webhook using HMAC-SHA256 signature verification. Mailgun includes a timestamp and signature in each webhook payload; InboxEagle validates both:

  • Timestamp validation — Events older than 5 minutes are rejected (replay protection)
  • Signature validation — The HMAC signature is verified against your Mailgun webhook signing key

You do not need to configure this manually — InboxEagle retrieves the signing key during the integration setup flow.


After the integration is active:

  • Bot Finder dashboard — Opens and clicks from Mailgun appear alongside SES events. Filter by provider to see Mailgun-only data.
  • Intelligence Agent — Query Mailgun bot rates in natural language (e.g. “What is my bot rate via Mailgun this month?”)
  • Deliverability dashboard — If you send from domains tracked in InboxEagle, domain-level placement data is updated when Mailgun campaigns are detected.

  1. In Mailgun, go to Sending → Webhooks and check the delivery log for your InboxEagle webhook. HTTP errors are shown per event.
  2. Common causes:
    • 401 — Signing key has changed; reconnect the integration
    • 404 — Webhook URL has been regenerated; update the URL in Mailgun
    • Timeout — Transient; Mailgun will retry automatically

Events arriving but not appearing in dashboard

Section titled “Events arriving but not appearing in dashboard”
  • Confirm the events are reaching InboxEagle by checking the connection status indicator
  • Events are processed asynchronously — allow 1–2 minutes for events to appear in the Bot Finder dashboard
  • If events still do not appear after 5 minutes, trigger a manual refresh in the dashboard
  • This usually means your Mailgun webhook signing key was rotated after setup
  • Go to Integrations → Mailgun and click Reconnect to refresh the signing key
  • Re-register the webhook URL in Mailgun if it changes during reconnection

To disconnect the Mailgun integration:

  1. Go to Integrations → Mailgun in the InboxEagle app
  2. Click Disconnect
  3. Remove the InboxEagle webhook URL from your Mailgun webhook settings (optional, but prevents unnecessary webhook delivery attempts)

After disconnecting, InboxEagle stops receiving and processing Mailgun events. Historical data remains in your account.


Set up Mailgun integration →