[Dovecot] Sieve: unknown tagged argument ':create' for the fileinto command
mailing at securitylabs.it
mailing at securitylabs.it
Fri Apr 1 11:08:09 EEST 2011
Hello, I've upgraded from dovecot 1.2.x with sieve to dovecot 2.0.11
with sieve. I've noticed that folders are no more created at delivery
time now. I've read that I have to do two things:
lda_mailbox_autocreate = yes
in dovecot.conf
and fileinto :create in the sieve script. Now the error message I receive is:
error: unknown tagged argument ':create' for the fileinto command (reported only once at first occurence).
My sieve script:
require ["date", "variables", "fileinto"];
if header :contains "subject" "Bacula:" {
if currentdate :matches "month" "*" { set "month" "${1}"; }
if currentdate :matches "year" "*" { set "year" "${1}"; }
fileinto :create "INBOX.Bacula.${month}-${year}";
} else {
# The rest goes into INBOX
# default is "implicit keep", we do it explicitly here
keep;
}
My dovecot conf:
papua:/usr/local/bin# dovecot -n
# 2.0.11: /usr/local/etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-5-amd64 x86_64 Debian 6.0.1
auth_cache_negative_ttl = 2 mins
auth_cache_size = 1000 M
auth_cache_ttl = 2 mins
auth_mechanisms = plain cram-md5 apop
auth_username_chars = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@&
disable_plaintext_auth = no
first_valid_uid = 100
last_valid_uid = 105
lda_mailbox_autocreate = yes
lock_method = dotlock
log_timestamp = "%Y-%m-%d %H:%M:%S "
login_greeting = Server ready.
mail_fsync = never
mail_gid = Debian-exim
mail_location = maildir:~/Maildir
mail_privileged_group = Debian-exim
mail_uid = Debian-exim
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
namespace {
inbox = yes
location =
prefix = INBOX.
separator = .
type = private
}
passdb {
args = /usr/local/etc/dovecot-sql.conf
driver = sql
}
plugin/mail_log_events = delete expunge
plugin/mail_log_group_events =
plugin/quota = maildir
plugin/quota_warning = storage=80%% /usr/local/bin/dovecot-quota-warning.sh 80
plugin/quota_warning2 = storage=90%% /usr/local/bin/dovecot-quota-warning.sh 90
plugin/sieve = ~/.dovecot.sieve
protocols = imap
service auth {
unix_listener auth-userdb {
group = Debian-exim
mode = 0600
user = Debian-exim
}
}
service imap-login {
client_limit = 256
process_limit = 128
process_min_avail = 3
service_count = 1
}
service imap {
drop_priv_before_exec = yes
process_limit = 256
vsz_limit = 256 M
}
service pop3-login {
client_limit = 256
process_limit = 128
process_min_avail = 3
service_count = 1
}
service pop3 {
drop_priv_before_exec = yes
process_limit = 256
vsz_limit = 256 M
}
ssl_cert =</usr/local/etc/dovecot.crt
ssl_key =</usr/local/etc/dovecot.key
userdb {
args = /usr/local/etc/dovecot-sql.conf
driver = sql
}
protocol imap {
mail_max_userip_connections = 10
mail_plugins = " notify quota imap_quota mail_log"
}
protocol lda {
mail_plugins = quota sieve
postmaster_address = postmaster at me.com
}
More information about the dovecot
mailing list