Advertisement
rfmonk

smtplib_verify.py

Feb 27th, 2014
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.32 KB | None | 0 0
  1. #!/usr/bin/env python
  2.  
  3.  
  4. import smtplib
  5.  
  6. server = smtplib.SMTP('mail')
  7. server.set_debuglevel(True)  # show communication with the server
  8. try:
  9.     rfmonk_result = server.verify('rfmonk')
  10.     notthere_result = server.verify('notthere')
  11. finally:
  12.     server.quit()
  13.  
  14. print 'rfmonk  :', rfmonk_result
  15. print 'notthere:', notthere_result
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement