Setup Mailgun on Namecheap

Mailgun is a cloud-based email service for sending, receiving and tracking email sent through your websites and applications. If your application needs to send email to users, for example account activation emails, password reset emails, or even guided on-boarding emails, then Mailgun can handle much of the infrastructure for making that happen.

Setting up Mailgun is easy when your domain is on GoDaddy, however it’s very confusing to configure Namecheap with Mailgun.1

After hours of emailing back and fourth with the support, I was able to figure out how set it up. Here’s the screenshot of how to setup the DNS on Namecheap.

namecheap dns instructions for mailgun

  1. Use MailGun’s manual DNS testing. It was very helpful to verify if DNS records was setup correctly in realtime.