summaryrefslogtreecommitdiff
path: root/postfix
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2003-03-18 11:14:29 +0000
committerJonas Smedegaard <dr@jones.dk>2003-03-18 11:14:29 +0000
commit74008663fc4e17f2db582b3d22b05940d50dbab2 (patch)
treed9cbe6e1a7e93f604a4872a933c12331e1ba6bba /postfix
parent6ab0579cdd930b64e0b53eabb5df926b8f8ca137 (diff)
Whoops: Properly enable incoming *and* outgoing amavis ports.
Diffstat (limited to 'postfix')
-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