Mailsight
CLI tool to validate email addresses using DNS lookups, optional WHOIS and Spamhaus checks, and (unless --dry-run) live SMTP verification.
Install
uv sync
Or install the package in editable mode:
uv pip install -e .
The mailsight command is provided by [project.scripts] in pyproject.toml.
Usage
mailsight user@example.com
python -m mailsight.command.cli user@example.com
python main.py user@example.com
Options
| Flag | Meaning |
|---|---|
--dry-run |
Run DNS-based checks only (no WHOIS, SMTP, catch-all probe, ping, or expiration). Exits 0 on success. |
--ping / -p |
Ping the primary MX host (ignored when combined with --dry-run). |
--theme light|dark |
Catppuccin-based Rich theme. |
--verbose / -v |
More logging. |
--version |
Print version and exit. |
--debug-info |
Print environment/debug details. |
Exit code 0 means verification finished without a blocking error; 1 means a check failed (see the printed message and remediation hint).
Limitations
- SMTP and catch-all checks open real connections to the MX host. Use responsibly and respect provider policies; prefer
--dry-runfor passive checks only. - WHOIS and DNSBL results depend on public data and may be slow or incomplete.
ping3may require elevated privileges on some systems.
Development
uv run pytest -c config/pytest.ini
uv run ruff check --config config/ruff.toml src tests
uv run mypy --config config/mypy.ini src tests
Metadata
Release files for mailsight 0.1.0
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 |
|---|---|---|---|---|
| mailsight-0.1.0.tar.gz | 19.9 kB | Without provenance | Details for mailsight-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mailsight-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for mailsight-0.1.0-py3-none-any.whl |
Total release size: 37.0 kB
Release files / mailsight-0.1.0.tar.gz
| Download URL | mailsight-0.1.0.tar.gz |
|---|---|
| Size | 19.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f2612d8962835bdff5c462e51ea5f30874fb3f354b5d073071390568efc7bcf9
|
|
BLAKE2b-256 checksum How to use checksums |
687ff78f2d81a1ca0ef002a476e628c803c4071a69d8bcd1d08c2e9d6e23dce6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.10
|
Release files / mailsight-0.1.0-py3-none-any.whl
| Download URL | mailsight-0.1.0-py3-none-any.whl |
|---|---|
| Size | 17.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3caf395d54fac94110fd5ce98e40dcf56eb4c6cefc33ac94a5b83590ff7a95aa
|
|
BLAKE2b-256 checksum How to use checksums |
ebc7aa055437709b4385efb9b61db7670e403d6c6a5a348dbe32e6dce28ab61f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.10
|
Security for mailsight 0.1.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.