diff options
Diffstat (limited to 'amavis/mkaddon.sh')
-rwxr-xr-x | amavis/mkaddon.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/amavis/mkaddon.sh b/amavis/mkaddon.sh index fe920c4..975ba8c 100755 --- a/amavis/mkaddon.sh +++ b/amavis/mkaddon.sh @@ -13,6 +13,14 @@ EOF grep -v '^#!/bin/perl' "$basedir/$destfile.in" >> "$basedir/$destfile.new" +##################################################### +# Something's wrong - avoid cross-domain sharing of notifications for now. :-( +cp -af "$basedir/$destfile" "$basedir/$destfile.old" +mv "$basedir/$destfile.new" "$basedir/$destfile" +echo "\$bypass_spam_checks_acl = qw( spamalert@ spam.police@ );" >> "$basedir/$destfile.new" +exit 0 +##################################################### + domainfiles="`find "$basedir" -name 'local_domains_*' -type f | sort -u`" maildomains="" for domainfile in $domainfiles; do @@ -29,6 +37,7 @@ for maildomain in $maildomains; do echo " spamalert@$maildomain" >> "$basedir/$destfile.new" echo " spam.police@$maildomain" >> "$basedir/$destfile.new" done +echo " spam-quarantine@" >> "$basedir/$destfile.new" echo ");" >> "$basedir/$destfile.new" for thing in virus spam; do |