[Dovecot] Problem with sieve and namespace
Patrick Westenberg
pw at wk-serv.de
Sat Feb 26 02:15:59 EET 2011
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 at jasbafliesen.de):
Error: 1WYlBCE1aE03GwAA0CSSVw: sieve: msgid=<4D683DA5.7030505 at gmx.de>:
failed to store into mailbox mail at jasbafliesen.de': Unknown namespace
Feb 26 00:39:25 endeavour dovecot: lmtp(6967, mail at 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
}
More information about the dovecot
mailing list