Email routing tells the server whether to deliver a domain’s mail locally or send it to another mail server. Set it to match the domain’s intended mail service and MX records.
Choose the routing mode
-
Sign in to WHM and open DNS Functions > Email Routing Configuration.
-
Select the domain and click Edit.
-
Choose the appropriate mode:
- Local Mail Exchanger: this server hosts the domain’s mailboxes.
- Remote Mail Exchanger: another service hosts its email.
- Backup Mail Exchanger: this server is deliberately configured as a secondary mail exchanger.
- Automatically Detect Configuration: WHM chooses based on MX records in its local DNS zone.
-
Save the configuration.
Automatic detection does not query live external DNS or continually reassess the setting. If an external DNS provider holds different MX records, select the intended routing mode explicitly.
Check DNS and delivery
Review the domain’s MX entries and update them at the authoritative DNS provider where needed. A website pointing to this server does not mean its email should be local.
Test incoming mail from another domain and mail sent by an application on this server. Both should reach the intended mailbox without a local-delivery error or routing loop.