diff options
author | Jonas Smedegaard <dr@jones.dk> | 2003-03-18 03:24:33 +0000 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2003-03-18 03:24:33 +0000 |
commit | 0175a80a859c48dee88f8d83b395fd4547bbbc82 (patch) | |
tree | 4949fbdf6bf18e1a7ce6ad26627f043deaceca93 | |
parent | b3c008973762b81bf91ab5ef3683981f3c9e6fe0 (diff) |
Add amavis support to postfix script.
-rwxr-xr-x | postfix/postfix.sh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/postfix/postfix.sh b/postfix/postfix.sh index 9f510b5..6cd7e86 100755 --- a/postfix/postfix.sh +++ b/postfix/postfix.sh @@ -3,7 +3,7 @@ # /etc/local-COMMON/postfix/postfix.sh # Copyright 2002 Jonas Smedegaard <dr@jones.dk> # -# $Id: postfix.sh,v 1.11 2003-01-14 13:56:04 jonas Exp $ +# $Id: postfix.sh,v 1.12 2003-03-18 03:24:33 jonas Exp $ # # Auto-tweak plain installed postfix Debian package # @@ -104,6 +104,14 @@ else echo 'TLS not activated - check the script for requirements...' fi +if [ -x /usr/sbin/amavisd ]; then + cat $confdir/master.cf | egrep -q "^smtp-amavis$sp" || \ + echo 'smtp-amavis unix - - n - 2 smtp -o smtp_data_done_timeout=1200s -o smtp_never_send_ehlo=yes -o disable_dns_lookups=yes' >> $confdir/master.cf + cat $confdir/master.cf | egrep -q "^smtp-amavis$sp" || \ + echo '127.0.0.1:10025 inet n - n - - smtpd -o content_filter= -o local_recipient_maps= -o smtpd_helo_restrictions= -o smtpd_client_restrictions= -o smtpd_sender_restrictions= -o smtpd_recipient_restrictions=permit_mynetworks,reject -o mynetworks=127.0.0.0/8' >> $confdir/master.cf + $postconf -e 'content_filter = smtp-amavis:[127.0.0.1]:10024' +fi + /etc/init.d/postfix reload # Based on this: http://jimsun.linxnet.com/misc/postfix-anti-UCE.txt |