diff options
author | Jonas Smedegaard <dr@jones.dk> | 2007-08-23 15:45:17 +0000 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2007-08-23 15:45:17 +0000 |
commit | 6c8843136f02797933712f68a793e44bb02da0ef (patch) | |
tree | 97684b6c2448ed57d3a59c14b55c6fe089e189de /postfix | |
parent | 3513ee9c4019d72406baf015f0d7e42d3e6e1fc3 (diff) |
Add own daomins before peers for the rare cases of duplicates.
Diffstat (limited to 'postfix')
-rwxr-xr-x | postfix/postfix.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/postfix/postfix.sh b/postfix/postfix.sh index cfbaa54..4c1de9f 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.56 2007-08-23 15:25:35 jonas Exp $ +# $Id: postfix.sh,v 1.57 2007-08-23 15:45:17 jonas Exp $ # # Auto-tweak plain installed postfix Debian package # @@ -138,10 +138,11 @@ $postconf -e "`getlinesfromfile smtpd_data_restrictions`" # Verify senders of common suspicious and known verifiable domains # (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" -( catfilefromownrealm maildomains; catallfilesfromotherrealms maildomains ) \ - | sort | sed 's/\(.*\)$/postmaster@\1 permit\n\1 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" $postconf -e "unverified_sender_reject_code = 550" |