6.5. TCP port configuration¶
6.5.1. Milter port¶
The port through which the MTA will connect to the filter. This port is defined in two places:
MILTER_PORT variable is used to define this port. Default 7074:
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:
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf /etc/init.d/sendmail restart
6.5.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