MX records define how email for a domain is routed. By default, cPanel handles email delivery using the local mail server, but MX records can be adjusted to route mail to external providers when required.
Understanding MX records and risks
Changing MX records transfers email handling away from the local server. This should only be done when the destination mail servers are confirmed and reachable. Incorrect MX configuration can stop email delivery entirely.
These controls are available on standard cPanel hosting environments.
Adding an MX record
- Log in to cPanel.
- Open the Tools page.
- In the Domaines section, click Editeur de zones.
- Locate the target domain and click MX Record.
- Enter a Priorité value. Lower numbers indicate higher priority.
- Enter the mail server Destination as a fully qualified domain name.
- Click Add an MX Record.
[Espace réservé pour la capture d'écran: Add MX Record dialog]
Only fully qualified domain names are accepted. IP addresses cannot be used for MX destinations.
Editing an MX record
- Log in to cPanel and open Editeur de zones.
- Localisez le domaine et cliquez sur Gérer.
- Filter the record list by MX if needed.
- Click Edit next to the MX record.
- Update the priority or destination value.
- Click Save Record.
[Espace réservé pour la capture d'écran: Edit MX record screen]
Deleting an MX record
- Log in to cPanel and open Editeur de zones.
- Click Gérer pour le domaine.
- Filter by MX to show only mail records.
- Click Delete next to the record.
- Confirm the deletion.
[Espace réservé pour la capture d'écran: Delete MX record confirmation]
Configuring email routing in cPanel
MX records and email routing must align. Routing settings determine whether the server accepts mail locally or routes it elsewhere.
- Log in to cPanel.
- Open the Tools page.
- In the E-mail section, click Routage des e-mails.
- Sélectionnez le domaine.
- Choose the appropriate routing option:
- Automatically Detect Configuration for domains using the same name servers
- Échangeur de courrier local to force local delivery
- Backup Mail Exchanger to act as a secondary mail server
- Échangeur de courrier à distance when mail is handled by an external provider
- Click Changement to apply.
[Espace réservé pour la capture d'écran: Email Routing configuration]
Considérations sur la délivrabilité
When routing mail to third party services, ensure proper DNS alignment and spam controls. Dedicated filtering platforms such as Experts en matière de spam can improve delivery accuracy. For complex mail infrastructures or multiple domains, scalable environments like cloud servers provide greater