smtpfixture
Run a smtp server that store every mail in a Maildir. The goal is to tests that emails are sent when doing functional tests. You can also use it to verify the rendering of email in a desktop email client, that real Maildir format. You can also use it has a smtp server blackhole or test that you do not send email.
smtpfixture is based on twisted and is just few line of codes for writing a TAP file.
Installation
pip install smtpfixture
usage
cd `smtpfixture-installdir` && twistd smtpfixture
To stop the service, you can run the following command:
kill `cat twistd.pid`
By default smtpfixture run on port 8025 as it did not require any privileges, but you can run it on the port you want.
To run it on port 25, as root, as a smtp blackhole (no email stored):
cd `smtpfixture-installdir` && twistd smtpfixture -p 25 -m /dev/null
Changelog
0.4
Add the interface to bind
0.3
Add a method get_installdir to return the install dir
0.2
Fix packaging
0.1
Initial Release
Metadata
Release files for smtpfixture 0.4
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 |
|---|---|---|---|---|
| smtpfixture-0.4.tar.gz | 4.8 kB | Without provenance | Details for smtpfixture-0.4.tar.gz |
Release files / smtpfixture-0.4.tar.gz
| Download URL | smtpfixture-0.4.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
265ad018cc74b8ee4cb07090cb8b1ecae20baec58c4c8f6c86e53aa3b13cd912
|
|
BLAKE2b-256 checksum How to use checksums |
083576ec34c2ce2e4e26d3580cf0f93a706d3054c09e49349370dbaa00feb499
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for smtpfixture 0.4
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.