From f4ac06b2f11826ffc47df10cbd760ea05f41ac41 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sun, 25 May 2008 17:42:18 +0000 Subject: Add return service for dkimsign proxy. --- postfix/postfix.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'postfix') 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 # -# $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 # @@ -308,6 +308,18 @@ EOF 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' -- cgit v1.2.3