Skip to content

Commit 45b1635

Browse files
author
Andre Rodier
committed
Postfix: disable the authentication on the port 25
This will disable user authentication on the port 25 (smtp), as users should user the submission protocol, on port 587 and starttls. --- ROLE=postfix ansible-playbook -t facts,config install.yml --- Once you have run the role, make sure to run the following roles as well: opendkim and opendmarc. --- ROLE=opendkim ansible-playbook -t facts,postfix install.yml ROLE=opendmarc ansible-playbook -t facts,postfix install.yml --- And if you are using rspamd: --- ROLE=rspamd ansible-playbook -t facts,postfix install.yml ---
1 parent 838774f commit 45b1635

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

roles/postfix/templates/main.cf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ smtpd_tls_loglevel = 1
5656
smtp_tls_security_level = may
5757
smtp_tls_loglevel = 1
5858

59-
# Authentication via SASL
60-
smtpd_sasl_auth_enable = yes
59+
# Authentication via Dovecot SASL
6160
smtpd_sasl_type = dovecot
6261
smtpd_sasl_path = private/auth
6362

roles/postfix/templates/master.cf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@ submissions inet n - y - - smtpd {{ smtpd_flags }}
1616
-o smtpd_tls_wrappermode=yes
1717
-o smtpd_relay_restrictions=permit_mynetworks,permit_sasl_authenticated,reject
1818
-o cleanup_service_name=subcleanup
19+
-o smtpd_sasl_auth_enable=yes
1920
{% if mail.postfix.submission.active %}
2021
submission inet n - y - - smtpd {{ smtpd_flags }}
2122
-o syslog_name=postfix/submission
2223
-o smtpd_discard_ehlo_keywords=silent-discard,etrn
2324
-o smtpd_relay_restrictions=permit_mynetworks,permit_sasl_authenticated,reject
2425
-o cleanup_service_name=subcleanup
26+
-o smtpd_sasl_auth_enable=yes
2527
{% endif %}
2628
pickup unix n - y 60 1 pickup
2729
cleanup unix n - y - 0 cleanup

0 commit comments

Comments
 (0)