start a local SMTP debugging server in linux

Shell
$sudo python -m smtpd -c DebuggingServer -n test.com:1025
Source

Also in Shell: