User Guide

56 Kaspersky
®
SMTP-Gateway 5.5 for Linux/Unix
<recipient> is the name of the domain containing the mail server,
where (according to MX records) the email must be sent.
[<recipient>:<port>] is the delivery point (IP address or host
name, port).
For example, if you create the following record in section [smtpgw.forward]:
ForwardRoute=*@domain.com [localhost:1025]
then all mail messages to domain.com will be sent to port 1025 of the local host
after an anti-virus scan.
If several routing rules must be specified, create several copies of the
ForwardRoute parameter in the configuration file.
For example, record created in section [smtpgw.forward]:
ForwardRoute=*@domain1.com [localhost:1025]
ForwardRoute=*@domain2.com [somehost.somedomain.com]
ForwardRoute=*@domain3.com otherdomain.com
will mean the following processing rules
:
forward all email messages for domain domain1.com to port 1025 of the
local host after anti-virus scanning
forward all email messages for domain domain2.com to port 25 of host
somehost.somedomain.com after anti-virus scanning
forward all email messages for domain domain3.com to MX-host of
domain otherdomain.com after anti-virus scanning (the domain will be
determined at the time the message is sent
forward all other messages to the corresponding MX-hosts after anti-virus
scanning.
When determining the routing rules the first record will be used out
of those where the specified domain matches the domain of
message recipient.
5.6. Checking the configuration file
syntax
Use the -k or --check-config key in the application command line to check
the syntax of its configuration file.
If the configuration file contains no errors, the following line will be displayed in
the server console:
Config OK !