[Dovecot] dovecot-sieve and ldap user

spamvoll at googlemail.com spamvoll at googlemail.com
Sun Jan 31 00:06:39 EET 2010


hi..

im running dovecor 1.2.10 and dovecot-sieve 0.1.15

protocol lda {
..
  mail_plugins = sieve
}
plugin {
...
   sieve = ~/.dovecot.sieve
   sieve_dir = ~/sieve
}

cat .dovecot.sieve
require "fileinto";
if header :contains "subject" ["VIRUS"] {
fileinto "VIRUS";
} else {
keep;
}

But mails dont get moved.
I use the master.cf to get postfix to use deliver

dovecot	unix	-	n	n	-	10	pipe
  flags=DRhu user=vmail:vmail argv=/usr/libexec/dovecot/deliver -d ${recipient}

dovecot -n
# 1.2.10: /etc/dovecot.conf
# OS: Linux 2.6.18-164.10.1.el5 i686 CentOS release 5.4 (Final)
protocols: imaps
ssl: required
login_dir: /var/run/dovecot/login
login_executable: /usr/libexec/dovecot/imap-login
first_valid_uid: 10000
last_valid_uid: 10000
first_valid_gid: 10000
last_valid_gid: 10000
mail_uid: vmail
mail_gid: vmail
lda:
  postmaster_address: postmaster at example.com
  mail_plugins: sieve
  auth_socket_path: /var/run/dovecot/auth-master
auth default:
  passdb:
    driver: ldap
    args: /etc/dovecot-ldap.conf
  userdb:
    driver: passwd
  userdb:
    driver: ldap
    args: /etc/dovecot-ldap.conf
  socket:
    type: listen
    master:
      path: /var/run/dovecot/auth-master
      mode: 384
      user: vmail
      group: vmail
plugin:
  sieve: ~/.dovecot.sieve
  sieve_dir: ~/sieve

Does the sieve plugin use the home_dir returned from the ldap ?
And is it ok to use the deliver in master.cf and or do i have to set
mailbox_command = /usr/lib/dovecot/deliver
?


More information about the dovecot mailing list