We're experiencing difficulty. Our engineers are on it. Please check status.mailgun.com for real-time updates.

How Do I Add or Delete a Domain?

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:

  1. First, log in to the Mailgun Control Panel (if you have not already done so).
  2. Then, within the left-hand navigation pane, click the Sending option to expand its list of suboptions.
  3. Next, click the Domains suboption.
  4. Click the Add New Domain button.
  5. 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). 
  6. 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:

  1. First, log in to the Mailgun Control Panel (if you have not already done so).
  2. Then, within the left-hand navigation pane, click the Sending option to expand its list of suboptions.
  3. Next, click the Domain settings suboption.
  4. 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.
    Screen Shot 2022-09-11 at 6.58.43 PM.png
  5. Near the bottom of the page, locate the Advanced section and the Delete domain setting.
  6. 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!