Skip to main content

Project Logo

The Lupaxa SRE Toolbox
Part of The Lupaxa Project


lupaxa-smtp-tester

Send a test email through an SMTP server to verify delivery.

Features

  • Open one SMTP session and send a short plain-text test message
  • Add Date and Message-ID headers automatically
  • Require STARTTLS before AUTH or DATA (fail if it is not advertised)
  • --tls for implicit TLS (SMTP_SSL, typically port 465)
  • --no-starttls to send without the upgrade (plaintext AUTH if used)
  • Optional AUTH: username and password together, or omit both
  • Credentials from flags or SMTP_USERNAME / SMTP_PASSWORD
  • --timeout to bound the socket
  • --verbose logs steps without protocol payloads or the password
  • Library API (send_test_message, SmtpTestResult with smtp_code)
  • Fully typed, linted, formatted, and tested
  • No runtime dependencies beyond the standard library

Installation

From PyPI

pip install lupaxa-smtp-tester

From source (development mode)

pip install -e ".[dev]"

Requires Python 3.13+. No runtime dependencies.

Library quick start

from lupaxa.smtp_tester import send_test_message

result = send_test_message(
    "smtp.example.com",
    587,
    "USER",
    "PASS",
    "from@example.com",
    "to@example.com",
)
print(result.ok, result.detail, result.smtp_code)

CLI quick start

smtp-tester --help
smtp-tester --from-address from@example.com --to-address to@example.com \
  --smtp-username USER --smtp-password PASS \
  --smtp-server smtp.example.com --smtp-port 587
smtp-tester -f from@example.com -t to@example.com \
  -s smtp.internal.example.com --no-starttls
smtp-tester -f from@example.com -t to@example.com -u USER \
  -s smtp.example.com --tls -P 465

You can also run the CLI as a module:

python -m lupaxa.smtp_tester --help
python -m lupaxa.smtp_tester --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_smtp_tester-0.1.0.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

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

lupaxa_smtp_tester-0.1.0-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for lupaxa_smtp_tester-0.1.0.tar.gz
Algorithm Hash digest
SHA256 29c8394b423d30b6ce3e96d78cba793ea46357c5e7f70e57c12ecc335f4e5b46
MD5 d19df863f7557af0effe9f663d71d7ad
BLAKE2b-256 c57226ebc815fada86440614a4aa0d8e28ad68fd34367503d3c71ef9d9500cdf

See more details on using hashes here.

Provenance

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

Publisher: generate-release.yml on lupaxa-sre-toolbox/smtp-tester

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_smtp_tester-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for lupaxa_smtp_tester-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a6bc74fdd875f79731f248e90ad1c5bdf87a9028364c49552292db4ad59410f1
MD5 58c6fe68be7a7e533f20905e9462bdf4
BLAKE2b-256 e81d052c9c837386df6ad279e6169ac802fcb4365759f552758c07eada03f0bc

See more details on using hashes here.

Provenance

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

Publisher: generate-release.yml on lupaxa-sre-toolbox/smtp-tester

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

Release history Release notifications | RSS feed

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