On 17.08.22 11:38, Andy Beverley wrote:
Is there any way that I can capture the exact content of an email as it is delivered by Postfix to an external host? I am looking for something different to always_bcc or similar, in that I want to capture the exact email content rather than deliver a copy of it elsewhere.

The reason is that a recipient host is claiming that DKIM signatures are broken from my server, despite them being correct for all other recipients. I would like to take an exact copy of the email as it is delivered, and run it through an independent DKIM checker (opendkim is used as a milter to sign the emails).

perhaps you could put the remote IP into debug_peer_list and increase 
debug_peer_level

I guess that the remote host doesn't support 8BITMIME and your server signs 8-bit e-mail, which can lead to invalid DKIM signatures.

this is a weaknes of current DKIM standard which doesn't handle this situation and instead proposes converting to 7-bit prior to signing

try connecting the remote host to see if ehlo results into 8BITMIME line in response.

--
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.
Despite the cost of living, have you noticed how popular it remains?

Reply via email to