Filip Loncar [WarpMax | FederationServers]
2016-Aug-02 08:25 UTC
Problem with sieve configuration on dovecot+debian_jessie+ISPC3
I'm new-ish to dovecot and sieve (haven't used it extensively till now) and I'm not sure that I configured everything propperly. The problem is that we're trying to get the following sieve code to run: require ["fileinto", "regex", "date", "relational", "vacation", "duplicate"]; require "duplicate"; if duplicate :header "message-id" { discard; } else { redirect "<somemail1>"; redirect "<somemail2>"; redirect "<somemail3>"; redirect "<somemail4>"; redirect "<somemail5>"; redirect "<somemail6>"; keep; } keep; But we're constantly getting the following error: sieve: info: started log at Aug 02 08:13:21. main script: line 5: error: require command: unknown Sieve capability `duplicate'. main script: line 6: error: unknown test 'duplicate' (only reported once at first occurence). main script: error: validation failed. Both me and my collegue can't find what's wrong with the system. I would appreciate any kind of help on this matter. Below's my configuration. # dovecot --version 2.2.13 # dovecot -n # 2.2.13: /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-45-pve x86_64 Debian 8.5 auth_mechanisms = plain login disable_plaintext_auth = no listen = *,[::] log_timestamp = "%Y-%m-%d %H:%M:%S " mail_privileged_group = vmail 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 ihave vnd.dovecot.duplicate passdb { args = /etc/dovecot/dovecot-sql.conf driver = sql } plugin { quota = dict:user::file:/var/vmail/%d/%n/.quotausage sieve = /var/vmail/%d/%n/.sieve sieve_duplicate_default_period = 14d sieve_extensions = +vnd.dovecot.duplicate sieve_max_redirects = 6 sieve_plugins = sieve_extprograms } protocols = imap pop3 service auth { unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0660 user = postfix } unix_listener auth-userdb { group = vmail mode = 0600 user = vmail } user = root } service imap-login { client_limit = 1000 process_limit = 500 } ssl_cert = </etc/postfix/smtpd.cert ssl_key = </etc/postfix/smtpd.key ssl_protocols = !SSLv2 !SSLv3 userdb { args = /etc/dovecot/dovecot-sql.conf driver = sql } protocol imap { mail_plugins = quota imap_quota } protocol pop3 { mail_plugins = quota pop3_uidl_format = %08Xu%08Xv } protocol lda { mail_plugins = sieve quota } # uname -a Linux fero 2.6.32-45-pve #1 SMP Wed Mar 30 12:22:08 CEST 2016 x86_64 GNU/Linux It's a Debain Jessie VM running ISPC3. -- Srdac(an pozdrav | Best regards Filip Lonc(ar ___________________________________________ WarpMax hosting *WarpMax hosting* *A* Tehnolos(ki park Varaz(din, Zagrebac(ka 89, Varaz(din, Croatia - Europe *T * +385 42 492 129, 490 090, +385 99 5896 123 ___________________________________ Ova elektronic(ka poruka, kao i svi eventualni privici, su povjerljivi i namijenjeni iskljuc(ivo naznac(enom primatelju(ima). Ukoliko niste naznac(eni primatelj(i) ove elektronic(ke poruke, molimo da odmah obavijestite pos(iljatelja, a sve kopije ove elektronic(ke poruke (ukljuc(ujuc'i i privitke) trajno obris(ete. Svaka neovlas(tena upotreba, distribucija, reprodukcija ili priopc'avanje ove poruke zabranjeno je. WarpMax hosting ne preuzima odgovornost za sadrz(aj ove poruke i eventualnu s(tetu nastalu primitkom ove poruke i priloga sadrz(anih u poruci. Ne jamc(imo da je ova elektronic(ka poruka slobodna od virusa. WarpMax hosting ne preuzima odgovornost za bilo kakav gubitak ili s(tetu koja nastane zbog prisutnosti virusa u elektronic(koj poruci. This e-mail, including all attached files, if any, is confidential and intended for the sole use by the person(s) mentioned as recipient(s). If you are not the named recipient(s) indicated in this message, please notify the sender immediately, and permanently delete all copies of this message (including any attachments). Any review, use, distribution, disclosure, printing or copying of this e-mail other than by the intended recipient(s) is prohibited. WarpMax hosting accepts no liability for content of this message and any potential damage caused by this message and files attached to it. No warranty is given that this email is free of viruses. WarpMax hosting accepts no liability for any loss or damage caused by presence of a virus. -------------- next part -------------- A non-text attachment was scrubbed... Name: warpmax-eml.png Type: image/png Size: 25915 bytes Desc: not available URL: <http://dovecot.org/pipermail/dovecot/attachments/20160802/53955b6d/attachment-0001.png>
Benny Pedersen
2016-Aug-05 09:05 UTC
Problem with sieve configuration on dovecot+debian_jessie+ISPC3
On 2016-08-02 10:25, Filip Loncar [WarpMax | FederationServers] wrote:> require "duplicate"; > if duplicate :header "message-id" { > discard; > }this sieve rule will discard your own postings on maillists when you get them back bummer> This e-mail, including all attached files, if any, is confidential andthis is a public maillist, no need to make a policy on that please cut it down or remove it when you post to maillists
Filip LonĨar
2016-Aug-05 09:29 UTC
Problem with sieve configuration on dovecot+debian_jessie+ISPC3
Well that's not a problem with the mailing list. The problem is that I'm trying to do a forwarding system between 6 emails that all have to receive each other's emails but without the duplicates. So we have emails: A, B, C, D, E, and F; And whenever someone sends an email to A; B, C, D, E, and F should receive the emails. But B automatically forwards everything to A again, and to everyone else, etc. ad infinitum. So I get a loop. I'm trying to fix that all duplicates aren't forwarded to anyone else. So that people can put B, C, and E into the CC without getting duplicates. Thanks in advance. PS: Those were the experimental rules on the system, not this email. On 5 August 2016 at 11:05, Benny Pedersen <me at junc.eu> wrote:> On 2016-08-02 10:25, Filip Loncar [WarpMax | FederationServers] wrote: > > require "duplicate"; >> if duplicate :header "message-id" { >> discard; >> } >> > > this sieve rule will discard your own postings on maillists when you get > them back > > bummer > > This e-mail, including all attached files, if any, is confidential and >> > > this is a public maillist, no need to make a policy on that > > please cut it down or remove it when you post to maillists >
Stephan Bosch
2016-Aug-05 10:27 UTC
Problem with sieve configuration on dovecot+debian_jessie+ISPC3
Thunderbird shows this message as only a picture. Had to view the source to read it.> I'm new-ish to dovecot and sieve (haven't used it extensively till now) > and I'm not sure that I configured everything propperly. > > The problem is that we're trying to get the following sieve code to run:[...]> But we're constantly getting the following error: > > sieve: info: started log at Aug 02 08:13:21. > main script: line 5: error: require command: unknown Sieve capability > `duplicate'. > main script: line 6: error: unknown test 'duplicate' (only reported once > at first occurence). > main script: error: validation failed. > > Both me and my collegue can't find what's wrong with the system. > > I would appreciate any kind of help on this matter. > Below's my configuration. > > # dovecot --version > 2.2.13That version is very old. I am not sure which Pigeonhole version Debian used with that. The standard "duplicate" extension was introduced around that time. It could be that it is still called "vnd.dovecot.duplicate" at your end. So, try `require "vnd.dovecot.duplicate";' instead of `require "duplicate";'. Regards, Stephan.