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
DateandMessage-IDheaders automatically - Require STARTTLS before AUTH or DATA (fail if it is not advertised)
--tlsfor implicit TLS (SMTP_SSL, typically port 465)--no-starttlsto 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 --timeoutto bound the socket--verboselogs steps without protocol payloads or the password- Library API (
send_test_message,SmtpTestResultwithsmtp_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:
Source repository:
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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
29c8394b423d30b6ce3e96d78cba793ea46357c5e7f70e57c12ecc335f4e5b46
|
|
| MD5 |
d19df863f7557af0effe9f663d71d7ad
|
|
| BLAKE2b-256 |
c57226ebc815fada86440614a4aa0d8e28ad68fd34367503d3c71ef9d9500cdf
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lupaxa_smtp_tester-0.1.0.tar.gz -
Subject digest:
29c8394b423d30b6ce3e96d78cba793ea46357c5e7f70e57c12ecc335f4e5b46 - Sigstore transparency entry: 2781567600
- Sigstore integration time:
-
Permalink:
lupaxa-sre-toolbox/smtp-tester@04b6810064a05762aa307f27aade8273b3b6934f -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/lupaxa-sre-toolbox
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
generate-release.yml@04b6810064a05762aa307f27aade8273b3b6934f -
Trigger Event:
push
-
Statement type:
File details
Details for the file lupaxa_smtp_tester-0.1.0-py3-none-any.whl.
File metadata
- Download URL: lupaxa_smtp_tester-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a6bc74fdd875f79731f248e90ad1c5bdf87a9028364c49552292db4ad59410f1
|
|
| MD5 |
58c6fe68be7a7e533f20905e9462bdf4
|
|
| BLAKE2b-256 |
e81d052c9c837386df6ad279e6169ac802fcb4365759f552758c07eada03f0bc
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lupaxa_smtp_tester-0.1.0-py3-none-any.whl -
Subject digest:
a6bc74fdd875f79731f248e90ad1c5bdf87a9028364c49552292db4ad59410f1 - Sigstore transparency entry: 2781568156
- Sigstore integration time:
-
Permalink:
lupaxa-sre-toolbox/smtp-tester@04b6810064a05762aa307f27aade8273b3b6934f -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/lupaxa-sre-toolbox
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
generate-release.yml@04b6810064a05762aa307f27aade8273b3b6934f -
Trigger Event:
push
-
Statement type: