Last adaptation to the version: 14.0.0
- Hinweis zur alternativen Aktivierung des Mailfilters
- 12.7.1
- Where necessary, only certificates with a private key part are offered
Configuration of the Mailrelay
The Securepoint UTM appliance can receive emails using the mailrelay and forward them to a mail server in the internal network. The mail relay checks the received emails and divides them into an appropriate category. Based on the category, it is decided whether an email is forwarded to the internal mail server or not.
To protect against spam or to relieve the [Mailfilter] further options can be configured. More than 90% of spam does not come from regular mail servers, but rather from private and work computers compromised by viruses and Trojans. On the other hand, checking target email addresses, greylisting and the greeting pause have proven to be effective functions.
Preconditions
Settings on the provider side
In order to ensure smooth participation in mail traffic, a number of requirements must be met:
- The UTM must have a fixed IP address. (e.g. 195.4.169.36)
- There is an A record on the DNS provider's server that resolves to this IP address. (Example query for the A-record: )
- There is an MX record on the DNS provider's server that resolves to this address. (Example query for the MX record: )
- A PTR record exists on the Internet provider's server that resolves correctly to the DNS A record used in the MX record (reverse DNS). (Example query for the PTR record: )
These are all settings that have to be made by the provider and NOT on the Securepoint Appliance!

➊ Email is sent
➋ DNS-MX record points to UTM
➌ Email is delivered to the UTM and processed (mail filter, greylisting, etc.)
- ➍
(according to the path under
➎ Email query from the internal network
➏ Query is forwarded to the mail server that was specified as the SMTP route

➊ Email is sent
➋ DNS-MX record points to UTM
➌ Email is delivered to the UTM and processed (mail filter, greylisting, etc.)
- ➍
(according to the path under
➎ Email query from the internal network
➏ Query is forwarded to the mail server that was specified as the SMTP route
Set of rules
Email address
Under Global email address: a postmaster address should be configured. Otherwise undeliverable mails will remain on the disk space. This can cause the available memory to become insufficient at some point and mails to no longer be accepted.
Basic configuration of the mailrelay for receiving mails
The configuration of the mailrelay takes place under
.
General
Caption | Value | Description | UTMuser@firewall.name.fqdnApplications ![]() |
---|---|---|---|
Activate mail filter: | On | Akiviert den Mailfilter | |
SASL authentication: | Off | Enables SASL authentication, if activated | |
Postmaster Address: | admin-mail@anyideas.de | A correct email address must be stored here. This email address is specified in the dialog in the Global email address field. Changes are only possible there. | |
Maximum message size: | 20 Megabytes | Maximum size of the mails in megabytes accepted by the mail relay. A message appears in the mail filter view in the user interface about the rejection. | |
Preferred protocol for outbound email: | Specifies whether the mail relay should preferentially establish outgoing connections with a certain protocol. | ||
IPv4 is preferred as protocol (e.g. IPv4 behind NAT) | |||
IPv6 is preferred as protocol | |||
Outgoing Address: | With multipath routing, an outgoing interface can be specified here by the IP address. Communication from the internal network then also runs via this IP address. Further settings must be made on the mail server and its firewall in order to accept mails from this IP address.
| ||
SPF/DKIM/DMARC checks: | Off | Enables filtering for corresponding DKIM/DMARC/SPF-results in Mailfilter rules when enabled. Further information in the article about Mailfilter
| |
Smarthost
Settings for a Smarthost are only required if such a setting is required for outgoing mails. This is the case, for example, if no own mail server is operated or no fixed public IP address is available.
Caption | Value | Description | ![]() |
---|---|---|---|
Enable Smarthost: | On | Activates the Smarthost function. | |
Smarthost: | smtp.anyideas.de | Mail server that is to receive and send outgoing mails.(sample address) | |
Port: | 587 | Mail port for external mail server 25: Default port for smtp (default) 465: default port for implicit TLS 587: default port for STARTTLS | |
Use implicit TLS | Off | By default (deactivated), a connection is first established via smtp and then attempts to initiate TLS encryption with the remote terminal. | |
On | When activated, the connection is first encrypted with TLS before smtp communication is established. If the remote terminal does not control TLS, no connection is established. The TLS version is configured under | .||
Smarthost Verification: | There is no verification of the smarthost. | ||
The smarthost is verified by default installed root CAs or a self-signed CA. CA: (Default) Alternatively, a CA (previously created or imported under ) can be selected for authentication. | |||
Authenticates and uses TLS to DANE-compliant servers, if offered. | |||
Enable Authentication: | On | Enables authentication on the smarthost mail server. TLS/SSL encryption is required for authentication
| |
User: | Credentials | The user of the Smarthost | |
Password: | Credentials | The corresponding password | |
Displays the password | |||
Relaying

Relaying list
Relaying list
Here it is configured which mails are accepted by the Securepoint appliance and forwarded to the internal mail server. Relaying can be allowed for certain hosts or certain domains.
Add an entry with the button
Caption | Value | Description | UTMuser@firewall.name.fqdnApplicationsMailrelay ![]() |
---|---|---|---|
Domain: | anyideas.de | Email domain name or IP address | |
Option: | The action is applied to all events. | ||
The sender domain is evaluated here. Example: Domain: ttt-point.de - This applies to all mails with the domain ttt-point.de in the sender. notempty Since the sender domain can easily be faked, this option is to be used only after careful examination.
| |||
The recipient domain is evaluated here. Example: Domain: anyideas.de - This concerns all mails with the domain anyideas.de in the recipient. | |||
Here the IP, hostname or domain of the mail server that wants to deliver the mail is evaluated. Example: Domain: ttt-point.de - Affects all mails from mail servers in the domain ttt-point.de - regardless of the sender or recipient of the mail. | |||
Action: | Mails that meet the relevant conditions will be accepted and forwarded. | ||
Mails are rejected. | |||
Mails are accepted and delivered to a local mailbox, but not forwarded. |
In order to relay all mails intended for recipients of your own domain, the following entry must be configured:
Add Domain / Host | |
---|---|
Domain: | anyideas.de |
Option: | |
Action: |
Settings
Use exact domain name for relaying:
On The relay reacts only to the domain name entered in the list and not to unregistered subdomains or extensions.
Example: Domain entered in the relay list: anyideas.de
On accepted by mailrelay: |
Off accepted by mailrelay: |
---|---|
@anyideas.de | @anyideas.de @support.anyideas.de @anyideas.de.com |
TLS Settings
Caption | Default | Description |
---|---|---|
TLS encryption as server: | On | If TLS is deactivated, mails are sent over unencrypted connections! |
Certificate: | The mailrelay uses a self-signed certificate for transport encryption. Optionally, a certificate whose CN corresponds to the UTM host name can be imported under | .|
TLS authentication as client: | Uses TLS if it is offered. | |
Always uses TLS. Connection with servers that do not offer TLS will be cancelled. | ||
Authenticates and uses TLS to DANE-compliant servers, if offered. |
SMTP Routen
SMTP Routing List
SMTP Routing List
UTMuser@firewall.name.fqdnApplications Configuration of SMTP routes
Here you have to set to which mail server a received mail should be forwarded. If this does not happen, the mail relay evaluates the MX record of the recipient domain - which points to the relay itself! A so-called "loopback" is then detected, which cancels the acceptance of the mail with a corresponding error message. In the following, further domains can be forwarded to the same or to other mail servers.
With the button further routes are created.
Required information: | |
---|---|
Domain: | anyideas.de (or the corresponding mail domain) |
Mailserver: | either as FQDN or the IP address |
Settings
In this section you can configure the verification of the destination email address. It causes mails to unknown recipients to be rejected. On the one hand the attempt to deliver spam to "invented" recipients is effectively prevented, on the other hand legitimate senders receive feedback that their mail could not be delivered, for example because they have committed themselves to the recipient address.
Function | Option | Description |
---|---|---|
Email address validation: | There is no verification of email addresses. An attempt is made to deliver all mails. | |
The Securepoint appliance queries the internal mail server in the background. notempty Hinweis The validation must also be active on the mail server! (Recipient Verification e.g. with an Exchange).
| ||
For example, the Securepoint appliance queries the Active Directory server. In the case of authentication via LDAP, the corresponding server must be configured under . The user does not necessarily have to be the administrator, one user with read privileges is sufficient. | ||
A list of accepted mail recipients can also be created locally. | ||
This can be used to add mail addresses. |
Signing
Outgoing emails can be signed using DKIM. The individual segments in the header and the body are signed separately, so that forwarding a mail via a mail server and changing the mail header does not destroy the signature.
General
| ||||
Caption | Value | Description | UTMuser@firewall.name.fqdnApplications ![]() | |
---|---|---|---|---|
DKIM Sign | On | At activation, DKIM signing can be used. | ||
Sign local email: | On | Mails originating from the UTM are signed with DKIM. | ||
Maximum processes: | 2 | Controls global number of concurrent connections to mail relay (and attached filtering and anti-spam processes) | ||
Domains | ||||
Adds a default configuration. For this purpose, an RSA key is generated (Selector) and assigned to each mail domain entered as SMTP route | ||||
Add | Adds a domain name record | |||
/ | Opens / closes the overview that shows the selectors for a domain that are used for signing. | |||
Removes a selector from a domain entry | ||||
Displays the DNS Settings | ||||
Plain text | No | With Yes activation the DNS settings will be displayed in one window. If a separate authoritative DNS server is operated, this value can be copied directly into a BIND zone file.
| ||
Copies the entry to the clipboard. To assign the subdomain at the DNS hoster.
| ||||
Copies the entry to the clipboard. To assign the subdomain at the DNS hoster. This is the public part of the RSA key, which must be stored in the TXT record of the mail domain.
| ||||
Edits the respective domain name | ||||
Deletes the entry | ||||
DKIM Selectors | ||||
Add | Adds a DKIM selector | |||
Adds the selector to the active (blue highlighted) domain entry. | ||||
Edits the entry | ||||
Name: | selector-2020-02-13-1 | Name of the selector | ||
RSA Key: | Key name | Select existing key or create a new key pair with the | button||
Hash algorithm: | sha256 | Algorithm used | ||
[–] Advanced settings
| ||||
Email Header Canonicalization: | Canonicalize the email headers. | |||
Do not canonicalize the email headers. | ||||
Email Body Canonicalization: | Remove trailing blank lines and cleanup whitespaces. | |||
Remove trailing blank lines only. | ||||
Sign default email headers: | Yes | Default: h=From:Reply-To:Subject:Date:To:Cc:Resent-Date:Resent-From:Resent-To:Resent-Cc:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; | ||
Email headers to be signed: | »From »Date »Subject »To »List-Unsubscribe »List-ID |
Email headers to be signed. |
Optional Settings
Further settings are recommended, but not mandatory for operative use:
Greylisting
Greylisting causes the delivery attempt of an unknown mail server to be initially rejected. Usually, spambots do not make any further delivery attempts, so that the delivery of spam was already successfully prevented before the mail had to run through the spam filter engine. A regular mail server, on the other hand, will make another successful delivery attempt after a certain period of time.
The following configurations are possible:
AllowlistAllowlist
| |||
Caption | Default | Description | UTMuser@firewall.name.fqdnApplications ![]() |
---|---|---|---|
IP / Networks: | »10.0.0.0/8 »172.16.0.0/12 »192.168.0.0/16 »127.0.0.0/8 | The default are the private IP address ranges and the loopback address. With a click into the clickobx you can add further networks and single hosts (e.g.:»203.0.113.113/32) | |
Domains: | Here single Mailserver domains can be added e.g.: smtp.anyideas.de The domain of the mail server does not have to be identical with the e-mail domain of the sender. Example: Sender user@ttt-point.de sends via the mail server »smtp.anyideas.de | ||
Recipient: | Individual recipients can be added here, e.g: »MailUser@ttt-point.de | ||
Sender: | Individual senders can be added here e.g.:{cb | ||
SettingsSettings | |||
Greylisting: | Off | On activates the function. | |
SPF: | Off | If the Sender Policy Framework of the sender domain is correctly entered in the DNS, the mail will be delivered without delay if On is activated. | |
Add header: | Yes | By default, an additional greylisting entry is added for each recipient listed in the mail header. This can cause problems in case of many recipients. When disabled, no greylisting headers are inserted. | |
Automatic allowlisting for: | 7 Days (Default) | For this period, after a successful delivery mails will be accepted immediately. | |
Delay: | 2 Minutes (Default) | The period of time that the sending mail server is given to make another delivery attempt. | |
Subnet MatchSubnet Match | |||
Subnet mask IPv4: | »32 | Instead of the sending server having to have the exact IP address as before, this can be changed so that, for example, only the first 2 or 3 octets have to match. This enables allowlisting even if the sender has several mail servers. Possible values: (Only one value can be entered.) »32 (Single Host) »24 Subnet, with match of first three octets »29 Any value via keyboard input. | |
Subnet mask IPv6: | »128 |
Domain Mapping

Domains can be mapped to receive incoming mails to e.g. user@anyideas.net also under user@anyideas.de.
With
the mapping between two domains can be activated.To do this, a Source-Domain: and a Destination Domain: must be specified.
Advanced Settings
Here some further options to avoid spam can be found, each of which can be activated individually:
Greeting Pause
| |||
Caption | Function | Description | ![]() |
---|---|---|---|
Status: | On | activates the function. | |
Duration: | 2 | Seconds (default value). Time the mail relay delays the greeting message. If the connected client sends SMTP commands before this time has elapsed, its request is rejected at the RCPT TO command with a "Protocol Error". can be defined as network or host IP address for known mail servers. Successfully waiting mail servers are also automatically allowlisted for one day.
| |
Recipient Restriction
| |||
Status: | Off | ||
Limit: | 25 | Recipient | |
Restriction per client
| |||
Enable connection limits: | Off | Exceptions can be defined as network or host IP address for known mail servers. Configuration if a single mail server (identified by its IP address) is to establish a maximum of one connection to the UTM Appliance and a maximum of 5 connections per minute in succession: | |
Allowed connections: | 1 | Number of (client) connections, per connected mail server. | |
Enable rate control: | Off | Limits the number of (client) connections per connected mail server within a time frame. | |
Time frame: | 60 | seconds | |
Connections per time frame: | 5 | ||
Others
| |||
HELO required: | On | Should absolutely remain activated (default). This switch exists to ensure backward compatibility. | |
Require reverse DNS lookup: | Off | Requires a reverse lookup (address) to exist for connected mail servers. The forward lookup must return the IP address. | |
Accept unresolvable domains: | Off | Allows sender addresses whose domain cannot be resolved via DNS. | |
Maximum processes: | 10 | Controls global number of concurrent connections to mail relay (and attached filtering and anti-spam processes) | |
Configuration of the mailrelay for outgoing mails
To make sure that no spam or malware can be sent from your own network, the mail relay can also be used for outgoing mails.
Set of rules
To allow access to the mail relay, the hosts authorized to send mail must be allowed access to the corresponding interface of the Securepoint appliance (depending on the zone in which the hosts are located) via the SMTP protocol. Depending on the requirements, this can be a single host (e.g. the mail server), a group of hosts or the entire network. It is important that all applications that are to send mails via the mail relay have entered the corresponding firewall interface as SMTP server or smarthost. For example, to allow the internal network access to the mail relay, the set of rules can be created with the predefined network groups: |
UTMuser@firewall.name.fqdnFirewall
| |||||||||||||||||||||||||||
UTMuser@firewall.name.fqdnFirewall Netzwerkobjekt Mailserver
If only the mail server is to be able to send mails, it must first be created as a network object:
This object can then be used in the firewall rule: |
UTMuser@firewall.name.fqdnFirewall
| |||||||||||||||||||||||||||||
Active: | On | Activate rule so that the portfilter takes effect | ||||||||||||||||||||||||||||
Source: | Select Mailserver (or the network object created above) as the source | |||||||||||||||||||||||||||||
Destination: | Select internal-interface as the destination | |||||||||||||||||||||||||||||
Service: | Select smtp as the service | |||||||||||||||||||||||||||||
Action: | Mails that meet the corresponding conditions are accepted and forwarded | |||||||||||||||||||||||||||||
Logging: | Logging is not required | |||||||||||||||||||||||||||||
Group: | The portfilter rule can be assigned to a group | |||||||||||||||||||||||||||||
If a certain group of computers in the internal network is to be allowed to use the mail relay, these computers must be created as network objects. These can then be combined in a group (e.g. "SMTP Authorized").
Configuration Relaying
Domain: | 192.0.2.0/30 or 192.0.2.192 notempty These are sample IPs for the internal mail servers. These have to be replaced by individual addresses!
|
Option: | |
Action: |
Conclusion
The UTM can now check incoming and outgoing mails for spam and viruses.