Joergen Lundman:
> 
> Customers have asked if they can get the "Delivered-To" header in the case
> that their
> mail is sent onwards. But we do not use the regular .forward or "delivery"
> style, but
> rather query LDAP for "mailForwardingAddress" to send mail on.
> 
> As in:
> virtual_mailbox_maps = ldap:/etc/postfix/ldap-accounts.cf
> virtual_mailbox_domains = ldap:/etc/postfix/ldap-domains.cf
> virtual_alias_maps = ldap:/etc/postfix/ldap-forwardonly.cf,
> ldap:/etc/postfix/ldap-forwards.cf
> 
> So I think we have the problem that we are not actually delivering anything
> but rather "relay"ing it onwards, so the option " prepend_delivered_header"
> does not apply here?
> 
> I suppose there is probably nothing I can do about it? 

http://www.postfix.org/postconf.5.html#prepend_delivered_header

currenly immplements (and detects loops) with delivery to "|command",
/file/name, or !$HOME/.forward.

Doing this also for virtual alias expansion would require new code
that currently does not exist.

Note that loop detection requires that the existing Delivered-To:
headers are known. That could be a problem because virtual alias
expansion happens before the headers are received.

        Wietse

Reply via email to