Technical guide explaining the critical difference between Local, Backup, and Remote Mail Exchanger settings in cPanel to ensure correct mail delivery.

Email Routing: Local vs. Remote Mail Exchanger Settings

Email Routing is a fundamental cPanel configuration that tells the local mail server (Exim) how to handle mail sent to your domain from within the server itself. Misconfiguring this setting is the primary cause of "loopback" errors or emails not arriving when using external providers like Microsoft 365 or Google Workspace.

1. Understanding the Four Routing Options

The server does not automatically detect where your mail is hosted based on MX records alone; you must explicitly define the behavior here.

  • Automatically Detect Configuration (Default): The system attempts to guess based on MX records. Warning: This can fail during DNS propagation or if using a proxy. Manual selection is preferred for production environments.
  • Local Mail Exchanger: The server assumes it is responsible for the domain's email. It will deliver all mail to the local cPanel mailboxes. Use this if you created your email accounts in cpanel.hovixa.com.
  • Backup Mail Exchanger: The server acts as a secondary queue. If the primary (lower priority) MX record is unreachable, the Hovixa server will hold the mail until the primary becomes available.
  • Remote Mail Exchanger: The server assumes mail is handled by an external entity (e.g., Google or Outlook). It will immediately route all mail—even mail sent from your own website's contact forms—to the external MX records defined in your DNS.

2. When to Switch to "Remote Mail Exchanger"

If you use an external mail service, setting the routing to Remote is mandatory. If left on "Local," any email sent from a script on your website (like a WordPress contact form) to your own domain will never leave the server; the server will look for a local mailbox, find none (or an empty one), and either fail or deliver it to the wrong place.

Configuration Steps:

  1. Log in to cpanel.hovixa.com.
  2. Navigate to the Email section and click Email Routing.
  3. Select the domain from the dropdown menu.
  4. Select Remote Mail Exchanger.
  5. Click Change.

3. Common Conflict: The "User Unknown" Error

If your website's contact form returns a 550 - No such user here error, it is almost always because:

  1. The domain is set to Local Mail Exchanger.
  2. The actual mail is hosted externally (Gmail/Outlook).
  3. The local server looks for the user in the cPanel database, doesn't find it, and kills the process.

Solution: Switch the routing to Remote Mail Exchanger. This forces the server to look at the global DNS MX records and send the mail out to the internet.

4. Implementation Checklist

  • DNS Records: Ensure your MX records in the Zone Editor actually point to your external provider. Changing the routing only changes the *behavior*, not the *destination*.
  • SPF Records: If using Remote Routing, ensure your SPF record includes the external provider's include string (e.g., include:_spf.google.com).
هل كانت المقالة مفيدة ؟ 0 أعضاء وجدوا هذه المقالة مفيدة (0 التصويتات)