[Dovecot] Sieve problems (not matching emails expected to match)
I have a sieve file that reads like this:
require "fileinto";
# Emacs if header :contains "List-Id" "emacs-devel.gnu.org" { fileinto "mail.emacs-devel"; } elsif header :contains "List-Id" "emacs-bidi.gnu.org" { fileinto "mail.emacs-bidi"; } ...
Unfortunately the List-Id based lines don't appear to be working, although some other ones do. The attached test message does not get delivered to the mail.emacs-devel list. Why?
-- Michael Welsh Duggan (md5i@md5i.com)
Forgot to mention:
# 2.0.11: /etc/dovecot/dovecot.conf # OS: Linux 2.6.35 i686 Debian wheezy/sid
-- Michael Welsh Duggan (md5i@md5i.com)
Michael Welsh Duggan md5i@md5i.com writes:
I have a sieve file that reads like this:
require "fileinto";
# Emacs if header :contains "List-Id" "emacs-devel.gnu.org" { fileinto "mail.emacs-devel"; } elsif header :contains "List-Id" "emacs-bidi.gnu.org" { fileinto "mail.emacs-bidi"; } ...
Unfortunately the List-Id based lines don't appear to be working, although some other ones do. The attached test message does not get delivered to the mail.emacs-devel list. Why?
Okay, more data. When running sieve using sieve-test, I get the results I expect. I cannot figure out why it works in situ, but does not work from dovecot. Here is my doveconf -n output:
# 2.0.11: /etc/dovecot/dovecot.conf # OS: Linux 2.6.35 i686 Debian wheezy/sid 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 passdb { driver = pam } plugin/sieve = ~/.dovecot.sieve plugin/sieve_dir = ~/sieve protocols = " imap sieve" service managesieve-login { inet_listener sieve { port = 4190 } } ssl_cert =
-- Michael Welsh Duggan (md5i@md5i.com)
Op 20-3-2011 8:12, Michael Welsh Duggan schreef:
I have a sieve file that reads like this:
require "fileinto";
# Emacs if header :contains "List-Id" "emacs-devel.gnu.org" { fileinto "mail.emacs-devel"; } elsif header :contains "List-Id" "emacs-bidi.gnu.org" { fileinto "mail.emacs-bidi"; } ...
Unfortunately the List-Id based lines don't appear to be working, although some other ones do. The attached test message does not get delivered to the mail.emacs-devel list. Why?
Do those folders exist? Do the logs report anything?
Regards,
Stephan.
Stephan Bosch stephan@rename-it.nl writes:
Op 20-3-2011 8:12, Michael Welsh Duggan schreef:
I have a sieve file that reads like this:
require "fileinto";
# Emacs if header :contains "List-Id" "emacs-devel.gnu.org" { fileinto "mail.emacs-devel"; } elsif header :contains "List-Id" "emacs-bidi.gnu.org" { fileinto "mail.emacs-bidi"; } ...
Unfortunately the List-Id based lines don't appear to be working, although some other ones do. The attached test message does not get delivered to the mail.emacs-devel list. Why?
Do those folders exist? Do the logs report anything?
The folders do exist. The logs from sending a message look like this:
Mar 20 16:34:38 maru dovecot: lda(md5i): Debug: Effective uid=1000, gid=8, home=/home/md5i Mar 20 16:34:38 maru dovecot: lda(md5i): Debug: maildir: root exists (/home/md5i/Maildir) Mar 20 16:34:38 maru dovecot: lda(md5i): Debug: maildir++: root=/home/md5i/Maildir, index=, control=, inbox=/home/md5i/Maildir Mar 20 16:34:38 maru dovecot: lda(md5i): Debug: userdb lookup skipped, username taken from USER environment Mar 20 16:34:38 maru dovecot: lda(md5i): Debug: none: root=, index=, control=, inbox= Mar 20 16:34:38 maru dovecot: lda(md5i): msgid=87bp151qg6.fsf@maru.md5i.com: saved mail to INBOX
Should there be log messages related to sieve here? If so, maybe sieve is not running at all? If so, what am I doing incorrectly? sieve is part of mail_plugins.
-- Michael Welsh Duggan (md5i@md5i.com)
Problem solved. Apparently this comment in my lda configuration lied.
protocol lda { # Space separated list of plugins to load (default is global mail_plugins). # mail_plugins = $mail_plugins }
I had to set this to
protocol lda { # Space separated list of plugins to load (default is global mail_plugins). mail_plugins = $mail_plugins sieve }
despite the fact that mail_plugins includes sieve.
-- Michael Welsh Duggan (md5i@md5i.com)
On 2011-03-20 8:49 PM, Michael Welsh Duggan wrote:
Problem solved. Apparently this comment in my lda configuration lied.
protocol lda { # Space separated list of plugins to load (default is global mail_plugins). # mail_plugins = $mail_plugins }
I had to set this to
protocol lda { # Space separated list of plugins to load (default is global mail_plugins). mail_plugins = $mail_plugins sieve
Ummm... the first one is commented, the second isn't... ?
I believe that doveconf lda would have shown this...
--
Best regards,
Charles
Charles Marcus CMarcus@Media-Brokers.com writes:
On 2011-03-20 8:49 PM, Michael Welsh Duggan wrote:
Problem solved. Apparently this comment in my lda configuration lied.
protocol lda { # Space separated list of plugins to load (default is global mail_plugins). # mail_plugins = $mail_plugins }
I had to set this to
protocol lda { # Space separated list of plugins to load (default is global mail_plugins). mail_plugins = $mail_plugins sieve
Ummm... the first one is commented, the second isn't... ?
I believe that doveconf lda would have shown this...
For all the other entry in the example config files, the commented values are also the default values. Or at least, that's the impression they gave.
-- Michael Welsh Duggan (md5i@md5i.com)
participants (3)
-
Charles Marcus
-
Michael Welsh Duggan
-
Stephan Bosch