[Dovecot] Testing sieve filter
Hi,
I am trying to get sieve working with dovecot. Dovecot itself is working fine, and I have the following config:
root@master:/var/log# dovecot --version 1.0.rc2 root@master:/var/log# dovecot -n # /etc/dovecot/dovecot.conf log_timestamp: %Y-%m-%d %H:%M:%S protocols: imap ssl_disable: yes disable_plaintext_auth: no login_dir: /var/run/dovecot/login login_executable: /usr/lib/dovecot/imap-login mail_extra_groups: mail default_mail_env: maildir:/var/mail/%u auth default: passdb: driver: pam userdb: driver: passwd
I have this in my lda protocol:
mail_plugins = cmusieve
And I have created a .dovecot.sieve in both ~ and /var/mail/$user/ that looks like this:
require "fileinto"; if exists "X-Spam-Flag" { fileinto "Junk"; }
No mail gets moved to the junk folder, nut it does arrive in my inbox with the X-SPAM-Flag: Yes header. How do I troubleshoot this? I don't see anywhere in the logs any errors or any mention whatsoever of filtering activity or failure.
I have seen numerous pages on how to set this up, but they invariably focus on setting up virtual users, which I do not need, so it isn't clear which steps I can safely ignore.
thanks in advance, Cliff
Cliff Meece wrote:
Hi,
I am trying to get sieve working with dovecot. Dovecot itself is working fine, and I have the following config:
root@master:/var/log# dovecot --version 1.0.rc2 root@master:/var/log# dovecot -n # /etc/dovecot/dovecot.conf log_timestamp: %Y-%m-%d %H:%M:%S protocols: imap ssl_disable: yes disable_plaintext_auth: no login_dir: /var/run/dovecot/login login_executable: /usr/lib/dovecot/imap-login mail_extra_groups: mail default_mail_env: maildir:/var/mail/%u auth default: passdb: driver: pam userdb: driver: passwd
I have this in my lda protocol:
mail_plugins = cmusieve
And I have created a .dovecot.sieve in both ~ and /var/mail/$user/ that looks like this:
require "fileinto"; if exists "X-Spam-Flag" { fileinto "Junk"; }
No mail gets moved to the junk folder, nut it does arrive in my inbox with the X-SPAM-Flag: Yes header. How do I troubleshoot this? I don't see anywhere in the logs any errors or any mention whatsoever of filtering activity or failure.
I have seen numerous pages on how to set this up, but they invariably focus on setting up virtual users, which I do not need, so it isn't clear which steps I can safely ignore.
thanks in advance, Cliff
Are you using the "deliver" application from dovecot to deliver emails to mail boxes?
~Cory Coager
Fixed it. I had commented out deliver in the postfix main.cf. Enabling bounced all messages until I did a chmod a+x on /etc/dovecot/dovecot.conf.
now deliver is working as the lda and sieve is working as well. Thanks for the quick responses.
Cliff Meece wrote:
Yes, I have attempted to setup postfix following the wiki. I have put:
in main.cf
Cory Coager wrote:
Are you using the "deliver" application from dovecot to deliver emails to mail boxes?
~Cory Coager
sorry... meant 'chmod a+r'
Cliff Meece wrote:
Fixed it. I had commented out deliver in the postfix main.cf.
Enabling bounced all messages until I did a chmod a+x on /etc/dovecot/dovecot.conf.now deliver is working as the lda and sieve is working as well.
Thanks for the quick responses.Cliff Meece wrote:
Yes, I have attempted to setup postfix following the wiki. I have put:
in main.cf
Cory Coager wrote:
Are you using the "deliver" application from dovecot to deliver emails to mail boxes?
~Cory Coager
participants (2)
-
Cliff Meece
-
Cory Coager