diff options
author | Jonas Smedegaard <dr@jones.dk> | 2012-09-11 20:54:37 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2012-09-11 20:54:37 +0200 |
commit | dd49a0277ef4af0bf8f64d57f9820e2ebd90f641 (patch) | |
tree | cb3236625602bdaf5ec3b9a7496e210951e978f5 | |
parent | c42526e961a5db04d5f8a2901d873df313cfdb61 (diff) |
Fix silence sender_access_regex when dkimproxy not enabled.
-rwxr-xr-x | postfix/postfix.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/postfix/postfix.sh b/postfix/postfix.sh index ead37be..b2421b6 100755 --- a/postfix/postfix.sh +++ b/postfix/postfix.sh @@ -242,8 +242,11 @@ if [ -n "$dkimproxy" ]; then && grep -q -F '/^/ FILTER dkimsign:[127.0.0.1]:10026' "$tempdir/sender_access_regex" \ || echo '/^/ FILTER dkimsign:[127.0.0.1]:10026' >> "$tempdir/sender_access_regex" else - [ -f "$tempdir/sender_access_regex" ] \ - || echo "touch \"$confdir/sender_access_regex\"" >> "$tempdir/COMMANDS" + 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" + fi + fi fi # Support exceptions to default response |