Skip to content
HostingSquad
To websitehostingsquad.nl
Search
EN

What are MX records and how do I change them in DirectAdmin?

Updated on

MX (Mail Exchange) records are DNS records that determine which mail server receives the email for your domain name. You change them if you want to receive your email with another email provider, such as Microsoft 365 or Google Workspace.

Each MX record has a number that indicates its priority. A sending server first tries the server with the lowest number; if that one cannot be reached, it tries the next one. This lets you specify a main server and one or more backup servers.

Before you start

  • You need your DirectAdmin login details; see How do I log in to DirectAdmin?
  • If you use external name servers, your MX records are not in DirectAdmin but with your DNS provider, and a change in DirectAdmin has no effect. In that case, you change the records with that provider.
  • DirectAdmin is in English by default, so the menus and buttons in this article are named as you see them on screen. If your DirectAdmin is set to Dutch, DirectAdmin may show the Dutch names, such as E-mail Beheer instead of E-mail Manager, MX Sjabloon instead of MX Template, Opties instead of Options and Bewerken instead of Edit. MX Records has the same name in both languages.

With a template

DirectAdmin has a template for a few well-known email providers. The template sets the MX records and adds the provider to your SPF record; for Microsoft 365, it also sets a few other records that Microsoft uses. The template does not set up DKIM or DMARC.

  1. Log in to DirectAdmin

  2. Open MX Records

    Under E-mail Manager, click MX Records.

  3. Choose your domain name

    If you manage more than one domain name, choose the right one at the top right.

  4. Choose the template

    At the bottom of the page, in the MX Template drop-down list, choose your email provider, such as Microsoft 365 or Google Workspace. The Advanced Mailfilter template points the MX records to our spam filter (mailfilter1.hsqd.nl and mailfilter2.hsqd.nl); see How do I turn on the advanced spam filter?

  5. Save the template

    Click the Save button below the MX Template drop-down list.

By hand

If your email provider is not in the list, or if it gives other details, change the MX record yourself.

  1. Log in to DirectAdmin

  2. Open MX Records

    Under E-mail Manager, click MX Records.

  3. Choose your domain name

    If you manage more than one domain name, choose the right one at the top right.

  4. Open the MX record

    In the line of the MX record, click Edit. The Edit Record window opens.

  5. Enter your provider's details

    Under Priority, enter the number, and under Value, the server name that your email provider gives you. If the provider has more than one MX record, add the others with Add Record and choose the type MX there.

  6. Save the record

    Click Save.

  7. Indicate that this server no longer receives your email

    If you will receive your email with another provider from now on, untick Use this server to handle my e-mails. If not, change the MX records and uncheck this option. under Options and click the Save button below it.

Still stuck? Contact us (in Dutch).

Related articles