User Guide

Advanced settings 55
Configure the application to wait for connection on port 25, interfaces
192.168.0.1 и 10.0.0.1
In order to do this, modify the value of parameter ListenOn, section
[smtpgw.network] as follows:
ListenOn=192.168.0.1:25
ListenOn=10.0.0.1:25
6.3. Setting up the routing table
The application does not include a local agent used message delivery, therefore
all incoming mail messages must be transferred to the local host that is equipped
with such agent.
The rules for transferring (routing) are set by the ForwardRoute parameter
section [smtpgw.forward] of the application configuration file.
This parameter is specified using one of the following formats:
ForwardRoute=recipient_domain_suffix recipient
ForwardRoute=recipient_domain_suffix recipient:port
ForwardRoute=recipient_domain_suffix [recipient]
ForwardRoute=recipient_domain_suffix [recipient:port]
where:
recipient_domain_suffix the address of the recipient of the
messages (special symbols "*" and "?" can be used; if the parameter is
assigned value any, then any recipient’s address may be used);
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 having been scanned for viruses
If several routing rules must be specified, create several copies of parameter
ForwardRoute 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