Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

smtpfixture

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

smtpfixture

SMTP Server that keep all email

  • 0.4
  • PyPI
  • Socket score

Maintainers
1

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.

.. _Maildir: http://en.wikipedia.org/wiki/Maildir

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

.. note::

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 twistd.pid`

.. note::

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

.. note::

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

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

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc