In this tutorial, we will see how to secure emails with a Sophos XG firewall.
The firewall offers two modes of operation for filtering emails:
- MTA : the firewall will act as an SMTP relay
- Legacy : it will be placed in transparent mode, which we will see in this tutorial.
In both modes the security options are the same:
- Antivirus filtering
- Antispam filtering with possible quarantine
- Filtering rules.
In the tutorial, we will take a tour of the various protection options available, the Sophos site offers a complete documentation of each available element.
- Your sophos license must include email protection.
- Mail servers must have been added to the hosts.
Add a rule for incoming emails
3. Configure the rule:
Configure email protection
The protection of emails is accessible through the menu by clicking on Email.
In this part is the general configuration of the SMTP security behavior.
I’m only going to introduce the modules that are used in the LEGACY mode
SMTP deployment mode
I personally use this option to transfer messages from person leaving the company to the replacement. This will remove the box on the mail server.
Spam verification exceptions
This section contains the control rules that incoming emails will undergo to know if they are sent to the mail server, quarantined or blocked.
They work like firewall rules, they are read from top to bottom. If an email is not filtered by any of the rules, then it is forwarded to the server.
When adding a strategy, there are two choices
SMTP antimalware control
This control adjusts the antivirus behavior (single / double) depending on the type of attachment.
SMTP antispam control
This control makes it possible to configure the behavior of the antispam according to several criteria and to choose an action.
This option allows you to set the email alerts sent to users if emails are quarantined on the firewall.
Access to quarantine is not the user portal.