[Dovecot] both perosnal and global sieve scripts
Selcuk Yazar
selcuk.yazar at gmail.com
Wed May 28 09:01:49 UTC 2014
Hi
we have redhat 6 EL and dovecot 2.0.9 personel scripts running with no
problem, but now i try to add global scripts for sieve
i added parameters
sieve_global_path = /var/lib/dovecot/sieve/default.sieve
sieve_global_dir = /var/lib/dovecot/sieve/
and create folder with owned vmail and creat script default.sieve
require ["fileinto"];
# rule:[Move Spam to Junk Folder]
if header :is "X-Spam-Flag" "YES"
{
fileinto "Spam";
stop;
}
if header :contains ["Subject"] "**global**" {
fileinto "Spam" ;
stop ;
}
keep;
after that when try to compile this script it says
mbox: INBOX defaulted to /home/vmail/domains//root/inbox
fs: root=/home/vmail/domains//root, index=, control=,
inbox=/home/vmail/domains//root/inbox
i think sievec doesnt recognazi mail_location or anothers things, when i
try to sent e-mail, it didn't deliver also i saw root folder after domains
folder.
any idea
our conf is
dovecot -n
# 2.0.9: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-131.6.1.el6.x86_64 x86_64 Red Hat Enterprise Linux
Server release 6.0 (Santiago) ext4
auth_debug = yes
auth_debug_passwords = yes
auth_default_realm = ........................edu.tr
auth_mechanisms = plain login
auth_verbose = yes
debug_log_path = /var/log/dovecot.debug
disable_plaintext_auth = no
first_valid_uid = 97
info_log_path = /var/log/dovecot.info
last_valid_uid = 5000
mail_debug = yes
mail_gid = 1001
mail_location = mbox:/home/vmail/domains/%d/%u
mail_uid = 1001
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
mbox_write_locks = fcntl
passdb {
args = /etc/dovecot/conf.d/dovecot-ldap.conf.ext
driver = ldap
}
plugin {
quota = maildir:User quota
quota_warning = storage=95%% quota-warning 95 %u
quota_warning2 = storage=80%% quota-warning 80 %u
sieve = /var/sieve-scripts/%u.sieve
sieve_dir = /home/vmail/domains/sieve/%n/.sieve
}
protocols = imap pop3 lmtp sieve
service auth {
unix_listener auth-userdb {
mode = 0600
user = vmail
}
}
service managesieve-login {
inet_listener sieve {
port = 4190
}
inet_listener sieve_deprecated {
port = 2000
}
}
ssl = no
ssl_cert = </etc/pki/dovecot/certs/dovecot.pem
ssl_key = </etc/pki/dovecot/private/dovecot.pem
userdb {
args = /etc/dovecot/conf.d/dovecot-ldap.conf.ext
driver = ldap
}
protocol lda {
debug_log_path = /var/log/dovecot-lda-errors.log
info_log_path = /var/log/dovecot-lda.log
log_path = /var/log/dovecot-lda-errors.log
mail_plugins = " sieve quota"
}
protocol imap {
mail_plugins = " quota imap_quota"
}
thanks in advance
--
Selçuk YAZAR
More information about the dovecot
mailing list