Security Engineering

Mail from example.com passes SPF but fails DKIM at receivers since the outbound gateway began appending a legal disclaimer to message bodies. What should the engineer do?

Show the answer

Correct answerB. Configure the gateway to sign messages after it appends the disclaimer

AWhy not this: SPF already passes, so the sending IP is authorized; this does not repair the broken signature.

BWhy this is right: The body hash must be computed after the last modification, so the gateway should sign after adding the disclaimer.

CWhy not this: S/MIME signatures would also break when the body is altered, and it does not fix domain DKIM.

DWhy not this: A stricter DMARC policy would cause more mail to be rejected, not fix the signature.

A DKIM signature covers a hash of the body, so any change made after signing invalidates it. Signing at the final outbound hop, after the disclaimer is added, fixes this. SPF is already passing, so editing it does not help.