> ## Documentation Index
> Fetch the complete documentation index at: https://speedypage.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Email routing

> How to configure email routing in cPanel when using an external mail provider like Google Workspace or Microsoft 365.

Email routing controls where your server sends incoming mail for a domain. By default, cPanel detects the correct setting automatically. You only need to change it if you are using an external email provider, such as Google Workspace or Microsoft 365, while hosting your website on SpeedyPage.

## Routing options

| Setting                                | What it does                                                                                                         |
| -------------------------------------- | -------------------------------------------------------------------------------------------------------------------- |
| **Automatically Detect Configuration** | cPanel checks the MX records and picks the right option. This is the default and works for most setups.              |
| **Local Mail Exchanger**               | The server always accepts and delivers mail locally. Use this when SpeedyPage handles your email.                    |
| **Backup Mail Exchanger**              | The server holds mail until a higher-priority mail server becomes available. Rarely needed for typical hosting.      |
| **Remote Mail Exchanger**              | The server does not accept mail for the domain. All mail goes to the external provider specified in your MX records. |

## Change the email routing

<Steps>
  <Step title="Open Email Routing">
    Log in to cPanel through your [client area](https://my.speedypage.com) or at `yourdomain.com/cpanel`. Go to **Email** and click **Email Routing**.
  </Step>

  <Step title="Select the domain">
    Choose the domain from the dropdown menu.
  </Step>

  <Step title="Pick a routing option">
    Select the option you need and click **Change**.
  </Step>
</Steps>

## Using Google Workspace or Microsoft 365 with SpeedyPage

If you host your website on SpeedyPage but use Google Workspace or Microsoft 365 for email, follow these steps:

1. Update your domain's MX records to point to your email provider. You can do this in cPanel's **Zone Editor** (under **Domains**) or at your domain registrar if your nameservers are elsewhere.
2. Set email routing to **Remote Mail Exchanger** so the server does not try to deliver mail locally.

<Warning>
  If you leave the routing set to **Local Mail Exchanger** after pointing your MX records to an external provider, the server may still try to deliver some messages locally. This can cause missing emails.
</Warning>

<Tip>
  If you switch back to SpeedyPage email later, change the MX records to point to your server and set routing back to **Local Mail Exchanger** (or **Automatically Detect Configuration**).
</Tip>
