|
|
|
@ -2,8 +2,9 @@
|
|
|
|
|
|
|
|
|
|
#-ini(overlay-calculate.revision,#-cut(0,-,#-cl_pass_file-#)-#)-#
|
|
|
|
|
|
|
|
|
|
#?pkg(mail-mta/postfix)!=&&grep(/var/lib/calculate/calculate.env,sr_mail_set\s+=\s+on)!=&&grep(/etc/postfix/main.cf,^smtpd_relay_restriction)==#
|
|
|
|
|
echo "smtpd_relay_restriction = permit_mynetworks, permit_sasl_authenticated, defer_unauth_destination" >>/etc/postfix/main.cf
|
|
|
|
|
#?pkg(mail-mta/postfix)!=&&grep(/var/lib/calculate/calculate.env,sr_mail_set\s+=\s+on)!=&&grep(/etc/postfix/main.cf,^smtpd_relay_restrictions)==#
|
|
|
|
|
echo >>/etc/postfix/main.cf
|
|
|
|
|
echo "smtpd_relay_restrictions = permit_mynetworks, permit_sasl_authenticated, defer_unauth_destination" >>/etc/postfix/main.cf
|
|
|
|
|
#pkg#
|
|
|
|
|
|
|
|
|
|
true
|
|
|
|
|