From 67f7cef4f27803e67e127c6db961216acf4faef7 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Thu, 23 Aug 2007 15:13:29 +0000 Subject: Exclude sender address verification from postmaster@ to not verify verification probes. --- postfix/postfix.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'postfix') diff --git a/postfix/postfix.sh b/postfix/postfix.sh index a85237d..9a90be2 100755 --- a/postfix/postfix.sh +++ b/postfix/postfix.sh @@ -3,7 +3,7 @@ # /etc/local-COMMON/postfix/postfix.sh # Copyright 2002-2007 Jonas Smedegaard # -# $Id: postfix.sh,v 1.54 2007-07-24 00:33:14 jonas Exp $ +# $Id: postfix.sh,v 1.55 2007-08-23 15:13:29 jonas Exp $ # # Auto-tweak plain installed postfix Debian package # @@ -137,10 +137,11 @@ $postconf -e "`getlinesfromfile smtpd_recipient_restrictions reject_maps_rbl=rej $postconf -e "`getlinesfromfile smtpd_data_restrictions`" # Verify senders of own and suspect domains +# (exclude verification of postmaster@ to not verify verification probes) # (avoid verifying senders of peer domains to not clash with their recipient verification) # 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 | sort | sed 's/$/ reject_unverified_sender/' >> "$confdir/sender_access" +catfilefromownrealm 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" -- cgit v1.2.3