For connecting to imap servers directly.