Kaspersky Lab kaspersky mail gateway 5.5 Mode D'Emploi

Page de 154
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=*@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. 
• 
forward all email messages for domain domain2.com to port 25 of host 
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).  
• 
forward all other messages to the corresponding MX-hosts after anti-virus 
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. 
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: 
Config OK ! 
If the check reveals errors, the following line will appear in the server console: 
Config is invalid see log for detail.