Skip to content

Lookup the DMARC policy of any email service provider (gmail.com, outlook.com etc.)

License

Notifications You must be signed in to change notification settings

oakgreyfig/dmarc_inspector

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dmarc_inspector

A ruby gem to look up the DMARC policy of any email service provider

Usage

To look up the DMARC policy of an email service provider, say yahoo.com, use

dmarc_inspector = DMARCInspector.new('yahoo.com')
dmarc_inspector.receiver_policy
# => :reject

If an email service provider doesn't have a DMARC policy, the DMARCInspector#receiver_policy method returns :none

See this spec for more examples

Installation

Add dmarc_inspector to your app's Gemfile

gem 'dmarc_inspector'

and run

bundle install

Understanding DMARC

Wikipedia's article on DMARC and Postmark's post on DMARC are great articles to quickly understand DMARC.

To understand DMARC in entirety, I highly recommend reading RFC 7489. Its relatively short compared to most RFCs.

About

Lookup the DMARC policy of any email service provider (gmail.com, outlook.com etc.)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%