For diagnostic purposes, it can be very useful to talk directly to your SMTP or IMAP server. Things get a little more complicated when encryption rears its ugly head, but with the right tools, it doesn't have to be a black art.
Almost all mail servers offer the option of encrypting connections. Two different procedures are used

The link for this article located at H Security is no longer available.