From 592fdbc6b3c9105274e3a4c09c5614b58559f833 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 29 Jan 2013 20:31:34 +0100 Subject: Fix clear dkimproxy if previously used. --- postfix/postfix.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'postfix') diff --git a/postfix/postfix.sh b/postfix/postfix.sh index 21a0555..3f5467a 100755 --- a/postfix/postfix.sh +++ b/postfix/postfix.sh @@ -237,6 +237,7 @@ $postconf -c "$tempdir" -e "`getlinesfromfile smtpd_sender_restrictions reject_r $postconf -c "$tempdir" -e "`getlinesfromfile smtpd_recipient_restrictions reject_maps_rbl=reject_rbl_client=maps_rbl_domains`" $postconf -c "$tempdir" -e "`getlinesfromfile smtpd_data_restrictions`" +# FIXME: clear only specific line (not whole file) when dkimproxy unused if [ -n "$dkimproxy" ]; then [ -f "$tempdir/sender_access_regex" ] \ && grep -q -F '/^/ FILTER dkimsign:[127.0.0.1]:10026' "$tempdir/sender_access_regex" \ @@ -244,10 +245,11 @@ if [ -n "$dkimproxy" ]; then else if [ -f "$tempdir/sender_access_regex" ]; then if grep -q -F '/^/ FILTER dkimsign:[127.0.0.1]:10026' "$tempdir/sender_access_regex"; then - echo "touch \"$confdir/sender_access_regex\"" >> "$tempdir/COMMANDS" + echo "echo '' > \"$confdir/sender_access_regex\"" >> "$tempdir/COMMANDS" fi fi fi +postmapfiles="$postmapfiles sender_access_regex" # Support exceptions to default response # (Day Old Bread (dob) lists need to reject only temporarily) -- cgit v1.2.3