+
+ cp_check_and_sed '^# -o' \
+ 's/^# -o/ -o/g' \
+ /etc/postfix/master.cf || true
+
+ for option in "-o milter_macro_daemon_name=ORIGINATING" \
+ "-o smtpd_recipient_restrictions=" \
+ "-o smtpd_reject_unlisted_recipient=no" \
+ "-o smtpd_relay_restrictions=permit_sasl_authenticated,reject" \
+ "-o smtpd_sasl_auth_enable=yes" \
+ "-o smtpd_tls_security_level=encrypt" \
+ "-o smtpd_tls_wrappermode=yes" \
+ "-o syslog_name=postfix/smtps" \
+ "-o syslog_name=postfix/submission"; do
+ cp_check_and_sed "^# $option" \
+ "s/# $option/$option/g" \
+ /etc/postfix/master.cf || true
+ done
+
+ for option in "o smtpd_client_restrictions=" \
+ "o smtpd_helo_restrictions=" \
+ "o smtpd_sender_restrictions="; do
+ cp_check_and_sed "$option" \
+ "s/.*$option/# -$option/g" \
+ /etc/postfix/master.cf || true
+ done