On 12/11/21 00:46, Wietse Venema wrote:
Jorgen Lundman:
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
I suspected as such, I just wanted some authority behind me before I
send the reply upstream.
Thank you, for everything,
It would be technically possible, but the question hasn't come
up in the first 20+ years of life with Postfix.
Wietse
If you were willing to consider convoluted workarounds: Maybe you could
funnel the 'forwarded' messages through another Postfix instance that
has a policy service (http://www.postfix.org/SMTPD_POLICY_README.html)
which looks for "recipient=/something/" in the request, and then returns
"action=prepend Delivered-To: /something/"?
Nick.