diff options
-rwxr-xr-x | postfix/postfix.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/postfix/postfix.sh b/postfix/postfix.sh index f5aa113..ee7c8de 100755 --- a/postfix/postfix.sh +++ b/postfix/postfix.sh @@ -3,7 +3,7 @@ # /etc/local-COMMON/postfix/postfix.sh # Copyright 2002-2007 Jonas Smedegaard <dr@jones.dk> # -# $Id: postfix.sh,v 1.58 2007-09-13 10:42:59 jonas Exp $ +# $Id: postfix.sh,v 1.59 2007-09-24 16:11:06 jonas Exp $ # # Auto-tweak plain installed postfix Debian package # @@ -140,7 +140,8 @@ $postconf -e "`getlinesfromfile smtpd_data_restrictions`" # (exclude verification of postmaster@ to not verify verification probes) # (add own domains before peers for (rare) cases of duplicates) # FIXME: somehow do this step only if enabled in smtpd_sender_restrictions -cat /etc/local-COMMON/postfix/maildomains | sort | sed 's/$/ reject_unverified_sender/' > "$confdir/sender_access" +# TODO: Properly implement exception exclusion like yahoo (which does not want to be checked any longer!) +cat /etc/local-COMMON/postfix/maildomains | grep -v yahoo | sort | sed 's/$/ reject_unverified_sender/' > "$confdir/sender_access" ( catfilefromownrealm maildomains | sort; catallfilesfromotherrealms maildomains | sort ) \ | sed 's/\(.*\)$/postmaster@\1 permit\n\1 reject_unverified_sender/' >> "$confdir/sender_access" postmap "$confdir/sender_access" |