diff options
author | Jonas Smedegaard <dr@jones.dk> | 2007-09-25 14:30:48 +0000 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2007-09-25 14:30:48 +0000 |
commit | daf2bf2b96f7bdbd37fbd5e35a984a0d06da3b25 (patch) | |
tree | 0b3315d1ec8e962d4746d5097efab1449007ac6e | |
parent | 1aff03472add1cdf6e7d6d625da63d1d810a6a7d (diff) |
Drop deprecated auto-generated config (we now use layered config instead.
-rw-r--r-- | amavis/.cvsignore | 1 | ||||
-rwxr-xr-x | amavis/mkaddon.sh | 59 |
2 files changed, 0 insertions, 60 deletions
diff --git a/amavis/.cvsignore b/amavis/.cvsignore deleted file mode 100644 index d2d5bc6..0000000 --- a/amavis/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -amavisd.conf.addon.old diff --git a/amavis/mkaddon.sh b/amavis/mkaddon.sh deleted file mode 100755 index 8bc632c..0000000 --- a/amavis/mkaddon.sh +++ /dev/null @@ -1,59 +0,0 @@ -#!/bin/sh - -set -e - -basedir="/etc/local-COMMON/amavis" -destfile="amavisd.conf.addon" - ->"$basedir/$destfile.new" cat <<EOF -#!/bin/perl -### WARNING: This file is generated automatically. -### Please edit $destfile.in and run mkaddon.sh -EOF - -grep -v '^#!/bin/perl' "$basedir/$destfile.in" >> "$basedir/$destfile.new" - -echo "\$bypass_spam_checks_acl = qw( spamalert@ spam.police@ );" >> "$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" -exit 0 -##################################################### - -domainfiles="`find "$basedir" -name 'local_domains_*' -type f | sort -u`" -maildomains="" -for domainfile in $domainfiles; do - maildomain="`basename $domainfile | sed 's/local_domains_//'`" - maildomain_="`echo $maildomain | sed 's/\./_/g'`" - maildomains="$maildomains $maildomain" - domains="`cat "$domainfile" | grep -v '^#' | sed 's/#.*//' | sort -u`" - eval "domains_$maildomain_=\"$domains\"" -done - -echo >> "$basedir/$destfile.new" -echo "\$bypass_spam_checks_acl = qw(" >> "$basedir/$destfile.new" -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 - echo >> "$basedir/$destfile.new" - echo "\$${thing}_admin = {" >> "$basedir/$destfile.new" - for maildomain in $maildomains; do - maildomain_="`echo $maildomain | sed 's/\./_/g'`" - eval "domains=\"\$domains_$maildomain_\"" - for domain in $domains; do - echo " '.$domain' => '${thing}alert@$maildomain'," >> "$basedir/$destfile.new" - done - done - echo " '.' => \"${thing}alert\\@\$mydomain\"," >> "$basedir/$destfile.new" - echo "};" >> "$basedir/$destfile.new" -done - -cp -af "$basedir/$destfile" "$basedir/$destfile.old" -mv "$basedir/$destfile.new" "$basedir/$destfile" |