Posted By

wnasich on 04/05/11


Tagged

debug python smtp


Versions (?)

Debugging smtp connections


 / Published in: Python
 

URL: http://ubuntuforums.org/showthread.php?t=1572903

See: http://docs.python.org/library/smtpd.html

You might use other port instead 25.

  1. #!/usr/bin/python
  2. import smtpd, asyncore
  3.  
  4. server = smtpd.DebuggingServer(('localhost', 25), None)
  5. asyncore.loop()

Report this snippet  

You need to login to post a comment.