User Guide

Advanced application settings 55
5.4. Setting up connection receiving
interfaces
The set of interfaces and ports, used by the application to receive the
connections, is defined by ListenOn parameter in the [smptgw.network]
section of the application configuration file. By default, Kaspersky SMTP-
Gateway listens for connection on port 25 using all available interfaces.
If a particular interface is to be used rather than all available interfaces or if it is
necessary to use a port other than 25, additional settings configuration must be
performed.
To make the application wait for connection on port 1025 of interface
192.168.0.1:
assign the following value to the ListenOn parameter in the
[smtpgw.network] section:
ListenOn=192.168.0.1:1025
In order to use several particular interfaces, create several ListenOn parameter
records in the configuration file. E.g.:
ListenOn=192.168.0.1:25
ListenOn=10.0.0.1:25
5.5. Setting up the routing table
The application does not include a local agent used for message delivery,
therefore all incoming mail messages must be transferred to the local host where
such an agent in installed.
The rules for transferring (routing) are set by the ForwardRoute parameter in the
[smtpgw.forward] section.
This parameter is specified using one of the following formats:
ForwardRoute=<address_mask> recipient
ForwardRoute=<address_mask> [<recipient>]
ForwardRoute=<address_mask> [<recipient>:<port>]
where:
<address_mask> – the address of the recipient of the messages
(wildcards "*" and "?" can be used; if the parameter is assigned any
value, then any recipient’s address may be used).