Skip to main content

How to Add or Change an MX Record in WHM

You can add or change MX (Mail Exchanger) records for a domain within the WHM interface. This process allows you to specify the mail servers responsible for receiving email for a specific domain.

You can add or change MX (Mail Exchanger) records for a domain within the WHM interface. This process allows you to specify the mail servers responsible for receiving email for a specific domain.

Before you begin

You will need:

  • Server Administrator access to WHM

  • The hostname or IP address of the destination mail server

  • The desired priority level (a lower number indicates a higher priority)

Adding or Changing an MX Record

  1. Log in to WHM.

  2. Navigate to DNS Functions > DNS Zone Editor.

  3. Select the domain from the dropdown menu or search for it in the list.

  4. Locate the specific MX record you wish to update, or click the Add Record button to create a new one.

  5. Enter the following information:

    • Type: Select MX from the dropdown.

    • Name: Enter the domain name (e.g., example.com).

    • Priority: Enter the numerical priority (e.g., 10).

    • Destination: Enter the mail server hostname (e.g., mail.example.com).

  6. Click Save or Add Record.

Confirm the result

  • The updated record will appear in the list of DNS records for that zone.

  • You can verify the change externally using a tool like dig or nslookup to ensure the record resolves to the correct mail server.

Limitations

  • Changes to DNS records may take time to propagate across the internet. The duration of this propagation depends on the Time to Live (TTL) value of the record and the caching policies of various DNS providers.

  • Ensure the destination mail server is correctly configured to accept mail for the domain before updating the MX record.

Did this answer your question?