diff options
author | Jonas Smedegaard <dr@jones.dk> | 2007-09-24 16:11:06 +0000 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2007-09-24 16:11:06 +0000 |
commit | be7ac1af2b34f1b250191b5cc004b96638ff7486 (patch) | |
tree | 862f0a3f5c4e5a598278049f5ae5012b46f716bb /postfix | |
parent | 6e60e35c8530a7dda5f0a35b40be061b225775d7 (diff) |
Avoid checking yahoo domains for sender address - they refuse to cooperate.
Diffstat (limited to 'postfix')
-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" |