diff options
author | Jonas Smedegaard <dr@jones.dk> | 2007-07-12 18:49:36 +0000 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2007-07-12 18:49:36 +0000 |
commit | 13841b692e9d6dce607b3b77d816c544b5d50785 (patch) | |
tree | bc63aca31641ddf87ac14ce348bbad7eb658db36 /postfix/postfix.sh | |
parent | f609b7f62328c3d40a8820a9e8f1ac94d19feac6 (diff) |
Verify a bunch of suspect domains by default.
Diffstat (limited to 'postfix/postfix.sh')
-rwxr-xr-x | postfix/postfix.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/postfix/postfix.sh b/postfix/postfix.sh index a0f663a..1840633 100755 --- a/postfix/postfix.sh +++ b/postfix/postfix.sh @@ -3,7 +3,7 @@ # /etc/local-COMMON/postfix/postfix.sh # Copyright 2002-2004 Jonas Smedegaard <dr@jones.dk> # -# $Id: postfix.sh,v 1.43 2007-07-12 18:37:08 jonas Exp $ +# $Id: postfix.sh,v 1.44 2007-07-12 18:49:36 jonas Exp $ # # Auto-tweak plain installed postfix Debian package # @@ -117,9 +117,9 @@ $postconf -e "`getlinesfromfile smtpd_sender_restrictions reject_rhsbl_sender`" $postconf -e "`getlinesfromfile smtpd_recipient_restrictions reject_maps_rbl=reject_rbl_client=maps_rbl_domains`" $postconf -e "`getlinesfromfile smtpd_data_restrictions`" -# Make sure sender_access file (used in smtpd_sender_restrictions) exist +# Verify senders of known and suspect domains # FIXME: somehow do this step only if enabled in smtpd_sender_restrictions -touch "$confdir/sender_access" +cat /etc/local-COMMON/postfix/maildomains | sort | sed 's/$/ reject_unverified_sender/' > "$confdir/sender_access" postmap "$confdir/sender_access" $postconf -e "unverified_sender_reject_code = 550" |