Skip to main content

SRE Toolbox

SMTP Tester

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

Install

pip install lupaxa-smtp-tester
smtp-tester --help

CLI

smtp-tester --from-address from@example.com --to-address to@example.com \
  --smtp-username USER --smtp-password PASS \
  --smtp-server email-smtp.eu-west-1.amazonaws.com --smtp-port 587
smtp-tester -f from@example.com -t to@example.com -u USER -s smtp.example.com -P 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
python -m lupaxa.smtp_tester --version

The tool opens one SMTP session and sends a short plain-text message with Date and Message-ID. STARTTLS is required unless you pass --tls (implicit TLS, typically port 465) or --no-starttls. AUTH is optional: pass username and password together, or omit both for an internal relay. Credentials may come from --smtp-username / --smtp-password or SMTP_USERNAME / SMTP_PASSWORD. --timeout bounds the socket. --verbose logs steps (connect, EHLO, STARTTLS, AUTH, send) without protocol payloads.

Library

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)

Development

make init
make python-install-dev
make python-check
make mkdocs-serve

Documentation

The published guide is at https://smtp-tester.thelupaxaproject.org/.

Site Markdown lives in mkdocs/.

The Lupaxa Project Footer

Metadata

Release files for lupaxa-smtp-tester 0.1.3

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

Source distribution (sdist)

Source distribution for lupaxa-smtp-tester 0.1.3
File Size Uploaded
lupaxa_smtp_tester-0.1.3.tar.gz 7.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for lupaxa-smtp-tester 0.1.3
File Interpreter ABI Platform
lupaxa_smtp_tester-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 18.0 kB

Release files / lupaxa_smtp_tester-0.1.3.tar.gz

Download URL lupaxa_smtp_tester-0.1.3.tar.gz
Size 7.9 kB
Tags Source
SHA-256 checksum
How to use checksums
de0ed1c6f5d4c2d16e2ed586fb8d64fe4d9227768064122a30c1f5c2504df174
BLAKE2b-256 checksum
How to use checksums
005be4746d32bc91d6e049e7e43272e0a3ab90f6e715e80d67dfee0849b0757c
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 Sep 29, 2026.

Transparency log

Release files / lupaxa_smtp_tester-0.1.3-py3-none-any.whl

Download URL lupaxa_smtp_tester-0.1.3-py3-none-any.whl
Size 10.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0549e5349a2a207c5619b813a36b9c7baa82a9d1a5a89bfb2caaa95dc8671e9c
BLAKE2b-256 checksum
How to use checksums
7dc7f2bcf8cadde5701d5db8426356ab5eb8d2b1b8062a235ebab9d5d11367a7
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 Sep 29, 2026.

Transparency log

Release history Release notifications | RSS feed

0.1.5

2 release files

0.1.4

2 release files

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release 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