Showing posts with label imap. Show all posts
Showing posts with label imap. Show all posts

Friday, December 14, 2007

Secure Email on the Road

If you use a laptop and you need to check your email on the road -- in other words, using a network or a computer that you can't be sure is safe -- you need to establish a secure point-to-point connection to your server for both sending and receiving email. In an earlier post, I described the safest way to connect to Gmail on a public network; this post describes a similar approach for email at your domain.

There are several ways to check your email over a secure connection:
  • Use your email provider's web interface, and connect to the web mail page using SSL (https, not http).
  • Use SSL to connect your email client (Outlook, Thunderbird, etc.) to your mail server.
Note that either option requires that your email provider supports these secure connections. For my company (Cadent), I use DNS Made Easy's IMAP and SMTP services. I haven't found better pricing anywhere else, and their service has been tremendously reliable.

How To Send Email Securely

The approach I describe here will work on any wireless network, or any insecure wired network, to protect your email login and downloads. Otherwise, your email transactions, especially your login, are transmitted in clear text, which means anyone who's watching can see your user name and password.

That's right, the default setup for most email programs is to transmit everything, including your login, unprotected in the clear! To protect your email accounts, you only need to configure your email client once to use a secure connection, and then you will be safe every time you use that email client software.

Web Mail

If your email provider offers a web mail page, use it, with SSL. Our company's email provider, DNS Made Easy, offers webmail in two flavors: SquirrelMail and and some email services even build their own

This approach works quickly and easily. Just use SSL by adding an "s" after the "http" like this:

https://webmail.mydomain.com

That's right, substitute your domain. This approach works exactly the same way as the safest way to connect to Gmail on a public network, so see that post for details.

Secure IMAP with SSL

Your communications with your incoming email server need to be protected so an eavesdropper can't steal your password and read all your email. I'm a big fan of using the IMAP protocol for my incoming email, instead of POP. That's really a separate discussion, but for now you should know that IMAP is really the way to go if you check your mail from more than one computer.

Here's how to encrypt the traffic between your email program and your incoming IMAP email server:
  1. Use a provider (such as DNS Made Easy) that supports an IMAP SSL connection; or, for a corporate email system, ask your IT guy to set it up (he really should, anyway).
  2. In your current email client (Outlook, Thunderbird, etc.) open the account settings dialog box. Usually, this opens a tabbed or many-sectioned dialog box. Select the tab for your incoming or receiving email server.
  3. Check or select the "SSL" encryption option. Note: this may be hidden under "Advanced" or some similar secret place -- one of the reasons why most people don't do this.
  4. Enter your
That's it! Now, click [OK] to save your changes, and now try checking your email. Even better, send yourself an email from another account, like Gmail, and make sure it comes in correctly.

Here are some links to step-by-step instructions for different mail clients:
Check your mail client's online help for current details.

Secure SMTP

You need to protect your connection with your outgoing (SMTP) server so spammers don't hijack your user name and password to use your account to send spam. Because of this problem, many ISPs don't allow you to use their SMTP servers unless you are connected through their network, even if you need to authenticate with a username and password. One of our ISPs, Verizon, is an example of this approach. So, even though I need a user name and password to send email via Verizon, I usually can't do this when I'm on the road, unless I'm at a client's that uses Verizon, too.

So, here's what I did:
  1. Set up a secure SMTP server at DNS Made Easy.
  2. In my mail client, I opened the account settings dialog box, and went to the outgoing (SMTP) server settings.
  3. I selected the "SSL" option for encryption.
  4. I typed in my username and password.
  5. Just to be safe, I changed the SMTP port to a port that only accepts SSL, in my case, port 465 -- this may be different for your SMTP server.
  6. I clicked [OK] to save my changes.
I sent a test message to confirm everything worked and I typed my strong password correctly. All set! I'm ready to take this show on the road.