[Dovecot] sieve plugin does not autocreate folder
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@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 }
hi,
look at the following settings: lda_mailbox_autocreate lda_mailbox_autosubscribe
and sieve has fileinto :create for that purpose
hth
darix
-- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org
Thank you Works like a charm
Regards Juri
On Thu, Dec 9, 2010 at 6:11 PM, Marcus Rueckert darix@opensu.se wrote:
hi,
look at the following settings: lda_mailbox_autocreate lda_mailbox_autosubscribe
and sieve has fileinto :create for that purpose
hth
darix
-- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org
On Thu, 9 Dec 2010 17:11:20 +0100 Marcus Rueckert darix@opensu.se articulated:
hi,
look at the following settings: lda_mailbox_autocreate lda_mailbox_autosubscribe
and sieve has fileinto :create for that purpose
I have never had to use ":create" to create the location. This would be on a FreeBSD-8.1 system. Perhaps it is system dependent.
-- Jerry ✌ Dovecot.user@seibercom.net
Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header.
After any salary raise, you will have less money at the end of the month than you did before.
On 2010-12-09 13:20:21 -0500, Jerry wrote:
I have never had to use ":create" to create the location. This would be on a FreeBSD-8.1 system. Perhaps it is system dependent.
because you didnt use dovecot 2 so far? the default changed between 1.2 and 2.0
darix
-- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org
participants (3)
-
Jerry
-
JM
-
Marcus Rueckert