Mailgun (Edge)

Last updated on Dec 06, 2026

Mailgun is an email delivery service that businesses use to send, receive, and track transactional and marketing emails through an API or SMTP. It provides features such as sending domains, mailing lists, inbound email routing, suppression lists, and email event tracking. Through Mailgun Optimize, businesses can also monitor their sender reputation and test the inbox placement of their emails.

Hevo uses the Mailgun API to replicate data from your Mailgun account to the Destination of your choice. Hevo authenticates with Mailgun using HTTP basic authentication. To ingest data, you must provide Hevo with the username, the subdomain of the Mailgun API endpoint for the region that hosts your account, and a Mailgun API key. Hevo replicates data for all the domains in your Mailgun account.


Supported Features

Feature Name Supported
Capture deletes Yes (for objects ingested using full load)
History mode No
Custom data (user-configured tables & fields) Yes (custom variables of events)
Data blocking (skip objects and fields) Yes
Resync (objects and Pipelines) Yes
API configurable Yes

Handling of Deletes

Hevo handles deleted records differently based on how data is ingested for an object.

Hevo uses a full data refresh approach to capture delete actions for the following objects. During each Pipeline run, Hevo compares the data fetched from the Source object with the data present in the Destination table. If a record exists in the Destination but is no longer returned by the Source, the record is marked as deleted by setting the value of the metadata column _hevo_marked_deleted to True. These records remain in the Destination, marked as deleted, after you resync the object or the Pipeline.

  • blocklist_event, bounce, complaint, domain, inbox_ready_domain, mailing_list, receiving_dns_record, route, route_action, seed_list, seed_list_result, seed_list_sending_domain, sending_dns_record, template, and whitelist

For the event objects, their child objects, and spam_trap_count, Hevo does not capture deletes. Records that are no longer available in Mailgun remain in the Destination.


Source Considerations

  • Mailgun retains event data for a limited period, which is up to 30 days, depending on your Mailgun plan. If the Pipeline does not run for longer than the retention period of your plan, for example, because it is paused, the events of that period are not ingested.

  • The inbox_ready_domain, blocklist_event, seed_list, seed_list_result, seed_list_sending_domain, and spam_trap_count objects contain data only if the corresponding Mailgun Optimize features are enabled for your account. If they are not, Hevo ingests the blocklist_event and spam_trap_count objects with no records. If your account cannot access the inbox_ready_domain and seed_list objects, Hevo marks them as Inaccessible on the Configure Objects page, along with the child objects of seed_list, and does not ingest them.

  • Mailgun allows only a few spam trap requests at a time for each account. If several Pipelines read data from the same Mailgun account at the same time, a Pipeline run may be deferred, and Hevo ingests the spam_trap_count object in the next run.


Limitations

  • Hevo does not replicate the members of mailing lists. The mailing_list object contains only the mailing lists and their number of members.

Revision History

Refer to the following table for the list of key updates made to this page:

Date Release Description of Change
Dec-09-2026 2.55 New document.

Tell us what went wrong