Pro / dkim-exchange

DKIM Signing Agent for Microsoft Exchange Server
Other
408 stars 143 forks source link

Inbound DKIM check #161

Open hansmannaerts opened 8 years ago

hansmannaerts commented 8 years ago

Hi,

Are there any plans to check DKIM on inbound mails?

Kind regards, Hans Mannaerts

Pro commented 8 years ago

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.

rbfajardo commented 8 years ago

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 }

Pro commented 7 years ago

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

ashum81 commented 6 years ago

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

rbfajardo commented 6 years ago

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

shubell commented 3 years ago

any plans to merge this to main build?

gbusoni commented 3 years ago

any plans to merge this to main build?

quote :)

shubell commented 2 years ago

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/