spf-validator-dns
v0.0.3
Published
A Sender Policy Framework validator
Downloads
3,968
Readme
spf-validator
Installation
This module is installed via npm:
npm install --save spf-validator-dns
Description
This module provides a simple interface to validate if an IP address is a valid sender for a given email domain.
Usage
const SPFValidator = require('spf-validator-dns').SPFValidator;
let validator = new SPFValidator({'domain': 'google.com', 'expandIncludes': true);
validator.validateSender('172.217.9.142').then(function(result){
console.log(result); //Should be "PASS"
});