Kaspersky Lab kaspersky mail gateway 5.5 Mode D'Emploi
![Kaspersky Lab](https://files.manualsbrain.com/attachments/6297ae902b815dbfefa39dfad6abb3e11a947bcf/common/fit/150/50/1d8636c29cd4d405860e4e56247e7bf0c11699ee24e447aad6093cb86324/brand_logo.png)
Advanced application settings
69
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 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 and spam filtering.
local host after anti-virus scanning and spam filtering.
•
forward all email messages for domain domain2.com to port 25 of host
somehost.somedomain.com after anti-virus scanning and spam
filtering.
somehost.somedomain.com after anti-virus scanning and spam
filtering.
•
forward all email messages for domain domain3.com to MX-host of
domain otherdomain.com after anti-virus scanning and spam filtering
(the domain will be determined at the time the message is sent).
domain otherdomain.com after anti-virus scanning and spam filtering
(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 and spam filtering.
scanning and spam filtering.
When determining the routing rules the first record will be used out
of those where the specified domain matches the domain of
message recipient.
of those where the specified domain matches the domain of
message recipient.
6.4. 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:
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 !
If the check reveals errors, the following line will appear in the server console:
Config is invalid see log for detail.