MX Inspector
Look up a domain's MX hosts, SPF, and DMARC policy from public DNS, with an optional SMTP banner probe.
Warning: Authorised use only.
--probeopens an SMTP session to the target MX hosts. Use it only on systems you are allowed to test.
Install
pip install lupaxa-mx-inspector
mx-inspector --help
CLI
mx-inspector example.com
mx-inspector example.com example.org
mx-inspector example.com --format json
mx-inspector example.com --no-color
mx-inspector example.com --probe
mx-inspector example.com --probe --port 587
mx-inspector example.com --probe --timeout 10
python -m lupaxa.mx_inspector --version
The tool queries MX hosts, SPF, and _dmarc.<domain>, then prints a
table of decoded tags and a spoofing-posture score. On a colour
terminal, names are cyan, values are green, missing is grey, and the
score is coloured by grade. --no-color or NO_COLOR disables that.
--probe greets each MX (banner + EHLO only) to fingerprint mail
software. --port sets the SMTP probe port (default 25; use 587 for
submission). --timeout sets the SMTP probe timeout (default 5
seconds). --format json writes {domain, policy, mx, spf, score, error, mx_error, spf_error} objects, plus probe when --probe is
set.
Library
from lupaxa.mx_inspector import lookup_dmarc, lookup_mx, lookup_spf, score_posture
policy = lookup_dmarc("example.com")
hosts = lookup_mx("example.com")
spf = lookup_spf("example.com")
score = score_posture(policy, mx_hosts=hosts, spf_records=spf)
print(policy["p"], score.value, score.grade)
Development
make init
make python-install-dev
make python-check
Documentation
The published guide is at https://mx-inspector.thelupaxaproject.org/.
Site Markdown lives in mkdocs/.
python -m pip install -r requirements.txt
make mkdocs-serve
Metadata
Release files for lupaxa-mx-inspector 0.2.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| lupaxa_mx_inspector-0.2.4.tar.gz | 13.6 kB | With provenance | Details for lupaxa_mx_inspector-0.2.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lupaxa_mx_inspector-0.2.4-py3-none-any.whl | Python 3 | none | any | Details for lupaxa_mx_inspector-0.2.4-py3-none-any.whl |
Total release size: 31.5 kB
Release files / lupaxa_mx_inspector-0.2.4.tar.gz
| Download URL | lupaxa_mx_inspector-0.2.4.tar.gz |
|---|---|
| Size | 13.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
58fb247306246947c71b6e29dfed546b7be378b8a2ebd8b3cf4b8d13b6dff1fa
|
|
BLAKE2b-256 checksum How to use checksums |
a5f7a14e5e5234af87c5705ebf2c7c967f08631257735d9c14ec93e33c6589a6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.
Transparency logRelease files / lupaxa_mx_inspector-0.2.4-py3-none-any.whl
| Download URL | lupaxa_mx_inspector-0.2.4-py3-none-any.whl |
|---|---|
| Size | 17.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
10a98eaaab54cef8ff97c0a4ebc3c93f0ec11de4eed6e4d40d18028efcc22d89
|
|
BLAKE2b-256 checksum How to use checksums |
67e40d59e1d662ebc9df8bad5f0c2f35fcc351fc006416d7ff10d52016157778
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.
Transparency logSecurity for lupaxa-mx-inspector 0.2.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for lupaxa_mx_inspector-0.2.4.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.