Skip to content

a pure-Ruby library for validating/verifying DKIM signatures.

License

Notifications You must be signed in to change notification settings

luizeof/dkimverify

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

a pure-Ruby library for validating/verifying DKIM signatures.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%