Outbound email for Exchange and other clients
This page guides you through the process of directing all outbound email via Sophos Gateway. For Exchange, this requires an SMTP Connector to be configured on your Exchange Server.
To configure outbound routing from your Exchange and other clients' accounts, do as follows:
- Sign in to Sophos Central.
- Go to My Products > General Settings > Gateway Domain Settings/Status.
- Click the domain link you want to configure, then click Edit.
- In Configure Domain, select Inbound and Outbound as the direction.
- In Outbound Gateway, select Custom Gateway. At least one IP/CIDR (subnet range) is required.
- Enter an IP address or CIDR, and click Add. You can add multiple IP addresses or CIDRs.
- Click Save.
- Click Configure External Dependencies.
-
Select Outbound Settings and copy the Outbound Relay Host address.
Note
The Outbound Relay Host depends on the region you chose when you signed up for Sophos Email Security. For a list of outbound relay hosts for each region, see Sophos email outbound relay.
-
To set up an SMTP connector, follow the instructions for your version of Exchange on Microsoft's help page. See Exchange 2019, Exchange 2016, Exchange 2013.
Follow these steps to complete the configuration:
- If prompted, select Route mail through smart hosts and click Add.
- In Add smart host, paste the Outbound Relay Host address you copied earlier.
-
Turn off or remove any other Outbound Send Connectors that were previously used for mail filtering.
Note
Failure to do this means your outbound email will still use the older send connectors and won't be routed through Sophos Gateway. If in doubt, consult Sophos Support.
-
When you're finished setting up your SMTP connector, save your changes.
Note
Changes may take up to 24 hours to propagate.
Note
For non-Exchange mail servers or clients, consult your third-party vendor to configure outbound email delivery to Sophos Email. For a setup guide, see the Techvids video.
Updating the SPF record for your domain
If you authenticate outgoing email using an SPF record or DKIM, you may need to update your configuration.
Your organization should already have an SPF record for your domains registered with your existing email service. You need to update this record in the DNS zone for the relevant domain.
You can replace your existing SPF record or add to it, depending on your requirements.
It's normal to replace the record. However, if your outbound email is being routed through Sophos Gateway and your existing email service simultaneously for a period, you can add an include statement for Sophos Gateway to your existing SPF record.
You can use the all
parameter in different ways. You must understand how to do this and the implications of your choice.
-
Hard fail:
You can use a dash (
-
) before theall
parameter for a "hard fail". If your mail isn't sent from Sophos Gateway, and your recipients' mail servers carry out SPF checks, they'll reject your mail. -
Soft fail:
You can use a tilde (
~
) before theall
parameter instead, for a "soft fail". The command doesn't fail if an IP address doesn't exist, it continues and processes the rest of the IP addresses. If your recipients' mail servers carry out SPF checks, they won't reject your mail.
Note
To enhance the trustworthiness of your domain and IPs, you can configure DKIM to sign and authenticate outbound emails. This helps prevent email rejection. For more information on how to configure DKIM, see DKIM keys.
Sophos SPF domains
When you replace or add to your SPF record, use the domain for the Sophos data center for your region. To find out which domain to use, see Sophos SPF domains.
Replacing your SPF record
If your outbound email is only routed through Sophos Gateway you can use the Sophos Gateway SPF record.
- Remove
v=spf1 include:spf.protection.outlook.com –all
. -
If you're certain that you don't have any third parties sending mail on your behalf, and all your outbound mail is routed through Sophos Gateway, you can set your record to:
v=spf1 include:_spf.<your-region>.sophos.com -all
-
If you aren't routing all your email through us, or you're unsure, use a soft fail:
v=spf1 include:_spf.<your-region>.sophos.com ~all
Replace <your-region>
with the SPF domain for your region. See Sophos SPF domains.
Adding to your SPF record
If your outbound email is being routed through Sophos Gateway and your existing email service simultaneously for a period, you can leave the original SPF record, and add an include statement for Sophos Email.
To use an include statement to add the Sophos Gateway record to your existing record, do as follows:
-
Existing SPF:
v=spf1 include:spf.protection.outlook.com -all
-
Example with
include
:v=spf1 include:spf.protection.outlook.com include:_spf.<your-region>.sophos.com -all
Replace
<your-region>
with the SPF domain for your region. See Sophos SPF domains.
We recommend you replace your include statement with the Sophos Gateway SPF record when all your outbound email is routed through us.
Confirm that outbound mail is flowing by sending an outbound mail to an external address.
To confirm that the email has been sent, do as follows:
- Sign in to Sophos Central.
- Go to Reports > Message History.
- Change the direction to outbound.
- Refresh the screen until you can see the details of the test email you have sent.