Use your Mailgun account

You can use your Mailgun account to send email through Customer.io with no loss in functionality. To take advantage of Mailgun, you need to do two things:

  1. Point Mailgun’s webhooks at Customer.io.
  2. Configure Mailgun as a custom SMTP server in Customer.io.

Point Mailgun’s webhooks at Customer.io

  1. Go to the Mailgun webhooks page.

  2. Enter the webhook URL that corresponds to your region for the events you want to forward to Customer.io.

    • US: https://track.customer.io/mailgun/events
    • EU: https://track-eu.customer.io/mailgun/events
    Example US webhook config

Do not send Clicks or Opens to Customer.io!

Customer.io already tracks this information. If you send these webhooks, we’ll record each event twice (once natively in Customer.io and again via Mailgun webhook).

If you want to track opens and clicks via Mailgun and not Customer.io, you can change tracking settings on an email by email basis.

Configure Customer.io custom SMTP settings

Before you begin, you need your Mailgun SMTP credentials. This integration uses port 2525. If you need to use a different port, you should use a custom SMTP integration.

Mailgun config settings

  1. Go to > Workspace settings > Email > Custom SMTP.
  2. Click Add custom SMTP server.
    Custom SMTP tab with the Add custom SMTP server button
  3. Under Delivery provider, select Mailgun and click Continue.
  4. On the Set up webhooks tab, copy the webhook URL and set up webhooks in Mailgun so Customer.io can report delivery metrics. Then click Done, or click Skip for now to set up webhooks later.
  5. On the Add credentials tab, select the Address for your Mailgun region (smtp.mailgun.org for US or smtp.eu.mailgun.org for EU), and then enter your Mailgun SMTP login and password.
    Mailgun credentials form
  6. Click Finish set up. Your account is now set up to send email through Mailgun. If you have any questions or feedback, contact us and we’ll be happy to help!

Configure multiple servers to use both transactional and broadcast streams

If you have a Premium Customer.io plan, you can configure multiple custom SMTP servers and assign one to each of your Mailgun server types.
Updated November 26, 2026