[Dovecot] sieve plugin does not autocreate folder

JM coil93 at gmail.com
Thu Dec 9 17:55:56 EET 2010


Sieve plugin does not autocreate folder, defined in sieve filter

/etc/dovecot/sieve/default.sieve
require ["fileinto"];
# rule:[off]
if anyof (header :contains "To" "off@***.com", header :contains "Cc"
"off@****.com")
{
   fileinto "INBOX.off";
   stop;
}

>sievec /etc/dovecot/sieve/default.sieve
sievec(root): Debug: Loading modules from directory: /usr/lib64/dovecot
sievec(root): Debug: Module loaded: /usr/lib64/dovecot/lib15_notify_plugin.so
sievec(root): Debug: Module loaded: /usr/lib64/dovecot/lib20_expire_plugin.so
sievec(root): Debug: Effective uid=1030, gid=1030, home=/root
sievec(root): Debug: maildir++: root=/root, index=, control=, inbox=/root

> mail -f test at test.org to off@****.com
> cat /var/log/dovecot.log

: script binary /etc/dovecot/sieve/default.svbin successfully loaded
: binary save: not saving binary /etc/dovecot/sieve/default.svbin,
because it is already stored
: executing script from /etc/dovecot/sieve/default.svbin
Namepace : Permission lookup failed from
/var/spool/mail/virtual/****.com/****@*****.com/.INBOX.off
Namepace : Using permissions from
/var/spool/mail/virtual/****.com/*****@*****: mode=0700 gid=-1
Namepace : Permission lookup failed from
/var/spool/mail/virtual/*****.com/*****@****.com/.INBOX.off
Namepace : Using permissions from
/var/spool/mail/virtual/****.com/****@****.com: mode=0700 gid=-1
: msgid=<56918ca75c35458412116ec36d8e7c46@*****.com>: failed to store
into mailbox 'INBOX.off': Mailbox doesn't exist: INBOX.off
Error: sieve: execution of script /etc/dovecot/sieve/default.sieve
failed, but implicit keep was successful
Info: sieve: msgid=<56918ca75c35458412116ec36d8e7c46@*****.com>:
stored mail into mailbox 'INBOX'


OS - Linux gentoo 2.6.36 x64
dovecot version 2.0.8
dovecot.conf
base_dir = /var/run/dovecot/
default_vsz_limit = 1 G
mail_debug = yes
mail_gid = vmail
mail_location = maildir:%h
mail_privileged_group = vmail
mail_uid = vmail
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope
encoded-character vacation

plugin {
  sieve = ~/.dovecot.sieve
  sieve_before = /etc/dovecot/sieve/default.sieve
  sieve_dir = ~/sieve
}
protocols = imap pop3 sieve
service auth {
  unix_listener auth-master {
    mode = 0600
    user = vmail
  }
}
service managesieve-login {
  vsz_limit = 1 M
}
protocol lda {
  auth_socket_path = /var/run/dovecot/auth-master
  log_path = /var/log/dovecot.log
  mail_plugins = sieve quota
}


More information about the dovecot mailing list