Hi, I have postfix running and sometimes and I have some duplicate emails with the same Message-ID. With dovecot sieve, I understand that duplicate option remove these emails but I don't understand the configuration to apply. Thanks for your tips,
# doveconf -n # 2.3.7.2 (3c910f64b): /etc/dovecot/dovecot.conf # Pigeonhole version 0.5.7.2 () # OS: Linux 5.4.0-104-generic x86_64 Ubuntu 20.04.4 LTS # Hostname: B7B3274.online-server.cloud auth_mechanisms = plain login first_valid_uid = 8 log_path = /var/log/dovecot.log mail_location = maildir:~ managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date index ihave duplicate mime foreverypart extracttext namespace inbox { inbox = yes location = mailbox Drafts { special_use = \Drafts } mailbox Junk { special_use = \Junk } mailbox Sent { special_use = \Sent } mailbox "Sent Messages" { special_use = \Sent } mailbox Trash { special_use = \Trash } prefix = } passdb { args = /etc/dovecot/dovecot-sql.conf.ext driver = sql } plugin { sieve = ~/.dovecot.sieve sieve_dir = ~/sieve } protocols = imap service auth { unix_listener /var/spool/postfix/private/dovecot-auth { group = postfix mode = 0660 user = postfix } } ssl_cert = was automatically rejected:%n%r }
On 04/04/2022 13:44 Jean-Max Reymond jmreymond@ik.me wrote:
Hi, I have postfix running and sometimes and I have some duplicate emails with the same Message-ID. With dovecot sieve, I understand that duplicate option remove these emails but I don't understand the configuration to apply. Thanks for your tips,
Hi!
you can remove existing duplicates with doveadm deduplicate
command.
Aki
Le 05/04/2022 à 09:16, Aki Tuomi a écrit :
On 04/04/2022 13:44 Jean-Max Reymond jmreymond@ik.me wrote:
Hi, I have postfix running and sometimes and I have some duplicate emails with the same Message-ID. With dovecot sieve, I understand that duplicate option remove these emails but I don't understand the configuration to apply. Thanks for your tips,
Hi!
you can remove existing duplicates with
doveadm deduplicate
command.Aki
Thanks for your answer but I want to delete from the incoming mail stream.
I have improved my configuration and now, I have
plugin { sieve = ~/.dovecot.sieve sieve_default = /var/lib/dovecot/sieve/default.sieve sieve_dir = ~/sieve sieve_trace_debug = yes sieve_trace_dir = /var/log/sieve.log }
and # cat /var/lib/dovecot/sieve/default.sieve require ["duplicate", "fileinto", "mailbox"];
if duplicate { fileinto :create "Trash/Duplicate"; }
but I have always duplicate emails.
On 2022-04-05 10:42, Jean-Max Reymond wrote:
Le 05/04/2022 à 09:16, Aki Tuomi a écrit :
On 04/04/2022 13:44 Jean-Max Reymond jmreymond@ik.me wrote:
Hi, I have postfix running and sometimes and I have some duplicate emails with the same Message-ID. With dovecot sieve, I understand that duplicate option remove these emails but I don't understand the configuration to apply. Thanks for your tips,
Hi!
you can remove existing duplicates with
doveadm deduplicate
command.Aki
Thanks for your answer but I want to delete from the incoming mail stream.
I have improved my configuration and now, I have
plugin { sieve = ~/.dovecot.sieve sieve_default = /var/lib/dovecot/sieve/default.sieve sieve_dir = ~/sieve sieve_trace_debug = yes sieve_trace_dir = /var/log/sieve.log }
and # cat /var/lib/dovecot/sieve/default.sieve require ["duplicate", "fileinto", "mailbox"];
if duplicate { fileinto :create "Trash/Duplicate"; }
but I have always duplicate emails.
It could be due to a misconfigurationa in the MTA, perhaps you need to check your routers and transports if you were using EXIM, as it doesn't seem to be an expected result, to always have duplicate emails, isn't?
participants (3)
-
Aki Tuomi
-
hi@zakaria.website
-
Jean-Max Reymond