[Dovecot] Problem with sieve and namespace
Hi guys,
my default sieve script fails due to an unknown mailspace even I told him to use one.
What's wrong?
Patrick
Feb 26 00:39:25 endeavour dovecot: lmtp(6967, mail@jasbafliesen.de): Error: 1WYlBCE1aE03GwAA0CSSVw: sieve: msgid=4D683DA5.7030505@gmx.de: failed to store into mailbox mail@jasbafliesen.de': Unknown namespace
Feb 26 00:39:25 endeavour dovecot: lmtp(6967, mail@jasbafliesen.de): Error: 1WYlBCE1aE03GwAA0CSSVw: sieve: script /usr/local/etc/dovecot/sieve/default.sieve failed with unsuccessful implicit keep
This is what my sieve script looks like:
require ["fileinto", "mailbox"]; if header :contains "X-Spam-Flag" "YES" { fileinto :create "INBOX.Spam"; }
# 2.0.6: /usr/local/etc/dovecot/dovecot.conf # OS: Linux 2.6.26-2-amd64 x86_64 Debian 5.0.8 auth_debug = yes auth_debug_passwords = yes auth_verbose = yes disable_plaintext_auth = no mail_debug = yes mail_gid = vmail mail_location = mdbox:~/mdbox mail_plugins = quota mail_uid = vmail managesieve_notify_capability = mailto managesieve_sieve_capability = comparator-i;octet comparator-i;ascii-casemap fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date namespace { inbox = yes location = prefix = INBOX. separator = . type = private } passdb { args = /usr/local/etc/dovecot/dovecot-sql.conf.ext driver = sql } plugin { quota = dict:User quota::file:%h/mdbox/dovecot-quota quota_warning = storage=90%% quota-warning 90 %u quota_warning2 = storage=75%% quota-warning 75 %u sieve = ~/.dovecot.sieve sieve_global_path = /usr/local/etc/dovecot/sieve/default.sieve } protocols = lmtp service auth { unix_listener /var/spool/postfix/private/auth { mode = 0666 } } service lmtp { unix_listener /var/spool/postfix/private/dovecot-lmtp { group = postfix mode = 0660 user = postfix } } service quota-warning { executable = script /usr/local/etc/dovecot/quota-warning.sh unix_listener quota-warning { user = vmail } user = vmail } ssl = no userdb { args = /usr/local/etc/dovecot/dovecot-sql.conf.ext driver = sql } protocol lmtp { mail_plugins = quota sieve } protocol lda { mail_plugins = quota sieve } protocol imap { mail_plugins = quota imap_quota }
On Sat, 2011-02-26 at 01:15 +0100, Patrick Westenberg wrote:
Feb 26 00:39:25 endeavour dovecot: lmtp(6967, mail@jasbafliesen.de): Error: 1WYlBCE1aE03GwAA0CSSVw: sieve: msgid=4D683DA5.7030505@gmx.de: failed to store into mailbox mail@jasbafliesen.de': Unknown namespace
According to that error message it was trying to save message to "mail@jasbafliesen.de'".
Dovecot's lib-lda API changed at some point recently. Maybe the problem is that you didn't recompile Pigeonhole after the API change?
I didn't change anything for months. I'll upgrade to the latest versions and see what happens
Timo Sirainen tss@iki.fi schrieb:
On Sat, 2011-02-26 at 01:15 +0100, Patrick Westenberg wrote: > Feb 26 00:39:25 endeavour dovecot: lmtp(6967, mail@jasbafliesen.de): > Error: 1WYlBCE1aE03GwAA0CSSVw: sieve: msgid=4D683DA5.7030505@gmx.de: > failed to store into mailbox mail@jasbafliesen.de': Unknown namespace According to that error message it was trying to save message to "mail@jasbafliesen.de'". Dovecot's lib-lda API changed at some point recently. Maybe the problem is that you didn't recompile Pigeonhole after the API change?
On 2/26/2011 1:15 AM, Patrick Westenberg wrote:
Hi guys,
my default sieve script fails due to an unknown mailspace even I told him to use one.
What's wrong? [...] Feb 26 00:39:25 endeavour dovecot: lmtp(6967, mail@jasbafliesen.de): Error: 1WYlBCE1aE03GwAA0CSSVw: sieve: msgid=4D683DA5.7030505@gmx.de: failed to store into mailbox mail@jasbafliesen.de': Unknown namespace
Feb 26 00:39:25 endeavour dovecot: lmtp(6967, mail@jasbafliesen.de): Error: 1WYlBCE1aE03GwAA0CSSVw: sieve: script /usr/local/etc/dovecot/sieve/default.sieve failed with unsuccessful implicit keep
It's trying to store in the default folder, whatever that is.
require ["fileinto", "mailbox"]; if header :contains "X-Spam-Flag" "YES" { fileinto :create "INBOX.Spam"; }
Yes, implicit keep.
mail_location = mdbox:~/mdbox
namespace { inbox = yes location = prefix = INBOX. separator = . type = private }
I'm not an expert, but your mail namespace config looks ok. The strange thing is that your script never mentions a folder like reported in the error. And, since it is using the default folder, I'm thinking the default folder is not "INBOX" in your case. Did you perhaps specify a `-m' parameter to dovecot-lda to change the default? If that is the e-mail address somehow, the above error could be explained. So, what is your dovecot-lda command line?
Regards,
Stephan.
Patrick Westenberg schrieb:
Feb 26 00:39:25 endeavour dovecot: lmtp(6967, mail@jasbafliesen.de): Error: 1WYlBCE1aE03GwAA0CSSVw: sieve: msgid=4D683DA5.7030505@gmx.de: failed to store into mailbox mail@jasbafliesen.de': Unknown namespace
Feb 26 00:39:25 endeavour dovecot: lmtp(6967, mail@jasbafliesen.de): Error: 1WYlBCE1aE03GwAA0CSSVw: sieve: script /usr/local/etc/dovecot/sieve/default.sieve failed with unsuccessful implicit keep
FYI: After upgrading to the latest versions these problems donĀ“t occur anymore.
Regards Patrick
participants (3)
-
Patrick Westenberg
-
Stephan Bosch
-
Timo Sirainen