5.1. TCP port configuration¶
5.1.1. Milter port¶
The port through which the MTA will connect to the filter. This port is defined in two places:
/opt/msh-traffic-policy/etc/config.cf
MILTER_PORT variable is used to define this port. Default 7074:
/etc/postfix/main.cf
/etc/mail/sendmail.mc
With Postfix installation defined port is located in smptd_milters = inet:localhost:[PORT]
line. Default 7074
.
With Sendmail installation defined port is located in INPUT_MAIL_FILTER(`MSH-Traffic-Policy', `S=inet:[PORT]@localhost')dnl
line. Default 7074
.
After change of these values restart milter daemon and Postfix/Sendmail:
/etc/init.d/msh-tp-milter restart
Postfix:
/etc/init.d/postfix reload
Sendmail:
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
/etc/init.d/sendmail restart
5.1.2. Settings ports¶
Settings daemon to communicate with external components like milter is using two separate TCP ports.
File config.cf
to configure these ports is located in /opt/msh-traffic-policy/etc
directory.
Variable SETTINGS_PORT_IN
defines input port. Default 1101
.
Variable SETTINGS_PORT_OUT
defines output port. Default 1102
.
After change of these values restart settings and milter daemon:
/etc/init.d/msh-tp-settings restart
/etc/init.d/msh-tp-milter restart