Hi,
to get a 'Delivered-to' header based on ORCPT, I wrote a patch
(attached) to force Dovecot lmtp to advertise DSN after a LHLO command.
In this way, Postfix add an ORCPT to the RCTP command
(http://postfix.1071664.n5.nabble.com/pipe-flags-vs-lmtp-td11587.html#a11596).
Be carefully: in this way DSN notification is broken, but they were
broken in any case at the time I wrote the patch (read the entire post
linked above).
The first patch is for Dovecot 2.2.x: after apply, you cannot disable
the DSN advertisement. The other is for Dovecot 2.3.0: you can
enable/disable the advertisement using the new bool parameter
'lmtp_lhlo_dsn'.
I'm using it for the past two years, without any problem.
Thanks,
Marco
On 2018-08-07 11:48, Tom Sommer wrote:> On 2015-09-02 22:01, Peer Heinlein wrote:
>> Since
>>
>> http://dovecot.org/pipermail/dovecot-cvs/2014-November/025241.html
>>
>> Dovecot's LMTP does support ORCPT.
>>
>> Is it possible to set X-Original-To-Header based on that ORCPT?
>
> Any news or response on this? I too am in need of this header being
> passed and saved correctly.
>
> Thanks.
>
> --
> Tom
>
--
Marco Giunta - ITCS SysAdmin
Via Bonomea, 265
34136 - Trieste, Italy
Tel: +39-040-3787-503
Fax: +39-040-3787-244
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dovecot-2.2.24-lmtp-dsn.patch
Type: text/x-patch
Size: 1409 bytes
Desc: not available
URL:
<https://dovecot.org/pipermail/dovecot/attachments/20180807/fdc7a5d2/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dovecot-2.3.0-lmtp-dsn.patch
Type: text/x-patch
Size: 2078 bytes
Desc: not available
URL:
<https://dovecot.org/pipermail/dovecot/attachments/20180807/fdc7a5d2/attachment-0003.bin>