Skip to main content

SMTP Server that keep all email

Project description


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.


pip install smtpfixture


cd `smtpfixture-installdir` && twistd smtpfixture


smtpfixture is a tap file and it must be found by the twistd script. To get the plugin discovered by twistd, a change directory must be done. if you have a better solution, just let me now.

To stop the service, you can run the following command:

kill `cat`


The command twistd -n smtpfixture can be used to avoid deamonization.

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


twistd provide options to change the uid/gid to fix privileges issues.



  • Add the interface to bind


  • Add a method get_installdir to return the install dir


  • Fix packaging


  • Initial Release

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for smtpfixture, version 0.4
Filename, size File type Python version Upload date Hashes
Filename, size smtpfixture-0.4.tar.gz (4.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page