Project

dkimverify

0.01
No commit activity in last 3 years
No release in over 3 years
A pure-Ruby library for validating/verifying DKIM signatures.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 1.6
 Project Readme

dkimverify

a gem for verifying DKIM signatures in Ruby

this gem does not sign mail messages (but a PR to enable it would likely be accepted, I just have no use for it.)

I'm pretty sure this actually works and I'm using it in production.

how to use

Dkim::Verifier.new(eml_filepath).verify!

the verify! method will return:

  • true if the signature verifies
  • false if no signature is present, and,
  • raise Dkim::DkimError (or a child error) if the signature is present but does not verify.

with a debt of gratitude to:

not yet implemented

checking expiration dates (x=, t=) accounting for length limits (l= tag) tests (which I really ought to add) checking multiple dkim signature header lines (probably easy)

by

Jeremy B. Merrill The New York Times April 2017