Issue with sender_bcc_maps + sieve "Send copy to"
Hi, i encountered a problem with the "Send outgoing BCC to" and "Send copy to" options. For example if i set this options in this way : sender@example.com "Send copy to" archivie@somedomain.it --- sender@example.com "Send outgoing BCC to" archivie@somedomain.it
AND
receiver@example2.com "Send copy to" archivie@somedomain.it --- receiver@example2.com "Send outgoing BCC to" archivie@somedomain.it
If i send email from sender@example.com to receiver@example2.com, i would expect to find two emails in the mailbox archivie@somedomain.it, one "generated" by the option "Send outgoing BCC to" on the sender@example.com mailbox and one "generated" by the option "Send copy to" on the receiver@example2.com mailbox Instead i find 3 mails on archivie because when the sieve on receiver@example2.com forward the email (rightly setting the original sender sender@example.com) postfix duplicates it because of the option "Send outgoing BCC to" on sender@example.com mailbox.
I hope I'm making myself clear, my English is not that good :)
To mitigate this problem i have activated vnd.dovecot.duplicate plugin on sieve configuration and set this custom rule on archivie@somedomain.it mailbox : require "vnd.dovecot.duplicate"; if duplicate { discard; stop; } but I'm not sure it's a good solution, what do you think about it ?