How to Add Mailgun Records to Namecheap

DNS (Domain Name System) records are essentially instructions that guide how the internet should handle your domain. When integrating Mailgun for email services, adding specific DNS records to your domain is necessary to authenticate your domain and enable Mailgun to send emails on your behalf.

Step 1: Adding a New Domain in Mailgun

  1. Log into your Mailgun account and navigate to the “Sending” section on the left-hand side.
  2. Click on “Domains” and then select “Add New Domain.”
  3. Enter your domain name (e.g., mg.example.com). Regardless of your location, ensure the region is set to “US” for compatibility.
  4. Click “Add Domain” to proceed. Mailgun will then provide you with a list of DNS records to add to your Namecheap domain.

Step 2: Adding DNS Records in Namecheap

TXT Records:

MX Records:

CNAME Record:

Step 3: Verifying DNS Settings in Mailgun

  1. Return to your Mailgun account and navigate to the domain settings.
  2. Click “Verify DNS Settings.” It may take some time for the changes to propagate, typically 24 to 48 hours, though often it’s quicker.
  3. Once verified, you should see green check marks next to each DNS record in Mailgun, indicating successful setup.

Step 4: Retrieving the API Key

  1. In Mailgun, go to “API Keys” and locate your API key.
  2. Copy this key for use in integrating Mailgun with your email services or other applications.

Troubleshooting Tips

DNS Propagation

Correct Region Setting

Double-Check Values

100%