Skip to main content

Project Logo

The Lupaxa Security Toolbox
Part of The Lupaxa Project


lupaxa-mx-inspector

Look up a domain's MX hosts and DMARC policy from public DNS, with an optional SMTP banner probe.

[!WARNING] Authorised use only. --probe opens an SMTP session to the target MX hosts. Use it only on systems you are allowed to test.

Features

  • Query MX records (priority and host)
  • Query _dmarc.<domain> for the published TXT record
  • Decode common DMARC tags (p, sp, rua, ruf, alignment, and more)
  • Optional --probe SMTP banner / EHLO fingerprint (no authentication, no mail)
  • Human-readable table output, or JSON
  • Library API (lookup_dmarc / lookup_mx / probe_smtp) and CLI (mx-inspector)
  • Fully typed, linted, formatted, and tested

Installation

From PyPI

pip install lupaxa-mx-inspector

From source (development mode)

pip install -e ".[dev]"

Requires Python 3.10+. Runtime dependencies: dnspython, prettytable.

Library quick start

from lupaxa.mx_inspector import lookup_dmarc, lookup_mx

policy = lookup_dmarc("example.com")
print(policy["p"], policy.get("rua"))
for host in lookup_mx("example.com"):
    print(host.priority, host.exchange)

CLI quick start

mx-inspector --help
mx-inspector example.com
mx-inspector example.com example.org
mx-inspector example.com --format json

You can also run the CLI as a module:

python -m lupaxa.mx_inspector --help
python -m lupaxa.mx_inspector --version

Documentation

Online documentation:

Documentation

Source repository:

GitHub

Serve docs locally

From a clone of the repository:

make mkdocs-serve

Then open the local URL printed by MkDocs in your browser.

Development

Clone the repository and install with Make:

make init                # first-time makefile-skills checkout
make python-install-dev  # editable install with [dev]
make python-check        # lint, type-check, and test
The Lupaxa Project Footer

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lupaxa_mx_inspector-0.1.0.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lupaxa_mx_inspector-0.1.0-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

Details for the file lupaxa_mx_inspector-0.1.0.tar.gz.

File metadata

  • Download URL: lupaxa_mx_inspector-0.1.0.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for lupaxa_mx_inspector-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e804d6a1b7bd94061da24ef334e66eafed565e834efed1cff881d6cf2c7d2acd
MD5 1bf6f492edd7db01f7526a13c92a9082
BLAKE2b-256 616f761a87f1f1f60c66d7901972fc3ca1980539fe7f758b45d81a5e23c7b5da

See more details on using hashes here.

Provenance

The following attestation bundles were made for lupaxa_mx_inspector-0.1.0.tar.gz:

Publisher: generate-release.yml on lupaxa-security-toolbox/mx-inspector

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lupaxa_mx_inspector-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for lupaxa_mx_inspector-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 749dea9109d04c30050d7acede524baead6769ba568152046bc08b0e76060224
MD5 bd99ca57745580565c9d33de3fe4ac69
BLAKE2b-256 91573ecbb336c421f174bdc6d80d8e8ce620e9b7e2d1f4ad2e16bec201af558b

See more details on using hashes here.

Provenance

The following attestation bundles were made for lupaxa_mx_inspector-0.1.0-py3-none-any.whl:

Publisher: generate-release.yml on lupaxa-security-toolbox/mx-inspector

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.2.0

2 files

This release

0.1.0 This release

2 files

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