Re: sieve (and cyrus) - doesn't work - how to troubleshoot?
Dave Carrigan wrote:
>
> Erik Steffl <steffl@bigfoot.com> writes:
>
> > would this work for 1.6 (as I understand it there's quite a difference
> > between 1.5 and 1.6)?
>
> It should work for 1.6. I've never used 1.5.
>
> > do you know what's the line for cyrus deliver -l in /etc/inetd.conf?
>
> That was never documented at the cyrus site; I figured it out on my own.
>
> Put this in your inetd.conf:
>
> lmtp stream tcp nowait cyrus /path/to/deliver deliver -l
>
> should be sufficient. Make sure that lmtp is in your /etc/services.
>
> > to mailbox_transport = lmtp and that's it (as far as postfix goes)?
>
> I believe so. I don't actually use any of that part of postfix (all my
> addresses are resolved with ldap and everything resolves to a
> locally-defined transport). But, I'm pretty sure that is the syntax.
works, thanks (inetd.conf line + mailbox_transport = lmtp was all that
I needed to change)
> > do you know the name of it? I can't find anything like that in
> > installed packages or cyrus source tree.
>
> It's probably not installed as a package (although it should be,
> IMHO). You have to get the source, build it, then build the test program
> in the sieve subdirectory by hand.
ok, done, I found make target test in sieve subdir, it's built and
seems to be working. however the filtering does not work:
email messages contain X-Sieve: cmu-sieve 2.0 header (I use 1.6.24)
test message ~/.sieve shows that it would be rejected
the /etc/imapd.conf contains: sieveusehomedir: true
what now?
here's more info:
test of ~/.sieve doesn't print anything, here' ~/.sieve
------------------ ~/.sieve start
require "reject";
if header :contains "subject" "123 testing sieve" {
reject "testing sieve message rejected!";
}
------------------ ~/.sieve end
test message from cyrus inbox, this is how I received the message that
was not rejected:
------------------ test message start
X-Sieve: cmu-sieve 2.0
Return-Path: <erik@jojda.2y.net>
Received: by jojda.2y.net (Postfix, from userid 1000)
id 624441D79A; Sun, 25 Nov 2001 17:14:30 -0800 (PST)
X-Mailer: mail (mailutils) 0.0.9c
Subject: 123 testing sieve
To: erik@jojda.2y.net
Message-Id: <20011126011430.624441D79A@jojda.2y.net>
Date: Sun, 25 Nov 2001 17:14:30 -0800 (PST)
From: erik@jojda.2y.net (Erik Steffl)
text of test message
erik
------------------ test message end
this is the result of running test rrr ~/.sieve (file rrr contains the
above message):
------------------ test ourput start
jojda:~...cyrus-imapd-2.0.16/sieve>./test rrr ~/.sieve
rejecting message 'rrr' with 'testing sieve message rejected!'
notify msg = 'You have new mail
To: erik@jojda.2y.net
From: erik@jojda.2y.net (Erik Steffl)
Subject: 123 testing sieve
Action(s) taken:
Rejected with: testing sieve message rejected!
' with priority = medium
------------------ test ourput end
the message above is not rejected (I tested it after I switched to
lmtp). any ideas how to troubleshoot further? My guess is that cyrus
ignores the ~/.sieve, but not sure how to verify that and how to make it
process the file.
I thought that the problem might be 700 permissions on my home
directory so I changed it to 777 (the same for ~/.sieve) but it still
does not work (the message is not rejected). Do I need to restart
something (it looks like there's no daemon for imap running)?
next thing I tried to add the same rule with Subject (uppercase S), no
change...
TIA
erik
Reply to: