Re: [Dovecot] [SIEVE: Redirect] Double in forwarded envelop sender address = Gmail syntax error

2009-04-20 Thread Stephan Bosch

Toorop wrote:

Plateform: gentoo + qmail

My deliver line is in a .qmail-USER file:
|/var/qmail/bin/preline /usr/libexec/dovecot/deliver -f ${SENDER:-} -d 
u...@domain.tld


I notice that sieve implementation in Dovecot use double  for the 
envelop sender when there is a redirect command in sieve script.
(i've tried preline -f, without -f ${SENDER:-},... but nothing change 
for the the envelop sender syntax, alway the double )


And that fact breaks forwardin to Gmail.
Gmail reply that there is a syntax error probably due to the double  
(address and not address) as we can see in the log behind:


Dovecot logs:
deliver(steph...@): Apr 20 16:06:44 Info: Sending a forward to 
x...@gmail.com with return path steph...@xx
deliver(steph...@x: Apr 20 16:06:44 Info: 
msgid=49ec816d.9090...@x.com: forwarded to xx...@gmail.com

By the looks of the deliver code in

http://hg.dovecot.org/dovecot-1.1/file/1.1.14/src/deliver/mail-send.c

at line 178, the return path is not taken from the -f parameter for 
forwarded messages. It is in stead extracted from the message itself and 
the  address is not normalized, meaning that any surrounding  will 
still exist.


The only way I can see this could manifest is when your sendmail does 
not normalize its -f parameter and tries to issue this address in the 
SMTP MAIL FROM: command with additional ' '. That is all I can think 
of right now...


Timo, what's your opinion?

BTW, this problem sounds familiar.. haven't we seen this one earlier?

Regards,

Stephan.


Re: [Dovecot] [SIEVE: Redirect] Double in forwarded envelop sender address = Gmail syntax error

2009-04-20 Thread Timo Sirainen
On Mon, 2009-04-20 at 17:02 +0200, Stephan Bosch wrote:
 http://hg.dovecot.org/dovecot-1.1/file/1.1.14/src/deliver/mail-send.c
 
 at line 178, the return path is not taken from the -f parameter for 
 forwarded messages. It is in stead extracted from the message itself and 
 the  address is not normalized, meaning that any surrounding  will 
 still exist.
..
 BTW, this problem sounds familiar.. haven't we seen this one earlier?

Mail rejections were fixed to use -f parameter, but I guess forwards
should too. Fixed: http://hg.dovecot.org/dovecot-1.1/rev/b217c085ba15



signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] [SIEVE: Redirect] Double in forwarded envelop sender address = Gmail syntax error

2009-04-20 Thread Toorop

Timo Sirainen a écrit :


Mail rejections were fixed to use -f parameter, but I guess forwards
should too. Fixed: http://hg.dovecot.org/dovecot-1.1/rev/b217c085ba15


Thanks ;)

--
Toorop O http://www.flickr.com/photos/toorop/