Gordon> What's the easiest way to accomplish that? Should I just Gordon> subclass smtplib's SMTP class and override the "connect" Gordon> function with one that creates a socket with a timeout? Right now that's probably your best bet. Setting timeouts from higher-level packages which use sockets has not yet been tackled. Skip