SASL Auth: force ssl/tls connections.
This commit is contained in:
@ -2015,6 +2015,8 @@ EOF
|
||||
## - /etc/postfix/main.cf
|
||||
## -
|
||||
## - add/uncomment:
|
||||
## -
|
||||
## - smtpd_tls_auth_only
|
||||
## -
|
||||
## - smtpd_sasl_type = dovecot
|
||||
## - smtpd_sasl_path = private/dovecot-auth
|
||||
@ -2030,7 +2032,9 @@ EOF
|
||||
_failed=false
|
||||
echononl "\tAdjust /etc/postfix/main.cf"
|
||||
|
||||
perl -i.$backup_date -n -p -e "s#^(\s*)(smtpd_sasl_auth_enable\ *=.*)#smtpd_sasl_auth_enable = no#" \
|
||||
perl -i.$backup_date -n -p -e "s#^(\s*)(smtpd_tls_auth_only\ *=.*)#smtpd_tls_auth_only = yes#" \
|
||||
/etc/postfix/main.cf || _failed=true
|
||||
perl -i -n -p -e "s#^(\s*)(smtpd_sasl_auth_enable\ *=.*)#smtpd_sasl_auth_enable = no#" \
|
||||
/etc/postfix/main.cf || _failed=true
|
||||
perl -i -n -p -e "s#^(\s*)(smtpd_sasl_type\ *=.*)#smtpd_sasl_type = dovecot#" \
|
||||
/etc/postfix/main.cf || _failed=true
|
||||
|
Reference in New Issue
Block a user