Skip to main content

MX Sniff

Build status Coverage status

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).

To install, get it from PyPI:

$ pip install mxsniff

Or get the development branch direct from GitHub:

$ pip install https://github.com/jace/mxsniff/archive/master.zip

Command line usage:

$ mxsniff example.com gmail.com example@gmail.com https://www.google.com
$ mxsniff -v example.com
$ mxsniff @filename_with_list_of_domains_or_emails_or_urls
$ mxsniff example@gmail.com -p your_email@example.com

Python usage:

>>> from mxsniff import mxsniff, mxbulksniff
>>> mxsniff('google.com')
>>> mxbulksniff(['example.com', 'google.com'])  # Returns a generator with one result at a time

0.3.5

  • Fixed wildcard subdomain matching

  • New service provider

  • Updated PyPI classifiers

0.3.4

  • Fixed cache handling

  • Distinguish Yandex public vs hosted email provider

0.3.3

  • mxprobe now distinguishes between soft and hard fails

  • mxsniff command line now produces valid CSV or JSON (verbose mode)

  • Verbose output now includes canonical representation of an email address to facilitate comparison

0.3.2

  • Fix PyPI distribution (no code changes)

0.3.1

  • The providers list now includes provider metadata (title, note, url)

  • Public email domains are now tagged and identified in results

  • A static domain list is included for very popular domains (typically public email domains)

  • The command line script now handles IDN names correctly

  • Email probe feature, to attempt a guess on whether the email is actually valid

0.3.0

  • Added support for wildcards in domain names

  • Additional providers

  • Detect self-hosted email servers

  • Remove verbose mode in the mxsniff function; always verbose now

  • Track MX TLDs

  • Run queries in a multiprocess pool in the command line version

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

Metadata

Release files for mxsniff 0.3.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mxsniff 0.3.5
File Size Uploaded
mxsniff-0.3.5.tar.gz 13.2 kB Details

Release files / mxsniff-0.3.5.tar.gz

Download URL mxsniff-0.3.5.tar.gz
Size 13.2 kB
Tags Source
SHA-256 checksum
How to use checksums
12cd0d536aa4ff9d52f13418bd721ce03e797c739e03a4bf46fcf9d7de3c3ae4
BLAKE2b-256 checksum
How to use checksums
a8cee5f9ecd5bf81d8f461089e2ef3ddd7bf4b476b1e5060d0dccdf702a0acb9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/2.7

Release history Release notifications | RSS feed

This release

0.3.5 This release

1 release file

0.3.4

1 release file

0.3.3

1 release file

0.3.2

1 release file

0.3.1

1 release file

0.3.0

1 release file

0.2.1

1 release file

0.2.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page