When setting up Mailgun for your email services, it's essential to configure specific DNS (Domain Name System) records on your domain. These records instruct the internet on how to manage your domain and allow Mailgun to authenticate your domain for sending emails.
Step 1: Setting Up a New Domain in Mailgun
Access Your Mailgun Account: Sign in to your Mailgun account and head to the "Sending" section located on the left-hand side menu.
Add a Domain: Click on "Domains" and choose "Add New Domain."
Enter Domain Details: Input your domain name (e.g., mg.geraldineenterprises.com). Ensure the region is set to "US" to ensure compatibility, regardless of your physical location.
Proceed with Domain Addition: Select "Add Domain" to continue. Mailgun will then generate a set of DNS records that need to be added to your Namecheap account.
Step 2: Inserting DNS Records in Namecheap
Access Namecheap and Manage Your Domain: Log in to your Namecheap account, locate your domain, and click on "Manage."
Navigate to Advanced DNS:
TXT Records: Go to the "Advanced DNS" section and select "Add New Record." Choose "TXT Record" and input the hostname (e.g., mg.geraldineenterprises.com) along with the corresponding value provided by Mailgun. Repeat this for all TXT records given.
MX Records: Still in the "Advanced DNS" section, find the MX records area. Click "Add New Record," choose "MX Record," and enter the hostname (mg), the Mailgun-provided value, and set the priority to 10. Repeat for any additional MX records.
CNAME Record: Lastly, select "Add New Record" and choose "CNAME Record." Enter the hostname (e.g., email.mg) and the value supplied by Mailgun.
Step 3: Confirming DNS Configuration in Mailgun
Return to Mailgun: Go back to your Mailgun account and navigate to the domain settings.
Verify DNS Setup: Click "Verify DNS Settings." Be aware that changes might take up to 24 to 48 hours to propagate globally, although verification often happens sooner.
Check Verification Status: Once the DNS records are verified, green check marks will appear next to each record in Mailgun, indicating that the setup was successful.
Step 4: Obtaining the API Key
Locate API Key: In Mailgun, navigate to the "API Keys" section.
Copy the API Key: Copy your API key for use in integrating Mailgun with your email services or other relevant applications.
Troubleshooting and Common Questions
DNS Propagation Time: If your DNS records aren’t verified immediately, remember it can take up to 48 hours for changes to propagate across the internet.
Region Selection: Make sure the region is set to "US" when adding your domain in Mailgun, as this is necessary for proper functionality.
Accurate Record Entry: Double-check all values to ensure they match exactly what Mailgun provided, with no extra spaces or characters.
This guide ensures a smooth integration of Mailgun with your domain through Namecheap, helping you to manage your email services effectively.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article