The slimta
project is a Python library offering the building blocks necessary
to create a full-featured MTA. Most MTAs must be configured, but an MTA
built with slimta
is coded. An MTA built with slimta
can incorporate any
protocol or policy, custom or built-in. An MTA built with slimta
can
integrate with other Python libraries and take advantage of Python's great
community.
The slimta
project is released under the MIT License.
Use a virtualenv to get started developing against slimta
:
$ cd python-slimta/
$ virtualenv .venv
$ source .venv/bin/activate
(.venv)$ python setup.py develop
To run the suite of unit tests included with slimta
:
(.venv)$ pip install nose
(.venv)$ python setup.py nosetests
To run one of the included examples:
(.venv)$ python examples/smtpmx.py
Note: Though this particular example will create an open relay on
port 1337
, it is only accessible from localhost. Hit Control-C to exit and
kill the open relay.