# How to Add an MX Record in cPanel

### Steps to Add an MX Record:

* Log in to your cPanel account.
* In the **Domains** section, click on **Zone Editor**.

<figure><img src="/files/wOwAEfFpDFvBynVVBk9F" alt=""><figcaption></figcaption></figure>

* Under **Domains**, locate the options listed under **Actions**.

<figure><img src="/files/OSsZM3bvTa4WsZwROnlw" alt=""><figcaption></figcaption></figure>

* Click on **+MX Record**. A pop-up box will appear. Enter the following details:

  * **Priority**: This number determines mail routing preference. Use the lowest number for your primary mail server (typically `0`), and `10` for backup servers.
  * **Destination**: Input the domain name of your mail exchange server. If using an external mail server, enter its domain name. For a local mail server, enter your local domain.

  <figure><img src="/files/Lpyg8vugguhjIL63ycro" alt=""><figcaption></figcaption></figure>
* Click on **Add an MX Record**.

{% hint style="success" %}
If the record is added successfully, you will see a confirmation message.
{% endhint %}

{% hint style="warning" %}
DNS changes may take 12 to 24 hours to propagate globally.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.clouduxe.com/cpanel-control-panel/how-to-add-an-mx-record-in-cpanel.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
