User Tools

Site Tools


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 -O fakemail-latest.tar.gz
tar -xvf fakemail-latest.tar.gz
cd fakemail-python-1.0/
pyhthon ./ --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 09:03 by admin