> For the complete documentation index, see [llms.txt](https://kb.vimzaa.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kb.vimzaa.com/cpanel-hosting/cpanel-managing-email-accounts/managing-email-routing-with-cpanel.md).

# Managing email routing with cPanel

## Overview

This interface allows you to configure how the system routes a domain’s incoming mail.

For example, you can use this interface to configure the server as a backup mail exchanger, which will hold a domain’s mail until the primary mail exchanger is available.&#x20;

## Configure Email Routing

{% hint style="warning" %}
**Warning:** Misconfigured *Email Routing* settings can disrupt your ability to receive mail. If you are unsure which option to choose, contact your system administrator or hosting provider.
{% endhint %}

To configure how your server routes mail for a domain, perform the following steps:

1. Select the desired domain from the menu. If only one domain exists on your cPanel account, the system selects it automatically.
2. Select one of the following options under *Configure* *Email Routing*:
   * *Automatically Detect Configuration* —    The system uses the following criteria to configure the email routing settings:

     * *Local Mail Exchanger*  — The lowest numbered mail exchanger points to an IP address on this server.
     * *Backup Mail Exchanger*  — The lowest numbered mail exchanger points to an IP address not on this server.
     * *Remote Mail Exchanger*  — No mail exchangers point to an IP address on this server.

     Note:

     If the configured Mail Exchange (MX) records do not resolve, automatic detection will **not** occur.
   * *Local Mail Exchanger* — The server always accepts mail for this domain. The system will deliver mail to the local mailbox.

     Note:

     Choose this option if your server uses smart hosts or another gateway service to filter mail.
   * *Backup Mail Exchanger* — The server functions as a backup mail exchanger. The system will hold mail for this domain until a lower number mail exchanger becomes available .

     Note:

     You **must** configure the primary MX record to point to the appropriate exchanger.
   * *Remote Mail Exchanger* — The server will **not** accept mail for this domain. The system sends all mail for this domain to the lowest numbered mail exchanger.

     Note:

     You **must** configure the primary MX record to point to the appropriate exchanger.
3. Click *Change*.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://kb.vimzaa.com/cpanel-hosting/cpanel-managing-email-accounts/managing-email-routing-with-cpanel.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
