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
- Log into your Mailgun account and navigate to the "Sending" section on the left-hand side.
- Click on "Domains" and then select "Add New Domain."
- Enter your domain name (e.g., mg.geraldineenterprises.com). Regardless of your location, ensure the region is set to "US" for compatibility.
- 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:
- Log into your Namecheap account, find your domain, and click "Manage."
- Go to "Advanced DNS" and click "Add New Record."
- Select "TXT Record" and enter the hostname (e.g., mg.geraldineenterprises.com) and the value provided by Mailgun. Repeat this step for each TXT record provided by Mailgun.
MX Records:
- In the "Advanced DNS" section, find the MX records area.
- Click "Add New Record," select "MX Record," and enter the hostname (mg), value, and priority (10) as provided by Mailgun. Repeat for any additional MX records.
CNAME Record:
- Still in the "Advanced DNS" section, click "Add New Record" and select "CNAME Record."
- Enter the hostname (e.g., email.mg) and the value provided by Mailgun.
Step 3: Verifying DNS Settings in Mailgun
- Return to your Mailgun account and navigate to the domain settings.
- Click "Verify DNS Settings." It may take some time for the changes to propagate, typically 24 to 48 hours, though often it's quicker.
- Once verified, you should see green check marks next to each DNS record in Mailgun, indicating successful setup.
Step 4: Retrieving the API Key
- In Mailgun, go to "API Keys" and locate your API key.
- Copy this key for use in integrating Mailgun with your email services or other applications.
Troubleshooting Tips and FAQs
- DNS Propagation: If your DNS records aren't verifying, remember it can take up to 48 hours for DNS changes to propagate worldwide.
- Correct Region Setting: Ensure the region is set to "US" when adding your domain in Mailgun, as this is currently required for proper functionality.
- Double-Check Values: Ensure all values are copied exactly as provided by Mailgun, without any additional spaces or characters.