After more digging/testings, it seems my problem is due to the way cyrdeliver is called in master.cf.
Because my usernames are "[EMAIL PROTECTED]", I had to script the antislashing process for @ - that is turn "[EMAIL PROTECTED]" into "[EMAIL PROTECTED]" 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="[EMAIL PROTECTED]" 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 [EMAIL PROTECTED]). 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 [EMAIL PROTECTED] > #Generated by [EMAIL PROTECTED] using SmartSieve 0.5.2 2006/02/27 > 16:10:24 > require ["fileinto"]; > > redirect "[EMAIL PROTECTED]"; > > if anyof (header :contains "subject" "test") { > fileinto "INBOX/test"; > } > > ##PSEUDO script start > #rule&&1&&ENABLED&&&&&&&&address&&[EMAIL PROTECTED]&&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 -'
pgpsEUCEKkvWN.pgp
Description: PGP signature
---- 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