.sieve not being read

Will Curry will at robotican.org
Mon Jul 11 10:20:52 EDT 2005


I put my script through the tester and it works for all three conditions. 
Before I started using spamassassin and procmail, when I was using cyrus
as the local mailer in sendmail's configs, I used to get these warnings:

lmtpunix[16519]: IOERROR: fstating sieve script
/var/imap/sieve/w/will/defaultbc: No such file or directory

since I've gone to that script below, I no longer get them.  It seems like
I'm bypassing whatever component responsible for finding and reading my
.sieve.  This is all speculation though.  I really have no idea how it
works.

Anyhow, it's still not working.

Thanks,

Will

> I'm experienceing the same problem, but I've found out now, maybe it
> could be a syntax or rule Problem.
> http://sastools.com/SieveTest/sievetest.php
> try this and check if you code ist correct.
>
>
> Sunday, July 10, 2005, 8:33:21 AM, you wrote:
>
> WC> My mail server is configured as follows:
>
> sendmail ->> procmail -> formail -> spamc -> deliver
>
> WC> As it stands, mail is delivered to the user's INBOX.  I decided I
> wanted to
> WC> do spamassassin filtering serverside.  For whatever reason, my script
> isn't
> WC> being read, and there is no mention of sieve in the imapd.log.
> Hopefully
> WC> it's something easy that I've overlooked.  I talked with someone in
> #cyrus
> WC> on freenode, and they thought everything looked correct.  Below are
> all
> WC> pertinent configs:
>
> WC> Thanks for you time,
>
> WC> Will
>
> WC> ===========
> WC> /etc/procmailrc
> WC> ===========
> WC> # Use mbox-style mailbox in /var/spool/mail
> WC> DEFAULT=/var/spool/mail/$LOGNAME
> WC> DROPPRIVS=no
>
> WC> :0fw
> WC> | /usr/local/bin/procmail-cyrus-delivery.sh $LOGNAME
>
> WC> ===========
> WC> /usr/local/bin/procmail-cyrus-delivery.sh
> WC> ===========
> WC> #!/bin/sh
>
> WC> LOGNAME=$1
>
> WC> /usr/bin/formail -I"From " | /usr/bin/spamc -u $LOGNAME |
> WC> /usr/lib/cyrus/deliver -a $LOGNAME -m user.$LOGNAME
>
> WC> ===========
> WC> /etc/imapd.conf
> WC> ===========
> WC> configdirectory:        /var/imap
> WC> partition-default:      /var/spool/imap
> WC> #sievedir:              /var/imap/sieve  # i tried both commenting and
> WC> uncommenting this line to the same result
> WC> sieveusehomedir: yes
> WC> tls_ca_path:            /etc/ssl/certs
> WC> tls_cert_file:          /etc/ssl/cyrus/server.pem
> WC> tls_key_file:           /etc/ssl/cyrus/server.pem
> WC> hashimapspool:          yes
> WC> allowanonymouslogin:    no
> WC> sasl_minimum_layer: 0
> WC> sasl_maximum_layer: 3
> WC> sasl_mech_list: LOGIN
> WC> altnamespace: 1
> WC> lmtpsocket: /var/imap/socket/lmtp
> WC> sasl_pwcheck_method:    saslauthd
>
> WC> ==========
> WC> /etc/cyrus.conf
> WC> ==========
> WC> START {
> WC>   recover       cmd="ctl_cyrusdb -r"
> WC> }
> WC> SERVICES {
> WC>   imap          cmd="imapd" listen="localhost:imap2" prefork=0
> WC>   imaps         cmd="imapd -s" listen="imaps" prefork=0
> WC>   sieve         cmd="timsieved" listen="sieve" prefork=0
> WC>   lmtpunix      cmd="lmtpd" listen="/var/imap/socket/lmtp" prefork=0
> WC>   lmtp          cmd="lmtpd" listen="localhost:lmtp"
> WC> }
> WC> EVENTS {
> WC>   checkpoint    cmd="ctl_cyrusdb -c" period=30
> WC>   delprune      cmd="ctl_deliver -E 3" period=1440
> WC>   tlsprune      cmd="tls_prune" period=1440
> WC> }
>
> WC> ==========
> WC> /home/will/.sieve
> WC> ==========
> WC> require "fileinto";
> WC> if header :is "X-Spam-Flag" "YES"
> WC> { fileinto "INBOX.Spam"; }
> WC> elsif header :contains "from" ["Will Curry","wcurry"]
> WC> { fileinto "INBOX.Drafts"; }
> WC> else
> WC> { fileinto "INBOX"; }
>
> WC> ==========
> WC> message received logged in imapd.conf.
> WC> this message was sent from an email address with
> WC> "Will Curry" as the name and wcurry at example.com
> WC> ==========
> WC> Jul 10 01:30:00 internet master[24049]: about to exec
> /usr/lib/cyrus/lmtpd
> WC> Jul 10 01:30:00 internet lmtpunix[24049]: executed
> WC> Jul 10 01:30:00 internet lmtpunix[24049]: accepted connection
> WC> Jul 10 01:30:00 internet lmtpunix[24049]: lmtp connection preauth'd as
> WC> postman
> WC> Jul 10 01:30:02 internet lmtpunix[24049]: duplicate_check:
> WC> <002501c58518$ca4e5e10$5b01fbcc at delicious> user.will            0
> WC> Jul 10 01:30:02 internet lmtpunix[24049]: mystore: starting txn
> 2147483708
> WC> Jul 10 01:30:02 internet lmtpunix[24049]: mystore: committing txn
> 2147483708
> WC> Jul 10 01:30:02 internet lmtpunix[24049]: duplicate_mark:
> WC> <002501c58518$ca4e5e10$5b01fbcc at delicious> user.will
> 1120977002
> WC> 5464
>
> WC> ---
> WC> Cyrus Home Page: http://asg.web.cmu.edu/cyrus
> WC> Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
> WC> List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
>
>
>
>
>
>
> --
> Best regards,
> Far-galaxy Networks
> Sebastian Fohler                         mailto:info at far-galaxy.de
> Web: www.far-galaxy.de
> Tel: 0173 / 8796211
>
>
>

---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html




More information about the Info-cyrus mailing list