MX Sniffer
Project description
MX Sniff
MX Sniff identifies well known email service providers given an email address or a domain name. Use this to find out how many users in your email database are Gmail users (via Google Apps).
Command line usage:
$ mxsniff example.com gmail.com $ mxsniff -v example.com $ mxsniff @filename
Python usage:
>>> from mxsniff import mxsniff, mxbulksniff >>> mxsniff('example@gmail.com') 'google-gmail' >>> mxsniff('https://google.com/') 'google-apps' >>> mxsniff('google.com', verbose=True) {'match': ['google-apps'], 'mx': [(10, 'aspmx.l.google.com'), (20, 'alt1.aspmx.l.google.com'), (30, 'alt2.aspmx.l.google.com'), (40, 'alt3.aspmx.l.google.com'), (50, 'alt4.aspmx.l.google.com')], 'name': 'google.com'} >>> list(mxbulksniff(['example.com', 'google.com', 'http://www.google.com'])) [('example.com', None), ('google.com', 'google-apps'), ('http://www.google.com', 'google-apps')]
0.2.1
Updated README and minor bugfixes
0.2.0
Python 3 and PyPy support
mxsniff now returns a string or None, switching to a list only when multiple service providers are found
get_domain now extracts the TLD when a URL is provided, so www. and other subdomains are ignored
New mxbulksniff to run on a large list
Verbose mode to also retrieve MX values
New console script for easy use and batch processing of large lists
More providers
0.1.0
First version
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.