• RSS
  • Twitter
  • FaceBook

Securing SMTP Connections to Specific Servers

SMTP is basically a non-secure protocol. E-mail fraud and spoofing is not difficult to do. This means anyone can send you an e-mail posing as someone else. Moreover, SMTP mail is typically sent in clear text and can be intercepted on the way by anyone using "sniffers", programs that record network activity. In this article you'll learn how to send and receive encrypted mail.
Amit Zinman photo

Exchange 2000/3 allows you to encrypt mail on the server side. This is useful when you want all mail sent to a certain business partner to be secured, while still being able to send and receive unencrypted mail from and to the rest of the Internet.

You would need an active Certificate Authority (CA) to generate encryption keys. This is outside of this articles' scope but you can have a look at the step-by-step guide provided by Microsoft at the following link:

http://www.microsoft.com/windows2000/techinfo/planning/security/casetupsteps.asp

Once your CA is up and running you can generate a certificate for mail encryption using the Exchange System Manager. The certificate is a piece of information that is linked to its sources, in this case, the CA and the Exchange server that is used to encrypt the data. The part of the certificate that is actually used to encrypt the data is called "encryption key".

In the following dialog box you can specify the length of the key used to encrypt the data. Increasing key length makes the encrypted data more difficult to break but also increases the load on the server's CPU and the size of the mail that is sent.

Don't fuss too much about the data entered in the coming three dialog boxes. The data eventually appears on your certificate but is not that important for this scenario.

Now your server is ready to accept secure mail. To send encrypted mail we now need to configure the Exchange connectors. To send encrypted mail to a particular domain, we need a second dedicated connector. Since the Internet mail outbound connector usually sends mail to all external domains we need to first of all designate that this connector cost be higher. This means that outbound mail is first evaluated using the lower cost connector. If it matches the address space for this connector it will be encrypted, if not it will be sent to the Internet using the higher cost connector, typically with an address space of "*" designating all outbound domains.

You can directly forward the mail to the remote server if you know the name or IP address, but I prefer using DNS which is better in case your business partner changes the name of the mail server of IP address and forgets to tell you.

Mail encryption uses TLS, an official Internet standard based and improving on the more commonly known SSL 3.0 protocol. Mail is encrypted in the same way web transactions are encrypted when you visit a secure web site, only this is done both ways. To make sure that no one is posing as the designated mail server I usually configure Basic Authentication with a username and a complex password on both sides. Integrated Windows Authentication might be more secure but typically does not work over Firewalls.

After completing this on both sides you are all set to go and your e-mail is transparently encrypted between the servers, safe from tampering and theft.

About Amit Zinman

Amit Zinman photo Currently working as Project Manager and Systems Consultant, heading and consulting on Exchange and NT/Windows 2000 based migrations and deployments for large companies such as Checkpoint, Comverse, Smarteam, Nice, Aladdin and leading Israeli Banks, Also involved in writing scripts and custom solutions for clients based on ADSI, CDO and Visual Basic and teaching Windows 2000 and Exchange 2000 in MSCE colleges and lecturing in Microsoft User Groups.

Receive all the latest articles by email!

Get all articles delivered directly to your mailbox as and when they are released on MSExchange.org! Choose between receiving instant updates with the Real-Time Article Update, or a monthly summary with the Monthly Article Update. Sign up to the MSExchange.org Monthly Newsletter, written by Exchange MVP Henrik Walther, containing news, the hottest tips, Exchange links of the month and much more. Subscribe today and don't miss a thing!



Receive all the latest articles by email!

Receive Real-Time & Monthly MSExchange.org article updates in your mailbox. Enter your email below!
Click for Real-Time sample & Monthly sample

Become an MSExchange.org member!

Discuss your Exchange Server issues with thousands of other Exchange experts. Click here to join!

Solution Center

Readers' Choice

Which is your preferred Outlook Addon solution?