New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

github.com/danmarg/smtp-sts

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/danmarg/smtp-sts

  • v0.0.0-20180915100059-1394ae6855c0
  • Source
  • Go
  • Socket score

Version published
Created
Source

SMTP-STS Validator

GoDoc

This is a simple library and command line tool implementing a primitive SMTP-STS validator.

The library has four commands:

     getdns     fetch the domain's policy *version* and print it
     getpolicy  fetch the domain's policy and print it
     getmxs     fetch the domain's policy and MXs, and filter the MXs against the policy, reporting any which are invalid
     testsmtp   fetch the domain's policy and MXs, filter the MXs, and test STARTTLS

Example usage:

$ ./bin/cli getdns yahoo.com                                                                                  
Version: 20161109010200Z
$ ./bin/cli getpolicy yahoo.com                                                                               
Policy: {1 [*.am0.yahoodns.net] 2016-11-14 11:16:30.414524442 +0000 UTC }
$ ./bin/cli getmxs yahoo.com                                                                                  
Policy: {1 [*.am0.yahoodns.net] 2016-11-14 11:16:51.858961329 +0000 UTC }
Matching MXes: 
        mta7.am0.yahoodns.net.  1
        mta5.am0.yahoodns.net.  1
        mta6.am0.yahoodns.net.  1
$ ./bin/cli testsmtp yahoo.com                                                                                
Policy: {1 [*.am0.yahoodns.net] 2016-11-14 11:17:05.269545742 +0000 UTC }
Matching MXes: 
        mta7.am0.yahoodns.net.  1
        mta5.am0.yahoodns.net.  1
        mta6.am0.yahoodns.net.  1
Testing MX mta7.am0.yahoodns.net....OK!
Testing MX mta5.am0.yahoodns.net....OK!
Testing MX mta6.am0.yahoodns.net....OK!

FAQs

Package last updated on 15 Sep 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc