I tried `sievec /home/will/sievescript /home/will/.sieve`, and it still
didn't read it or show any sign looking for it in the imapd log.  For the
heck of it, I turned sieveusehomedir off, and setup the sieve plugin with
Squirrelmail.  I added the exact same rules, and checked
/var/imap/sieve/will where I found that the bytecode files were created.
But it still does not see the rules.  I'm thinking it has something to do
with my method of delivery.  Maybe the way I'm passing it through deliver?

Best regards,

Will

> Someone's told me that the .sieve script has to be compiled with
> sieve compiler, did you done that?
>
> Monday, July 11, 2005, 4:20:52 PM, you wrote:
>
> WC> I put my script through the tester and it works for all three
> conditions.
> WC> Before I started using spamassassin and procmail, when I was using
> cyrus
> WC> as the local mailer in sendmail's configs, I used to get these
> warnings:
>
> WC> lmtpunix[16519]: IOERROR: fstating sieve script
> WC> /var/imap/sieve/w/will/defaultbc: No such file or directory
>
> WC> since I've gone to that script below, I no longer get them.  It seems
> like
> WC> I'm bypassing whatever component responsible for finding and reading
> my
> WC> .sieve.  This is all speculation though.  I really have no idea how it
> WC> works.
>
> WC> Anyhow, it's still not working.
>
> WC> Thanks,
>
> WC> 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 [EMAIL PROTECTED]
>>> 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> <[EMAIL PROTECTED]> user.will
>>> 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> <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]
>>> Web: www.far-galaxy.de
>>> Tel: 0173 / 8796211
>>>
>>>
>>>
>
> 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:[EMAIL PROTECTED]
> 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

Reply via email to