Use spamassassin on port 25 only

This commit is contained in:
Artem Kobets 2019-08-11 18:05:11 +03:00
parent 08107c0ee3
commit 46c35da496

View File

@ -59,15 +59,14 @@ sed -i "/^\s*-o/d;/^\s*submission/d;/^\s*smtp/d" /etc/postfix/master.cf
echo "smtp unix - - n - - smtp echo "smtp unix - - n - - smtp
smtp inet n - y - - smtpd smtp inet n - y - - smtpd
-o content_filter=spamassassin
submission inet n - y - - smtpd submission inet n - y - - smtpd
-o syslog_name=postfix/submission -o syslog_name=postfix/submission
-o smtpd_tls_security_level=encrypt -o smtpd_tls_security_level=encrypt
-o content_filter=spamassassin
-o smtpd_sasl_auth_enable=yes -o smtpd_sasl_auth_enable=yes
-o smtpd_tls_auth_only=yes -o smtpd_tls_auth_only=yes
smtps inet n - y - - smtpd smtps inet n - y - - smtpd
-o syslog_name=postfix/smtps -o syslog_name=postfix/smtps
-o content_filter=spamassassin
-o smtpd_tls_wrappermode=yes -o smtpd_tls_wrappermode=yes
-o smtpd_sasl_auth_enable=yes -o smtpd_sasl_auth_enable=yes
spamassassin unix - n n - - pipe spamassassin unix - n n - - pipe