Hi there, I have a customer with domain a at tld and domain b at tld. b.tld is an alias for a.tld The Server is using virtual users based on mysql, dovecot for delivery and Maildir for Mail-Storage. If someone writes an e-mail to a.tld with a cc: to b.tld the customer receives the E-Mail twice. Is there a way to deliver the same Mail in the same Mailbox only once ? -- Christoph Adomeit GATWORKS GmbH Reststrauch 191 41199 Moenchengladbach Sitz: Moenchengladbach Amtsgericht Moenchengladbach, HRB 6303 Geschaeftsfuehrer: Christoph Adomeit, Hans Wilhelm Terstappen Christoph.Adomeit at gatworks.de Internetloesungen vom Feinsten Fon. +49 2166 9149-32 Fax. +49 2166 9149-10
* Christoph Adomeit <Christoph.Adomeit at gatworks.de> 2016.04.20 10:29:> Is there a way to deliver the same Mail in the same Mailbox only once ?Yes this case is supported via an sieve extension: require ["duplicate"]; #Deduplicate mails sent to aliases for same mailbox using the msgid if duplicate { discard; } -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: Digital signature URL: <http://dovecot.org/pipermail/dovecot/attachments/20160420/d6752d34/attachment-0001.sig>
Hi, Thomas Leuxner <tlx at leuxner.net> (Mi 20 Apr 2016 11:04:22 CEST):> * Christoph Adomeit <Christoph.Adomeit at gatworks.de> 2016.04.20 10:29: > > > Is there a way to deliver the same Mail in the same Mailbox only once ? > > Yes this case is supported via an sieve extension: > require ["duplicate"]; > > > #Deduplicate mails sent to aliases for same mailbox using the msgid > if duplicate { > discard; > }I wouldn't do that. Message with the same message id doesn't need to be duplicates. See the difference between this message (I put you on BCC), you'll receive it via the mailing list AND directly. Depending on the ML configuration the messages are NOT identical. (ML signature, replaced Reply-To, added header lines, ?) Best regards from Dresden/Germany Viele Gr??e aus Dresden Heiko Schlittermann -- SCHLITTERMANN.de ---------------------------- internet & unix support - Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} - gnupg encrypted messages are welcome --------------- key ID: F69376CE - ! key id 7CBF764A and 972EAC9F are revoked since 2015-01 ------------ - -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 473 bytes Desc: Digital signature URL: <http://dovecot.org/pipermail/dovecot/attachments/20160420/dd0ee337/attachment.sig>
Il 20/04/2016 11:04, Thomas Leuxner ha scritto:> * Christoph Adomeit <Christoph.Adomeit at gatworks.de> 2016.04.20 10:29: > >> Is there a way to deliver the same Mail in the same Mailbox only once ? > > Yes this case is supported via an sieve extension: > > require ["duplicate"]; > > > #Deduplicate mails sent to aliases for same mailbox using the msgid > > if duplicate { > discard; > } >Hi, instead of discard I suggest to move the duplicate messagge in a folder: if duplicate { fileinto "Trash"; } so in case of necessity can be recovered. -- Alessio Cecchi Postmaster @ http://www.qboxmail.it https://www.linkedin.com/in/alessice