Implements RFC4408 Sender Policy Framework (SPF) check_host()
validation.
Install
yarn add spf-check
Usage
The stable API returns a string with one of the possible returns.
const spf = ;const result = ; if result === spfPass // Yay!
API
This module also exports SPF
and SPFResult
classes to allow inspect the
result and read the expected message.
const validator = 'mediamonks.com' 'info@mediamonks.com'; validator;
License
MIT © MediaMonks