Domains are obviously fundamental to begin using your Mailgun account; it's where you're sending from! Aside from the limited testing options provided by an account's sandbox domain, a custom or personal domain is required to send emails through our platform, build a reputation, and establish a professional identity with your emails.
Check out our article on how to choose a domain if you do not already have a domain.
Adding A Domain
We'll show you how to do this below:
- First, log in to the Mailgun Control Panel (if you have not already done so).
- Then, within the left-hand navigation pane, click the Sending option to expand its list of suboptions.
- Next, click the Domains suboption.
- Click the Add New Domain button.
-
Enter your Domain Name and choose your additional options.
- The region in which your domain will reside: US or EU.
- Create DKIM Authority - you would generally leave this checked by default.
- DKIM Length - a longer DKIM key will make spoofing your emails by malicious spammers more difficult. 1024-bit is selected by default, but 2048-bit can be used as well.
Note: Some DNS providers may have an issue with 2048-bit DKIM keys, as they produce a string longer than 255 characters (exceeding the maximum character limit for a DNS entry).
- Once your domain name is entered and your options are set, click Add Domain to save your new domain.
The next page will provide you with the DNS records required for your domain to be verified with Mailgun. This information is also available in the Domains section of the control panel by clicking on a specific domain name.
If you need assistance getting your domain verified, check out this help center article.
If you would like to add a domain using the domains API, you can find more information in our documentation.
Deleting A Domain
What if you no longer use a domain or if there is a typo in the domain name? Thankfully, it can be deleted. We'll show you how to do this below:
- First, log in to the Mailgun Control Panel (if you have not already done so).
- Then, within the left-hand navigation pane, click the Sending option to expand its list of suboptions.
- Next, click the Domain settings suboption.
- Ensure that the domain for which you wish to clear the queue is displayed within the Domain drop-down list towards the upper-right portion of the page.
- Near the bottom of the page, locate the Advanced section and the Delete domain setting.
Note: if the domain is a sandbox domain (i.e. one that looks like this sandbox9e9ef27667399dd33332aa387639aa.mailgun.org), these system-generated testing domains cannot be deleted from your account.
Note: if your user's permissions are not "Admin" or "Developer", you cannot delete the domain from your account. - Click the Delete button and confirm your intention to delete the domain by clicking the Delete button in the pop-up modal.
If you would like to delete a domain using the Domains API, you can find more information in our documentation.
Got Questions?
Mailgun by Sinch has answers! If you have any concerns or questions, please send us a Support ticket using the Support page within your Mailgun Control Panel. Our Support Team will be happy to assist!