Univention Bugzilla – Bug 37414
always_bcc recipient always receive emails twice
Last modified: 2015-05-08 11:47:16 CEST
Customer reported: Ticket#2014121821000174 comment 4 If the UCR variable mail/archivefolder is set and mail/antivir/spam=yes (which is default) postfix send two mails to mail/archivefolder recipient. It's easy to resolve the problem in the master.cf. Just add in the first smtpd line a "-o receive_override_options=no_address_mappings". The new template for master.cf could look like this: --- 10_services 2013-11-20 11:54:47.000000000 +0100 +++ 10_services.new 2014-12-22 17:34:00.368239596 +0100 @@ -8,6 +8,8 @@ smtp = '%s inet n - n - - smtpd' % configRegistry.get('mail/smtpport', '25') if configRegistry.is_true("mail/postfix/smtpd/debug", False): smtp += " -v" +if configRegistry.get('mail/archivefolder'): + smtp += " -o receive_override_options=no_address_mappings" print smtp @!@ #628 inet n - n - - qmqpd The UCR variable mail/archivefolder has now also trigger to rebuild the master.cf.
I'm not sure if the proposed patch (source seems to be http://www.postfix.org/ADDRESS_REWRITING_README.html#auto_bcc) is the optimal way since a lot of other features will be disabled and may break things like canonical maps or result in non-optimal/faulty mail routing. From the man page (man 5 postconf): > no_address_mappings > Disable canonical address mapping, virtual alias map expansion, address > masquerading, and automatic BCC (blind carbon-copy) recipients. This is > typically specified BEFORE an external content filter. This has to be checked before applying the patch.
*** This bug has been marked as a duplicate of bug 14619 ***