How to Manage Email Routing for a Domain in WHM?


Email Routing in WHM determines how your server handles incoming email for each domain. The correct setting ensures mail is delivered to the right mail server — either locally on your server or to an external provider like Google Workspace.

How to Change Email Routing

  1. Login to WHM.
  2. Go to DNS Functions → Edit DNS Zone.
  3. Select the client's domain.
  4. Check the MX records section.

Alternatively, the client can change it from their own cPanel → Email → MX Entry.

Email Routing Options Explained

Option Description When to Use
Automatically Detect cPanel checks MX records and decides routing automatically Default for most accounts
Local Mail Exchanger All email is delivered locally on this server When email is hosted on your server
Remote Mail Exchanger Email is routed to an external provider Client uses Google Workspace, Microsoft 365, Zoho, etc.
Backup Mail Exchanger Server acts as backup if primary MX is unavailable Advanced setups only

Setting Up Remote Mail (e.g., Google Workspace)

  1. Go to the client's cPanel → Email → MX Entry.
  2. Set Email Routing to Remote Mail Exchanger.
  3. Delete existing MX records.
  4. Add Google Workspace MX records:
    Priority 1  → ASPMX.L.GOOGLE.COM
    Priority 5  → ALT1.ASPMX.L.GOOGLE.COM
    Priority 5  → ALT2.ASPMX.L.GOOGLE.COM
    Priority 10 → ALT3.ASPMX.L.GOOGLE.COM
    Priority 10 → ALT4.ASPMX.L.GOOGLE.COM
  5. Save changes.

Note: When routing email to an external provider, set Email Routing to Remote Mail Exchanger. Without this, your server may try to deliver email locally and fail.

If you continue to face issues, please open a create a request.

Byla tato odpověď nápomocná? 0 Uživatelům pomohlo (0 Hlasů)