Fake mail server for debugging purposes


fakemail is a fake mail server that captures emails as files for acceptance testing. This avoids the excessive configuration of setting up a real mail server and trying to extract mail queue content.

wget http://sourceforge.net/projects/fakemail/files/latest/download -O fakemail-latest.tar.gz
tar -xvf fakemail-latest.tar.gz
cd fakemail-python-1.0/fakemail.py
pyhthon ./fakemail.py --port 25 --path /tmp/mails/ --log=/tmp/fake --host domainXYZ

It also has a nice –background parameters to keep it running in background.

pure python

Python's standard distribution has a test SMTP server that you can test sending mail with. It will start a command line server on this console and it will print everything your server should send through SMTP. To use it simply type:

python -m smtpd -n -c DebuggingServer domainXYZ:25
notes/fakemail.txt · Last modified: 2014/08/28 05:03 by admin
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Run by Debian Driven by DokuWiki