6.1. TCP port configuration¶
6.1.1. Milter port¶
The port through which the MTA will connect to the filter. This port is defined in two places:
/opt/msh-ds/etc/config.cf
MILTER_PORT variable is used to define this port. Default 7076:
/etc/postfix/main.cf
/etc/mail/sendmail.mc
With Postfix installation defined port is located in smptd_milters = inet:localhost:[PORT]
line. Default 7076
.
With Sendmail installation defined port is located in INPUT_MAIL_FILTER(`MSH-Disclaimer-Signatures', `S=inet:[PORT]@localhost')dnl
line. Default 7076
.
After change of these values restart milter daemon and Postfix/Sendmail:
/etc/init.d/msh-ds-milter restart
Postfix:
/etc/init.d/postfix reload
Sendmail:
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
/etc/init.d/sendmail restart
6.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-ds/etc
directory.
Variable SETTINGS_PORT_IN
defines input port. Default 1107
.
Variable SETTINGS_PORT_OUT
defines output port. Default 1108
.
After change of these values restart settings and milter daemon:
/etc/init.d/msh-ds-settings restart
/etc/init.d/msh-ds-milter restart