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...@xxxx): Apr 20 16:06:44 Info: Sending a forward to
<x...@gmail.com> with return path <<steph...@xxxxxx>>
deliver(steph...@xxxxx: Apr 20 16:06:44 Info:
msgid=<49ec816d.9090...@xxxxx.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.