From b7c2b7d7fdd5114c584974db37032707f054d99a Mon Sep 17 00:00:00 2001 From: Benjamin Sonntag Date: Wed, 11 Feb 2015 15:43:54 +0100 Subject: [PATCH] adding enable_original_recipient=no to postfix, prevents duplicate emails for either AMAVIS-filtered mail, or ALIAS+IMAP multiple destination received emails. also set a max mail size of 100MB --- etc/alternc/templates/alternc/postfix/postfix-slave.cf | 3 +++ etc/alternc/templates/alternc/postfix/postfix.cf | 3 +++ 2 files changed, 6 insertions(+) diff --git a/etc/alternc/templates/alternc/postfix/postfix-slave.cf b/etc/alternc/templates/alternc/postfix/postfix-slave.cf index e4c5b274..3afcb183 100644 --- a/etc/alternc/templates/alternc/postfix/postfix-slave.cf +++ b/etc/alternc/templates/alternc/postfix/postfix-slave.cf @@ -35,3 +35,6 @@ transport_maps=proxy:mysql:/etc/postfix/myrelay.cf relay_domains=proxy:mysql:/etc/postfix/myrelay.cf relay_recipients_map=proxy:mysql:/etc/postfix/myvirtual.cf smtpd_recipient_restrictions = reject_unlisted_recipient, permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_recipient, reject_unauth_destination, check_policy_service inet:127.0.0.1:60000, reject_rbl_client zen.spamhaus.org +message_size_limit = 100000000 +mailbox_size_limit = 0 +enable_original_recipient = no diff --git a/etc/alternc/templates/alternc/postfix/postfix.cf b/etc/alternc/templates/alternc/postfix/postfix.cf index dd669413..46d8ea72 100644 --- a/etc/alternc/templates/alternc/postfix/postfix.cf +++ b/etc/alternc/templates/alternc/postfix/postfix.cf @@ -51,3 +51,6 @@ milter_default_action = accept milter_protocol = 6 smtpd_milters = inet:127.0.0.1:8891 non_smtpd_milters = inet:127.0.0.1:8891 +message_size_limit = 100000000 +mailbox_size_limit = 0 +enable_original_recipient = no