Your Welcome



Happy Wednesday !!!
Thanks - paul

Paul Kudla


Scom.ca Internet Services <http://www.scom.ca>
004-1009 Byron Street South
Whitby, Ontario - Canada
L1N 4S3

Toronto 416.642.7266
Main 1.866.411.7266
Fax 1.888.892.7266

On 5/18/2022 9:04 AM, Thom Pol wrote:
I must say I was a bit sceptical if this sieve script would resolve it, but it seems like it totally did! Thanks a lot for your reply, hope this helps someone else in the future as well.

Kind regards,

Thom Pol



On 16/05/2022 08:12, Paul Kudla (SCOM.CA Internet Services Inc.) wrote:
ok duplicsate emails (even across dsync, replication etc) is typically
handled via a global sieve script


I use :

# cat duplicates.sieve
require "duplicate";           # for dovecot >= 2.2.18

if duplicate {
      discard;
      stop;
}

for the scripts

and setup sieve to work via my dovecot.conf file

relative parts below :

--------------------------------------------------------------------

protocols = imap pop3 lmtp sieve

protocol lmtp {
    mail_plugins = $mail_plugins sieve
    postmaster_address =moni...@scom.ca
}


protocol lda {
    mail_plugins = $mail_plugins sieve
}


plugin {
.....

    sieve =file:~/sieve;active=~/sieve/.dovecot.sieve

    sieve_duplicate_default_period = 1h
    sieve_duplicate_max_period = 1d
    sieve_extensions = +duplicate +notify +imapflags +vacation-seconds
    sieve_global_dir = /usr/local/etc/dovecot/sieve
    sieve_before = /usr/local/etc/dovecot/sieve/duplicates.sieve

.....
}

service managesieve-login {
    process_limit = 1000
    vsz_limit = 1g
    inet_listener sieve {
      port = 4190
    }
}

protocol sieve {
    managesieve_implementation_string = Dovecot Pigeonhole
    managesieve_max_line_length = 65536
}



------------------------------------------------------------------


note the sieve_before which handles duplictes during delivery etc.


Happy Monday !!!
Thanks - paul

Paul Kudla


Scom.ca Internet Services<http://www.scom.ca>
004-1009 Byron Street South
Whitby, Ontario - Canada
L1N 4S3

Toronto 416.642.7266
Main?1.866.411.7266
Fax?1.888.892.7266

--
This message has been scanned for viruses and
dangerous content by *MailScanner* <http://www.mailscanner.info/>, and is
believed to be clean.

Reply via email to