Problem with sieve configuration on dovecot+debian_jessie+ISPC3

Filip Loncar [WarpMax | FederationServers] filip.loncar at federation-servers.com
Tue Aug 2 08:25:47 UTC 2016


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>


More information about the dovecot mailing list