Mailinglist Archive: opensuse-security (334 mails)

< Previous Next >
Re: [suse-security] Sieve does not sieve :(
Am Dienstag, 23. September 2003 11:52 schrieb Stefan Waidele jun.:
> Hi all,
>
> I am working with postfix & cyrus-imap on SuSE8.1
>
> How do I get sieve running?
>
> I have followed /usr/share/doc/packages/cyrus-imapd/doc/install-sieve.html
> including the example-script at the end.
>
> The problem is that test-mails do get through straight to my inbox
> instead of being rejected.
>
> I send those messages with the from-header info@xxxxxxxxxxx which is the
> from-address that should be sieved out.
>
> Is there a step-by-step howto that combines the bits & pieces neccessary
> to get sieve running?
>
> I really miss procmail :)
>
> Stefan
>
> Here are some observations:
>
> ----
> 'ps ax | grep tim' does not show timsieved running.
>

Its only started if needed. E.g. you start sieveshell.

> ----
> The telnet-test works:
> cyrus@p10085231:/home/sieve> telnet localhost sieve
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> "IMPLEMENTATION" "Cyrus timsieved v1.1.0"
> "SASL" "PLAIN LOGIN DIGEST-MD5 CRAM-MD5"
> "SIEVE" "fileinto reject envelope vacation imapflags notify subaddress
> relational regex"
> OK
>

Now you should see it with ps.

> ----
> This is the log if I send the testmail:
>
> Sep 23 11:38:15 p10085231 lmtpd[16565]: accepted connection
> Sep 23 11:38:15 p10085231 lmtpd[16565]: lmtp connection preauth'd as
> postman Sep 23 11:38:15 p10085231 master[16614]: about to exec
> /usr/lib/cyrus/bin/lmtpd
> Sep 23 11:38:15 p10085231 lmtpunix[16614]: executed
> Sep 23 11:38:15 p10085231 lmtpd[16565]: duplicate_check:
> <3F701484.30602@xxxxxxxxxxx> user.stw 0
> Sep 23 11:38:15 p10085231 lmtpd[16565]: mystore: starting txn 2147483718
> Sep 23 11:38:15 p10085231 lmtpd[16565]: mystore: committing txn 2147483718
> Sep 23 11:38:15 p10085231 lmtpd[16565]: duplicate_mark:
> <3F701484.30602@xxxxxxxxxxx> user.stw 1064309895

If your script isnt called or buggy you dont see timesieved here.

How do you install you script?
Did you use installsieve or sieveshell?
Is your script activated?
An easy way to generate, install and activate scripts is websieve.pl.

My example :
-demo.script--snip
require ["reject"];
if header :contains "subject" "$$$" {
reject "We dont your birdseed";
}
--snip

installsieve -i demo.script -u user host


I hope i could help a little. I dont know any good doc about sieve and Im
using selfcompiled Cyrus timsieved v2.1.13.

Peace & Luck

Stefan Nitz


< Previous Next >
References