dkim-exchange icon indicating copy to clipboard operation
dkim-exchange copied to clipboard

Inbound DKIM check

Open hansmannaerts opened this issue 8 years ago • 8 comments

Hi,

Are there any plans to check DKIM on inbound mails?

Kind regards, Hans Mannaerts

hansmannaerts avatar Oct 04 '16 13:10 hansmannaerts

Hi Hans, no, there are no specific plans for that feature. I don't have enough time to develop new features for dkim-exchange, but Pull Requests are always welcome.

Pro avatar Oct 04 '16 14:10 Pro

MimeKit supports verifying DKIM signatures if anyone is willing to invest time in this.

Source: https://github.com/jstedfast/MimeKit/blob/master/README.md

Verifying DKIM Signatures

Verifying DKIM signatures is slightly more involved than creating them because you'll need to write a custom implementation of the IDkimPublicKeyLocator interface. Typically, this custom class will need to download the DKIM public keys as they are requested by MimeKit during verification of DKIM signature headers.

Once you've implemented a custom IDkimPublicKeyLocator, verifying signatures is fairly trivial:

var dkim = message.Headers[HeaderId.DkimSignature];

if (message.Verify (dkim, locator)) { // the DKIM-Signature header is valid! } else { // the DKIM-Signature is invalid }

rbfajardo avatar Oct 10 '16 00:10 rbfajardo

In progress, still needs some work: https://github.com/Pro/dkim-exchange/tree/feature/dkim-verify

Pro avatar Jan 01 '17 19:01 Pro

Hello. What about verify feature? Spammers is winning now.

ashum81 avatar Oct 12 '18 04:10 ashum81

Hello. What about verify feature? Spammers is winning now.

If you can merge my pull request and compile, then you have a working verifier.

https://github.com/Pro/dkim-exchange/pull/227/commits/a36ed3bc6879ceb7f4990eeb0dc149d27ca3b7ef

rbfajardo avatar Oct 12 '18 14:10 rbfajardo

any plans to merge this to main build?

shubell avatar Mar 03 '21 12:03 shubell

any plans to merge this to main build?

quote :)

gbusoni avatar May 15 '21 15:05 gbusoni

I implemented a Spamassassin Agent for Microsoft Exchange Server and noticed that is als has the ability to check dkim signatures https://shubell.wordpress.com/2022/10/28/spam-filter-for-microsoft-exchange/

shubell avatar Oct 28 '22 12:10 shubell