My global sieve rule is not working and do not compile. But per-user sieve is working. Here is my dovecot -n: log_path: /var/log/dovecot.log protocols: imap pop3 ssl: no login_dir: /var/run/dovecot/login login_executable(default): /usr/libexec/dovecot/imap-login login_executable(imap): /usr/libexec/dovecot/imap-login login_executable(pop3): /usr/libexec/dovecot/pop3-login mail_uid: 501 mail_gid: 501 mail_location: maildir:/var/vmail/%u/Maildir/:INDEX=/var/vmail/%u/Maildir/ mail_debug: yes mail_executable(default): /usr/libexec/dovecot/imap mail_executable(imap): /usr/libexec/dovecot/imap mail_executable(pop3): /usr/libexec/dovecot/pop3 mail_plugins(default): quota imap_quota acl imap_acl mail_plugins(imap): quota imap_quota acl imap_acl mail_plugins(pop3): mail_plugin_dir(default): /usr/lib/dovecot/imap mail_plugin_dir(imap): /usr/lib/dovecot/imap mail_plugin_dir(pop3): /usr/lib/dovecot/pop3 pop3_client_workarounds(default): pop3_client_workarounds(imap): pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh namespace: type: private separator: / inbox: yes list: yes subscriptions: yes namespace: type: shared separator: / prefix: shared/%%u/ location: maildir:%%Lh/Maildir:INDEX=%Lh/Maildir/shared/%%Lu list: children lda: postmaster_address: root mail_plugins: sieve quota autocreate expire auth_socket_path: /var/run/dovecot/auth-master sieve_global_path: /var/vmail/sieve/dovecot.sieve log_path: /var/log/sieve.log auth default: mechanisms: plain login default_realm: mydomain.net user: vmail username_chars: abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_+@ passdb: driver: pam passdb: driver: sql args: /etc/dovecot-mysql.conf userdb: driver: passwd userdb: driver: sql args: /etc/dovecot-mysql.conf socket: type: listen client: path: /var/spool/postfix/dovecot-auth mode: 438 user: postfix group: postfix master: path: /var/run/dovecot/auth-master mode: 438 user: vmail group: vmail plugin: quota: dict:user::proxy::quota quota: maildir quota_rule: *:storage=0 acl: vfile acl_shared_dict: file:/var/spool/dovecot/shared-mailboxes.db expire: Trash 7 Trash/* 7 Junk 30 expire_dict: proxy::expire sieve: /var/vmail/sieve/%Ld/%Ln/dovecot.sieve dict: quota: mysql:/etc/dovecot-dict-quota.conf expire: db:/var/lib/dovecot/expire.db By reading sieve.log, it simple ignore sieve_global_path: /var/vmail/sieve/dovecot.sieve but the per user sieve /var/vmail/sieve/%Ld/%Ln/dovecot.sieve is working --barry
On Tue, 29 Mar 2011 19:22:44 +0800 Barry Kwok <hkeasytech at gmail.com> articulated:> My global sieve rule is not working and do not compile. But per-user > sieve is working.Are you implying that the global dovecot.sieve does not actually compile or it is not being used? What error message is output when you run: sievec /var/vmail/sieve/dovecot.sieve What are the permissions & ownership on the file? -- Jerry ? Dovecot.user at seibercom.net Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __________________________________________________________________
On 29/03/11 13:22, Barry Kwok wrote:> My global sieve rule is not working and do not compile. But per-user sieve > is working. > Here is my dovecot -n: > > log_path: /var/log/dovecot.log > protocols: imap pop3 > ssl: no > login_dir: /var/run/dovecot/login > login_executable(default): /usr/libexec/dovecot/imap-login > login_executable(imap): /usr/libexec/dovecot/imap-login > login_executable(pop3): /usr/libexec/dovecot/pop3-login > mail_uid: 501 > mail_gid: 501 > mail_location: maildir:/var/vmail/%u/Maildir/:INDEX=/var/vmail/%u/Maildir/ > mail_debug: yes > mail_executable(default): /usr/libexec/dovecot/imap > mail_executable(imap): /usr/libexec/dovecot/imap > mail_executable(pop3): /usr/libexec/dovecot/pop3 > mail_plugins(default): quota imap_quota acl imap_acl > mail_plugins(imap): quota imap_quota acl imap_acl > mail_plugins(pop3): > mail_plugin_dir(default): /usr/lib/dovecot/imap > mail_plugin_dir(imap): /usr/lib/dovecot/imap > mail_plugin_dir(pop3): /usr/lib/dovecot/pop3 > pop3_client_workarounds(default): > pop3_client_workarounds(imap): > pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh > namespace: > type: private > separator: / > inbox: yes > list: yes > subscriptions: yes > namespace: > type: shared > separator: / > prefix: shared/%%u/ > location: maildir:%%Lh/Maildir:INDEX=%Lh/Maildir/shared/%%Lu > list: children > lda: > postmaster_address: root > mail_plugins: sieve quota autocreate expire > auth_socket_path: /var/run/dovecot/auth-master > sieve_global_path: /var/vmail/sieve/dovecot.sieve > log_path: /var/log/sieve.log > auth default: > mechanisms: plain login > default_realm: mydomain.net > user: vmail > username_chars: > abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_+@ > passdb: > driver: pam > passdb: > driver: sql > args: /etc/dovecot-mysql.conf > userdb: > driver: passwd > userdb: > driver: sql > args: /etc/dovecot-mysql.conf > socket: > type: listen > client: > path: /var/spool/postfix/dovecot-auth > mode: 438 > user: postfix > group: postfix > master: > path: /var/run/dovecot/auth-master > mode: 438 > user: vmail > group: vmail > plugin: > quota: dict:user::proxy::quota > quota: maildir > quota_rule: *:storage=0 > acl: vfile > acl_shared_dict: file:/var/spool/dovecot/shared-mailboxes.db > expire: Trash 7 Trash/* 7 Junk 30 > expire_dict: proxy::expire > sieve: /var/vmail/sieve/%Ld/%Ln/dovecot.sieve > dict: > quota: mysql:/etc/dovecot-dict-quota.conf > expire: db:/var/lib/dovecot/expire.db > > > > By reading sieve.log, it simple ignore sieve_global_path: > /var/vmail/sieve/dovecot.sieve but the per user > sieve /var/vmail/sieve/%Ld/%Ln/dovecot.sieve is working >I had to do some searching for your sieve_global_path setting, as it is not in the 'plugin' section, but under 'lda'. Seems to me that this is your problem. This ofcourse raises the question why doveconf -n lists the directive when it is misplaced... -- Regards, Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 262 bytes Desc: OpenPGP digital signature URL: <http://dovecot.org/pipermail/dovecot/attachments/20110329/6833bdc4/attachment-0002.bin>
am 29.03.11 14:04 schrieb Tom Hendrikx <tom at whyscream.net>:> On 29/03/11 13:22, Barry Kwok wrote: >> My global sieve rule is not working and do not compile. But per-user sieve >> is working. >> Here is my dovecot -n: >> >> log_path: /var/log/dovecot.log >> protocols: imap pop3 >> ssl: no >> login_dir: /var/run/dovecot/login >> login_executable(default): /usr/libexec/dovecot/imap-login >> login_executable(imap): /usr/libexec/dovecot/imap-login >> login_executable(pop3): /usr/libexec/dovecot/pop3-login >> mail_uid: 501 >> mail_gid: 501 >> mail_location: maildir:/var/vmail/%u/Maildir/:INDEX=/var/vmail/%u/Maildir/ >> mail_debug: yes >> mail_executable(default): /usr/libexec/dovecot/imap >> mail_executable(imap): /usr/libexec/dovecot/imap >> mail_executable(pop3): /usr/libexec/dovecot/pop3 >> mail_plugins(default): quota imap_quota acl imap_acl >> mail_plugins(imap): quota imap_quota acl imap_acl >> mail_plugins(pop3): >> mail_plugin_dir(default): /usr/lib/dovecot/imap >> mail_plugin_dir(imap): /usr/lib/dovecot/imap >> mail_plugin_dir(pop3): /usr/lib/dovecot/pop3 >> pop3_client_workarounds(default): >> pop3_client_workarounds(imap): >> pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh >> namespace: >> type: private >> separator: / >> inbox: yes >> list: yes >> subscriptions: yes >> namespace: >> type: shared >> separator: / >> prefix: shared/%%u/ >> location: maildir:%%Lh/Maildir:INDEX=%Lh/Maildir/shared/%%Lu >> list: children >> lda: >> postmaster_address: root >> mail_plugins: sieve quota autocreate expire >> auth_socket_path: /var/run/dovecot/auth-master >> sieve_global_path: /var/vmail/sieve/dovecot.sieve >> log_path: /var/log/sieve.log >> auth default: >> mechanisms: plain login >> default_realm: mydomain.net >> user: vmail >> username_chars: >> abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_+@ >> passdb: >> driver: pam >> passdb: >> driver: sql >> args: /etc/dovecot-mysql.conf >> userdb: >> driver: passwd >> userdb: >> driver: sql >> args: /etc/dovecot-mysql.conf >> socket: >> type: listen >> client: >> path: /var/spool/postfix/dovecot-auth >> mode: 438 >> user: postfix >> group: postfix >> master: >> path: /var/run/dovecot/auth-master >> mode: 438 >> user: vmail >> group: vmail >> plugin: >> quota: dict:user::proxy::quota >> quota: maildir >> quota_rule: *:storage=0 >> acl: vfile >> acl_shared_dict: file:/var/spool/dovecot/shared-mailboxes.db >> expire: Trash 7 Trash/* 7 Junk 30 >> expire_dict: proxy::expire >> sieve: /var/vmail/sieve/%Ld/%Ln/dovecot.sieve >> dict: >> quota: mysql:/etc/dovecot-dict-quota.conf >> expire: db:/var/lib/dovecot/expire.db >> >> >> >> By reading sieve.log, it simple ignore sieve_global_path: >> /var/vmail/sieve/dovecot.sieve but the per user >> sieve /var/vmail/sieve/%Ld/%Ln/dovecot.sieve is working >> > > > I had to do some searching for your sieve_global_path setting, as it is > not in the 'plugin' section, but under 'lda'. Seems to me that this is > your problem.I think, that`s right plugin/sieve_global_path = /etc/dovecot/sieve/global/global.sieve plugin/sieve_global_dir = /etc/dovecot/sieve/global/> > This ofcourse raises the question why doveconf -n lists the directive > when it is misplaced... > > > -- > Regards, > Tom >-- Mit freundlichen Gr??en, Jim Knuth P.S.: Bitte senden Sie KEINE HTML-Mails! Zufallszitat: Erfolg h?rt nur auf Applaus. F?r alles andere ist er taub. (Elias Canetti)
Apparently Analagous Threads
- the file dovecot-uidlist.lock appear then deadlock
- is it possible to fetch messages for multiple users using a single account?
- (v1.1.6) Fatal: userdb didn't return a home directory, but mail location used it (%h)
- MailDIR and expire plugin
- dovecot 1.2 plugin virtual and shared namespace with thunderbird