summaryrefslogtreecommitdiff
path: root/postfix
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2008-05-25 17:42:18 +0000
committerJonas Smedegaard <dr@jones.dk>2008-05-25 17:42:18 +0000
commitf4ac06b2f11826ffc47df10cbd760ea05f41ac41 (patch)
tree39689e3dd231314da7f98ec94d5bf5669ffcc5d2 /postfix
parente1100903a0ffad54678e278134b0149e2adb928e (diff)
Add return service for dkimsign proxy.
Diffstat (limited to 'postfix')
-rwxr-xr-xpostfix/postfix.sh14
1 files changed, 13 insertions, 1 deletions
diff --git a/postfix/postfix.sh b/postfix/postfix.sh
index 923029e..aa12d7a 100755
--- a/postfix/postfix.sh
+++ b/postfix/postfix.sh
@@ -3,7 +3,7 @@
# /etc/local-COMMON/postfix/postfix.sh
# Copyright 2002-2007 Jonas Smedegaard <dr@jones.dk>
#
-# $Id: postfix.sh,v 1.71 2008-05-25 17:02:11 jonas Exp $
+# $Id: postfix.sh,v 1.72 2008-05-25 17:42:18 jonas Exp $
#
# Auto-tweak plain installed postfix Debian package
#
@@ -309,6 +309,18 @@ dkimsign unix - - n - 10 smtp
-o smtp_send_xforward_command=yes
-o smtp_discard_ehlo_keywords=8bitmime
EOF
+ cat $tempdir/master.cf | egrep -q "^127\.0\.0\.1:10029$sp" || \
+ cat >> $tempdir/master.cf << EOF
+127.0.0.1:10029 inet n - n - 10 smtpd
+ -o content_filter=
+ -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
+ -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 smtpd_authorized_xforward_hosts=127.0.0.0/8
+EOF
else
$postconf -c "$tempdir" -e 'content_filter = smtp-amavis:[127.0.0.1]:10024'
fi