by bluepostit · 14y ago · 0 comments
python -m smtpd -n -c DebuggingServer localhost:25
Edit: you need root permission to listen on port 25. Otherwise you can use a different port > 1024.