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 ?
On Sat, 2010-01-30 at 23:06 +0100, spamvoll at googlemail.com wrote:> userdb: > driver: passwd > userdb: > driver: ldap > args: /etc/dovecot-ldap.confNote the extra userdb passwd. I'd guess you don't want that.> Does the sieve plugin use the home_dir returned from the ldap ?Yes, but in the above configuration only if passwd didn't also contain the user.> And is it ok to use the deliver in master.cf and or do i have to set > mailbox_command = /usr/lib/dovecot/deliver > ?They're different ways to set it up. Typically mailbox_command is for system users, while master.cf is for virtual users. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20100218/270b155a/attachment-0002.bin>