On 24 May 2022, at 8:09 am, Matus UHLAR - fantomas <uh...@fantomas.sk> wrote:

I have customer where incoming messages have the
"message was received from external source"
banned added.

The resulting messages don't have valid DKIM-signature: (or none at all), and the only way to forward without problems is either to encapsulate them into attachment or to rewrite From: to contain local domain and add DKIM-signature: matching the domain.

On 24.05.22 08:16, Viktor Dukhovni wrote:
Encapsulation is by far the better option.

do you know of any milter or other solution that encapsulates whole mails? conditionally, when sender domain is not local.

Since the messages are forwarded via (virtual)aliases or .forward,
I have no idea how to force using any script to do that.

Replies to encapsulated messages will work much better than would replies to message with SRS-mangled "From".

I agree, I just don't have the solution.

The real solution is for the customer to exempt
your relay from the needlessly erected barriers to delivery.

this is quite hard in current situation when e.g. gmail refuses messages without valid SPF/DKIM/DMARC

--
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety. -- Benjamin Franklin, 1759

Reply via email to