diff options
Diffstat (limited to 'postfix')
-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 |