[ sieve ] - script activated but not processed.

Joel CARNAT joel at carnat.net
Tue Feb 28 04:44:35 EST 2006


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

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 -'



-- 
,- This mail runs ------.
`--------- NetBSD/smtp -'
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
Url : https://lists.andrew.cmu.edu/mailman/private/info-cyrus/attachments/20060228/1aecfc55/attachment.bin


More information about the Info-cyrus mailing list