deltachat / chatmail

chatmail service deployment scripts and docs
https://delta.chat/en/2023-12-13-chatmail
MIT License
97 stars 5 forks source link

Reject messages with partial DKIM signatures #297

Closed link2xt closed 2 weeks ago

link2xt commented 1 month ago

Messages with DKIM-signatures that have l= tag are not fully protected. We should reject such signatures.

See opendkim-lua man page, there a functions odkim.sig_bodylength and odkim.sig_canonlength that can help with this. If sig_canonlength is less than sig_bodylength, then signature should be rejected.