Links
Comment on page

Email Setup

Custom Email DNS Setup

In the examples below make sure to replace the wordsyourdomain.com with your actual domain.
  1. 1.
    Choose a specific email address and send your choice to [email protected].
  2. 2.
    Log in to the DNS provider portal for your domain (e.g. GoDaddy, NameCheap, Google Domains, Digital Ocean, etc.). If you don’t know your DNS provider login information, you may have to contact the person in your organization who maintains your web technology or helped you buy the domain.
  3. 3.
    Add the following TXT records. These records are known as SPF & DKIM. They are required for both sending and receiving email with Mailgun, our mail service provider.
    Type
    Host
    Value
    TXT
    mg.yourdomain.com
    v=spf1 include:mailgun.org ~all
    TXT
    pic._domainkey.mg.yourdomain.com
    k=rsa; p=yourdomain.com
  4. 4.
    Add the following MX records. These records are recommended for all domains, even if you are only sending messages. Unless you already have MX records for @mg.yourdomain.com pointing to another email provider (e.g. Gmail), you should update the following records. Read more about MX records.
    Type
    Hostname
    Priority
    Value
    MX
    mg.yourdomain.com
    10
    mxa.yourdomain.com
    MX
    mg.yourdomain.com
    10
    mxb.yourdomain.com
  5. 5.
    Add a CNAME record for tracking. This record is necessary for tracking events such as opening emails, clicks, and unsubscribes.
    Type
    Host
    Value
    CNAME
    email.mg.yourdomain.com
    mailgun.org
  6. 6.
    Once you set the above DNS records it can take from a few minutes to 24 hrs for those changes to propagate throughout the Internet. We will email you to let you know once your domain is verified.