smtplib

How can I hold a SMTP connectio open with smtplib and Python?

Hi there, I need to check the timeout of a SMTP-Server, but my socket just closes. What am I doing wrong? Here is my test for it: #!/usr/bin/python import smtplib import time import datetime import socket socket.setdefaulttimeout(1800) now = time.time() server = smtplib.SMTP() server.set_debuglevel(1) server.connect('mx.foo.bar','25'...