[Dovecot] [SIEVE: Redirect] Double ">" in forwarded envelop sender address => Gmail syntax error
Hi,
Plateform: gentoo + qmail
My deliver line is in a .qmail-USER file: |/var/qmail/bin/preline /usr/libexec/dovecot/deliver -f ${SENDER:-<>} -d user@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(stephane@XXXX): Apr 20 16:06:44 Info: Sending a forward to XXXX@gmail.com with return path <stephane@XXXXXX> deliver(stephane@XXXXX: Apr 20 16:06:44 Info: msgid=49EC816D.9090403@XXXXX.com: forwarded to XXXXX@gmail.com
qmail-send logs: 2009-04-20 16:06:44.877793500 info msg 14815541: bytes 1290 from <stephane@XXXXX.com> qp 17780 uid 89 2009-04-20 16:06:44.892303500 starting delivery 6356: msg 14815541 to remote XXXXX@gmail.com 2009-04-20 16:06:44.982424500 delivery 6356: failure: Connected_to_209.85.219.1_but_sender_was_rejected./Remote_host_said:_555_5.5.2_Syntax_error._1si7169155ewy.101/ 2009-04-20 16:06:44.982502500 status: local 0/10 remote 0/80
Is there something to do to fix that probleme ?
Thanks.
-- Toorop <O> http://www.flickr.com/photos/toorop/
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 user@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(stephane@XXXX): Apr 20 16:06:44 Info: Sending a forward to XXXX@gmail.com with return path <stephane@XXXXXX> deliver(stephane@XXXXX: Apr 20 16:06:44 Info: msgid=49EC816D.9090403@XXXXX.com: forwarded to XXXXX@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.
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
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/
participants (3)
-
Stephan Bosch
-
Timo Sirainen
-
Toorop