Monday, October 15, 2012

Linux Dummy Mail Server for Debugging

Recently I found useful console command for creating a local mail server, echoing incoming mail messages to std out.

Enjoy the simplicity and effectiveness:
sudo python -m smtpd -n -c DebuggingServer localhost:25

// made it to my .bash_aliases file as:
alias mail_server='sudo python -m smtpd -n -c DebuggingServer localhost:25'

No comments:

Post a Comment