Skip to content

Instantly share code, notes, and snippets.

@krisfoster
Created June 9, 2011 14:58
Show Gist options
  • Save krisfoster/1016894 to your computer and use it in GitHub Desktop.
Save krisfoster/1016894 to your computer and use it in GitHub Desktop.
Mock out an SMTP Mail Server - Python
#!/bin/bash
# Copied from a blog... but I have lost the link to it
HOST=localhost
PORT=25
python -m smtpd -n -c DebuggingServer ${HOST}:${PORT}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment