summaryrefslogtreecommitdiff
path: root/postfix/postfix.sh
diff options
context:
space:
mode:
Diffstat (limited to 'postfix/postfix.sh')
-rwxr-xr-xpostfix/postfix.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/postfix/postfix.sh b/postfix/postfix.sh
index 6cd7e86..79e8cb2 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.12 2003-03-18 03:24:33 jonas Exp $
+# $Id: postfix.sh,v 1.13 2003-03-18 11:14:29 jonas Exp $
#
# Auto-tweak plain installed postfix Debian package
#
@@ -107,7 +107,7 @@ 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" || \
+ 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
$postconf -e 'content_filter = smtp-amavis:[127.0.0.1]:10024'
fi