From f34e0edce02aa0213a2727100254bafeb936b3c2 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Wed, 11 Jun 2003 17:46:41 +0000 Subject: A couple of AMaViS tweaks. --- postfix/postfix.sh | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'postfix') diff --git a/postfix/postfix.sh b/postfix/postfix.sh index 22a3e10..2de9fee 100755 --- a/postfix/postfix.sh +++ b/postfix/postfix.sh @@ -3,7 +3,7 @@ # /etc/local-COMMON/postfix/postfix.sh # Copyright 2002-2003 Jonas Smedegaard # -# $Id: postfix.sh,v 1.17 2003-06-01 18:36:19 jonas Exp $ +# $Id: postfix.sh,v 1.18 2003-06-11 17:46:41 jonas Exp $ # # Auto-tweak plain installed postfix Debian package # @@ -107,10 +107,16 @@ else fi if [ -x /usr/sbin/amavisd -o -x /usr/sbin/amavisd-new ]; 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 + if [ "$pf2" ]; then + cat $confdir/master.cf | egrep -q "^smtp-amavis$sp" || \ + echo 'smtp-amavis unix - - n - 2 lmtp -o smtp_data_done_timeout=1200s -o smtp_never_send_ehlo=yes -o disable_dns_lookups=yes' >> $confdir/master.cf + $postconf -e 'max_use = 10' + else + 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 + fi cat $confdir/master.cf | egrep -q "^127.0.0.1:10025$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 + echo '127.0.0.1:10025 inet n - n - - smtpd -o content_filter= -o local_recipient_maps= -o relay_recipient_maps= -o smtpd_restriction_classes= -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 -o strict_rfc821_envelopes=yes' >> $confdir/master.cf $postconf -e 'content_filter = smtp-amavis:[127.0.0.1]:10024' fi -- cgit v1.2.3