Created
May 1, 2014 00:22
-
-
Save mredar/d53fbe8c924fc19bd23b to your computer and use it in GitHub Desktop.
Python stdlib smtpd server, for dev envs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import smtpd | |
import asyncore | |
d=smtpd.DebuggingServer(('127.0.0.1', 25), None) | |
try: | |
asyncore.loop() | |
except KeyboardInterrupt: | |
pass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment