In main.cf: sender_bcc_maps = hash:/etc/postfix/bcc In bcc: [email protected] [email protected]
[email protected] is an alias of our public folder address. In sieve for this address is: if address :is ["From"] "[email protected]" { fileinto "Public/Addr/Sent"; } It works, but it store duplicate mails in folder. As I understand it: 1) Postfix gets mail from [email protected] to [email protected] 2) It sends 1st bcc 3) Postfix gets bcc mail and sends 2nd bcc 4) User [email protected] has forwarding to recipient@other_dom.tld, so postfix sends a copy there 5) 3rd bcc is sent for this forwarder mail 6) Postfix gets 3rd bcc mail and send 4th bcc In this case sent mail is stored 4x. I can write script which will get bcc mails and store only unique ones. But I would like to have pure solution for this. We have shared address [email protected]. Mails sent to this address are stored in shared folder. Some users are replying using [email protected] as sender's address. I need to store these sent mails into Addr/Sent folder by mailserver. Thank you in advance for any hints.
