Discarding duplicate emails send to groups

As explained in the above link, from dovecot 2.2.18 the duplicate plugin is named just “duplicate” (instead of vnd.dovecot.duplicate) and available by default so the custom template /etc/e-smith/templates-custom/etc/dovecot/dovecot.conf/60lmtp is not needed anymore.

So creating the file /var/lib/nethserver/sieve-scripts/after.sieve with following content should be enough.

#  do not deliver duplicate mails

require "duplicate";

if duplicate {
    discard;
    stop;
}

To be sure restart the mailserver services (maybe not necessary):

signal-event nethserver-mail-server-update

Now mails to groups with same members are delivered only once. I tested with Roundcube and Thunderbird.

6 Likes