[Dovecot] Sieve 0.2.2 how to use sievec
Nikita Koshikov
koshikov at gmail.com
Tue Jan 18 12:04:17 EET 2011
On Tue, 18 Jan 2011 11:56:29 +0200
Timo Sirainen wrote:
> On 17.1.2011, at 10.02, Nikita Koshikov wrote:
>
> > sievec(root): Error: user root: Initialization failed: Namespace '': mkdir(/root/data) failed: Permission denied (euid=8(mail) egid=12(mail) missing +w perm: /root, euid is not dir owner)
>
> Show your doveconf -n output.
>
>
root at mail dovecot 0:0 # doveconf -n
# 2.0.9: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.26-gentoo-r4 i686 Gentoo Base System release 1.12.14
auth_cache_negative_ttl = 0
auth_cache_size = 5 k
auth_cache_ttl = 15 mins
auth_default_realm = domain.com
auth_failure_delay = 1 secs
auth_master_user_separator = *
auth_mechanisms = plain login
auth_username_format = %Lu
auth_worker_max_count = 50
debug_log_path = /var/log/dovecot/debug.log
dict {
acl = sqlite:/etc/dovecot/plugins/acl.conf
expire = sqlite:/etc/dovecot/plugins/expire.conf
}
first_valid_gid = 12
first_valid_uid = 8
info_log_path = /var/log/dovecot/dovecot.log
last_valid_gid = 12
last_valid_uid = 8
listen = *
log_path = /var/log/dovecot/dovecot-error.log
login_greeting = Server ready.
mail_gid = 12
mail_location = maildir:~/.data
mail_log_prefix = "%Us(%u %r): "
mail_plugins = acl quota trash virtual zlib
mail_uid = 8
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 spamtest notify
namespace {
inbox = yes
list = yes
location = maildir:~/data
prefix =
separator = /
subscriptions = yes
type = private
}
namespace {
hidden = yes
list = yes
location = virtual:/var/mail/virtual:INDEX=MEMORY:LAYOUT=maildir++
prefix = Company/
separator = /
subscriptions = no
type = private
}
namespace {
list = children
location = maildir:%%h/data:INDEX=~/shared/%%u
prefix = Shared/%%u/
separator = /
subscriptions = no
type = shared
}
passdb {
args = /etc/dovecot/passdb/master.pwd
driver = passwd-file
master = yes
}
passdb {
args = /etc/dovecot/passdb/users.pwd
driver = passwd-file
}
passdb {
args = /etc/dovecot/dovecot-ldap.conf.ext
driver = ldap
}
plugin {
acl = vfile:/etc/dovecot/acl:cache_secs=300
acl_shared_dict = proxy::acl
antispam_allow_append_to_spam = no
antispam_backend = mailtrain
antispam_mail_notspam = --ham
antispam_mail_sendmail = /etc/dovecot/plugins/spam.sh
antispam_mail_sendmail_args = -u mail
antispam_mail_spam = --spam
antispam_mail_tmpdir = /tmp
antispam_spam = Spam
antispam_trash = Trash
autocreate = Drafts
autocreate2 = Sent
autocreate3 = Spam
autocreate4 = Trash
autosubscribe = Drafts
autosubscribe2 = Sent
autosubscribe3 = Spam
autosubscribe4 = Trash
expire = Trash
expire2 = Trash/*
expire3 = Spam
expire_dict = proxy::expire
quota = maildir:Mailbox quota
quota_rule = *:storage=750M
quota_rule2 = Trash:storage=+10%%
quota_warning = storage=90%% quota-warning 95 %u
sieve = ~/.dovecot.sieve
sieve_after = /etc/dovecot/sieve/default-after.sieve
sieve_dir = ~/sieve
sieve_extensions = +notify +spamtest
sieve_spamtest_max_value = 10
sieve_spamtest_status_header = X-Spam-Scan-Score
sieve_spamtest_status_type = score
trash = /etc/dovecot/plugins/dovecot-trash.conf
}
protocols = imap pop3 sieve
service anvil {
client_limit = 3096
}
service auth-worker {
unix_listener auth-worker {
group = dovecot_auth
mode = 0660
}
user = dovecot_auth
}
service auth {
client_limit = 12288
unix_listener auth-client {
group = dovecot_auth
mode = 0660
user = mail
}
unix_listener auth-userdb {
mode = 0600
user = mail
}
user = dovecot_auth
}
service dict {
unix_listener dict {
mode = 0600
user = mail
}
user = mail
}
service imap-login {
inet_listener imap {
port = 0
}
process_limit = 2048
process_min_avail = 50
}
service imap {
drop_priv_before_exec = yes
process_limit = 2048
}
service managesieve-login {
process_limit = 50
process_min_avail = 3
}
service managesieve {
drop_priv_before_exec = yes
process_limit = 50
}
service pop3-login {
inet_listener pop3 {
port = 0
}
process_limit = 20
process_min_avail = 5
}
service pop3 {
drop_priv_before_exec = yes
process_limit = 20
}
service quota-warning {
executable = script /etc/dovecot/plugins/quota_warning.sh
unix_listener quota-warning {
mode = 0600
user = mail
}
user = mail
}
ssl_cert = </etc/ssl/dovecot/imaps.crt
ssl_key = </etc/ssl/dovecot/imaps.key
userdb {
driver = prefetch
}
userdb {
args = /etc/dovecot/passdb/users.pwd
driver = passwd-file
}
userdb {
args = /etc/dovecot/dovecot-userdb-ldap.conf.ext
driver = ldap
}
protocol lda {
hostname = mail.domain.com
info_log_path = /var/log/dovecot/dovecot-deliver.log
lda_mailbox_autocreate = yes
log_path = /var/log/dovecot/dovecot-deliver.log
mail_plugins = acl quota trash virtual zlib expire sieve
postmaster_address = postmaster at domain.com
quota_full_tempfail = yes
}
protocol imap {
imap_client_workarounds = delay-newmail
imap_id_log = *
mail_max_userip_connections = 25
mail_plugins = acl quota trash virtual zlib antispam autocreate expire imap_acl imap_quota imap_zlib
}
protocol sieve {
managesieve_implementation_string = Sieve
}
protocol pop3 {
pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
}
More information about the dovecot
mailing list