[ sieve ] - script activated but not processed.

Ken Murchison murch at andrew.cmu.edu
Tue Feb 28 08:49:35 EST 2006


Joel CARNAT wrote:
> After more digging/testings, it seems my problem is due to the way
> cyrdeliver is called in master.cf.

You really should be delivering via LMTP rather than calling cyrdeliver.
Check the list archives for discussion.

> 
> Because my usernames are "firstname.lastname at here.com", I had to script
> the antislashing process for @ - that is turn "a.b at here.com" into "a.b\\\@here.com"
> so that the mail is delivered into the correct mailbox.
> So here how it is set:
> ########################################################################
> cyrus   unix    -       n       n       -       -       pipe
>         flags=Ruh user=cyrus argv=/usr/pkg/etc/postfix/cyrwrap $sender $recipient
> ########################################################################
> ########################################################################
> #!/bin/sh
> #
> # Cyrus Deliver wrapper (/usr/pkg/etc/postfix/cyrwrap)
> #
> 
> PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/pkg/cyrus/bin
> MAIL_SENDER="$1"
> MAIL_RCPT="$2"
> 
> [ -z "$MAIL_RCPT" ] && MAIL_RCPT="postmaster at altran.com"
> MAIL_BOX="`echo ${MAIL_RCPT} | sed -e 's;^;user/;' -e 's;@;\\\\\\@;'`"
> 
> cat - | deliver -q -r $MAIL_SENDER -a $MAIL_RCPT -m $MAIL_BOX
> ########################################################################
> 
> If I set:
> ########################################################################
> cyrus   unix    -       n       n       -       -       pipe
>        user=cyrus argv=/usr/pkg/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
> ########################################################################
> the sieve process works (but still I can't deliver to mailboxes like a.b at here.com).
> 
> So I guess I either have to modify the call to "Cyrus deliver" in my script
> or modify master.cf so that the antislashing is done without my script.
> 
> Any idea/help ?
> 
> TIA,
> 	Jo
> 
> On Mon, Feb 27 2006 - 16:38, Joel CARNAT wrote:
> 
>>Hi,
>>
>>I have enable sieve on my Cyrus-IMAP 2.2.12 server.
>>I can create and activate script via sieveshell, squirrelmail/sieve
>>plugin and smartsieve, but thoses script seem no to be processed by the
>>cyrus delivery agent :( The mail is delivered in INBOX.
>>
>>In the logs, I can see "sieve login" when using sieveshell or PHP editor
>>but nothing when delivering emails.
>>
>>As a example, here my "test script" :
>>########################################################################
>>#Mail filter rules for joel.carnat at here.com
>>#Generated by joel.carnat at here.com using SmartSieve 0.5.2 2006/02/27
>>16:10:24
>>require ["fileinto"];
>>
>>redirect "jcarnat at here.net";
>>
>>if anyof (header :contains "subject" "test") {
>>        fileinto "INBOX/test";
>>}
>>
>>##PSEUDO script start
>>#rule&&1&&ENABLED&&&&&&&&address&&jcarnat at here.net&&0&&&&&&
>>#rule&&3&&ENABLED&&&&&&test&&folder&&INBOX/test&&4&&&&&&
>>#mode&&basic
>>########################################################################
>>
>>sieveshell says :
>>########################################################################
>>
>>>list
>>
>>phpscript
>>test  <- active script
>>
>>########################################################################
>>
>>my imapd.conf has:
>>########################################################################
>>sievedir: /home/sieve
>>sieveusehomedir: false
>>sieve_maxscriptsize: 32
>>sieve_maxscripts: 5
>>sievenotifier: log
>>########################################################################
>>
>>my cyrus.conf has:
>>########################################################################
>>  # add or remove based on preferences
>>  imap          cmd="imapd" listen="imap" prefork=0
>>  imaps         cmd="imapd -s" listen="imaps" prefork=0
>>  pop3          cmd="pop3d" listen="pop3" prefork=0
>>  pop3s         cmd="pop3d -s" listen="pop3s" prefork=0
>>  sieve         cmd="timsieved" listen="sieve" prefork=0
>>########################################################################
>>
>>Anyone thinks of something I forgot ?
>>
>>TIA,
>>	Jo
>>-- 
>>,- This mail runs ------.
>>`--------- NetBSD/smtp -'
> 
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> ----
> 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


-- 
Kenneth Murchison
Systems Programmer
Project Cyrus Developer/Maintainer
Carnegie Mellon University


More information about the Info-cyrus mailing list