Re: sieve (and cyrus) - doesn't work - how to troubleshoot?
Erik Steffl <steffl@bigfoot.com> writes:
> and here's my ~/.sieve file (straight from managin imap book):
>
> if header :contains "subject" "123 testing sieve" {
> reject "testing sieve message rejected!";
> }
>
> but when I send myself an email with subject "123 testing sieve" it it
> is not rejected.
>
> where do I go from here?
First, check that cyrus put an X-sieve header in the message. If the
message doesn't have an X-sieve header, then sieve was never
run.
Second, you probably need a "require reject;" line at the top of your
.sieve file. Sieve can't take any actions unless you require the modules
that implement those actions. (Note, that applies to cyrus 2; I'm not
even sure if cyrus 1 supports reject.)
Finally, depending on what sieve things you want to do, you have to
deliver mail to cyrus using LMTP. "require fileinto" will work fine
without LMTP, but "require vacation" needs "require envelope", and that
requires LMTP. It's a good idea to learn how to deliver with LMTP
anyway, because cyrus 2 requires LMTP for everything.
What MTA are you using?
--
Dave Carrigan (dave@rudedog.org) | Yow! Am I in Milwaukee?
UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-DNS |
Seattle, WA, USA |
http://www.rudedog.org/ |
Reply to: