secure-smtplib
Secure SMTP subclasses for Python 2
What it is and what it does
secure-smtplib is a set of SMTP subclasses designed to add certificate validation to Python's standard smtplib, specifically for TLS/SSL connections. It was built to address the need to verify CA certificates when establishing secure SMTP connections.
The package has been unmaintained since 2015-04-07 and targets Python 2. It carries no known security vulnerabilities but offers no active development, documentation, or compatibility assurance for modern Python environments. The license status is unclear, adding legal risk to adoption.
Use it for:
- Legacy Python 2 systems still requiring secure SMTP with explicit CA certificate validation.
- Auditing or understanding how to add certificate verification to SMTP connections in older codebases.
- Historical reference for SMTP security patterns in early Python implementations.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides secure SMTP subclasses with TLS/SSL certificate validation for Python 2, extending the standard smtplib to verify CA certificates.
No. The package is abandoned, targets Python 2, has an unclear license, and no known vulnerabilities. Modern Python's smtplib already provides robust TLS/SSL support. Use the standard library or a maintained alternative instead.
Install
secure-smtplib on PyPI
pip
pip install secure-smtplibuv
uv add secure-smtplibpoetry
poetry add secure-smtplibInstalling secure-smtplib
Before you install
Package has been abandoned since its only release on 2015-04-07, with no subsequent maintenance over 4147 days. Low install friction but no active support.
License in practice
License is marked UNKNOWN with no SPDX identifier, creating legal uncertainty about usage rights and obligations for anyone incorporating this code.
Quickstart
pip install secure-smtplib
import secure_smtplib
# Use secure_smtplib.SMTP or secure_smtplib.SMTP_SSL with ca_cert parameter
Package targets Python 2; compatibility with modern Python versions is unspecified.
Verify before relying
- Whether the package actually works with any currently-maintained Python version despite Python 2 targeting.
- What specific certificate validation improvements it provides over modern smtplib's built-in TLS support.
- Whether the unclear license permits commercial or derivative use.
Package facts
| License | UNKNOWN (unclear) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | abandoned — 4,147 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 426,284/month — #6,756 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: secure_smtplib-0.1.1-py2.py3-none-any.whl
Keywords: smtplib, TLS, SSL, verify, validate, ca_cert, ca
Tags
More Cryptography packages
Certifi provides Mozilla's curated collection…
copyleft · top 100 on PyPI
cryptographycryptography provides cryptographic recipes and…
permissive · top 100 on PyPI
rsaPure-Python RSA encryption, decryption,…
permissive · top 1,000 on PyPI
pyOpenSSLpyOpenSSL wraps OpenSSL's SSL/TLS functionality…
permissive · top 1,000 on PyPI
azure-identityProvides Microsoft Entra ID token-based…
unclear · top 1,000 on PyPI
PyNaClPyNaCl provides Python bindings to libsodium…
permissive · top 1,000 on PyPI
aiaBuilds and validates TLS certificate chains by…
permissive · top 15,000 on PyPI
wincertstoreAccesses Windows system certificate stores (CA…
permissive · top 15,000 on PyPI
sslyzeSSLyze is a fast SSL/TLS scanning tool and…
agpl · top 15,000 on PyPI
requests-pkcs12Adds PKCS#12 certificate support to the…
permissive · top 5,000 on PyPI
python-certifi-win32Patches certifi at runtime to include…
permissive · top 15,000 on PyPI
backports.ssl_match_hostnameProvides the ssl.match_hostname() function for…
permissive · top 15,000 on PyPI
validate_emailValidates email addresses for proper format and…
copyleft · top 15,000 on PyPI
ndg-httpsclientProvides enhanced HTTPS support for Python's…
permissive · top 5,000 on PyPI
pip-system-certsAutomatically configures Python to use the…
permissive · top 5,000 on PyPI