Sieve 2.2 not working

Scott M. Likens damm at yazzy.org
Wed May 11 20:33:47 EDT 2005


uh bypassing procmail? very simple.

deliver via lmtp

mailbox_transport = lmtp:unix:/var/run/cyrus/socket/lmtp

On Thu, 12 May 2005 00:44:18 +0100
"John Lane" <listmail at oceanfree.net> wrote:

> Ok, As I was getting nowhere I delved into the code.
> 
> This is what is happening...
> 
> When I send a message "deliver" is used to send it into cyrus.
> 
> Code in "imap/lmtpd.c" gets executed in a function called "deliver".
> 
> This has two bits of code for mail delivery, the first is
> "case 1: shared mailbox request" and the second is
> "case 2: ordinary user, might have Sieve script"
> 
> One would expect the code in case 2 to be called but what
> was happening is the code in case 1 is being called.
> 
> This decision is made based on the value of a variable called
> "user" being null for case 1 and set to a value for case 2.
> 
> I tracked this down to my procmail configuration where I had the
> following:
> 
> DELIVER="$/usr/bin/deliver -a $USER -m user.$USER"
> 
> It was missing the user id at the end. I changed it to...
> 
> DELIVER="$/usr/bin/deliver -a $USER -m user.$USER $USER"
> 
> And Sieve now fires as expected. HOWEVER... I have another problem....
> 
> I have a test sieve script that does a "reject" but the mail never
> gets returned to the sender (although Sieve does try!!!).
> 
> The problem ocurs when I use procmail, the "Return-Path" setting
> in the e-mail gets changed by procmail from the real sender to the
> unix id that procmail is run as. The message is delivered to this user
> rather than the original sender.
> 
> Has anyone come across this before and is there a solution ?
> 
> BTW my MTA is postfix and the above problem does not happen when I
> configure postfix to send directly to cyrus (i.e. bypass procmail).
> 
> Thanks,
> John
> 
> 
> 
> 
> 
> ---
> 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
> 
> !DSPAM:42829e6171311869725949!
> 
> 


-- 
"What does one want when one is engaged in the sexual act?
That everything around you give you its utter attention
Think only of you, care only for you...
Every man wants to be a tyrant when he fornicates"

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