Dr. I Doctor

Dr. I Doctor's Informational Juggernaut

April 1, 2008

Deploying Domain Key Identified Mail (DKIM)

Dear Doctor,
In an effort to reduce the amount of phishing e-mail going to our users, I've been asked to set up processing for something called Domain Key Identified Mail (DKIM). I gather DKIM is some kind of encryption system, but I don't have the foggiest idea where to begin to implement it. We currently use CommuniGate Pro mail server running under i5/OS, but the vendor doesn't seem to have much info on the subject.

Gentle User,
Your managers are thinking well to implement Domain Key Identified Mail, as it's one of the best antiphishing tools to come down the pike in a long time. DKIM does use encryption technology, as you suggest, although it does not actually encrypt message content. Phishing target organizations, such as financial institutions, e-commerce sites, and online auctions, increasingly employ DKIM to let users verify that mail purporting to be from one of the target organizations actually is from that organization.

The sending organization digitally signs all of its outgoing mail with a private key and then publishes its public key via DNS. A receiving mail server (called a mail transfer agent, or MTA, in the e-mail biz) uses DNS to check for a Sender Signing Policy (SSP) for the domain of every incoming message. If an SSP exists, the receiving MTA retrieves the public key using another DNS query, then uses that key to verify the digital signature in the incoming message. If the signature is invalid, or nonexistent, the message is fraudulent and gets discarded.

Getting this to work in legacy MTAs, such as CommuniGate Pro, can be challenging. In your case, CGPro's vendor, Stalker Software, has not yet built DKIM into its product. A third-party CGPro plug-in, DomainKeys Helper from Niversoft.com, adds this support to CGPro, but only for Intel-architecture servers, excluding i5/OS (which employs PowerPC architecture). In this situation, the easiest solution is to interpose a DKIM-capable MTA between your MTA and the Internet. You can do this using a separate hardware server or appliance, or on your System i box via Linux under LPAR. With either method, you would configure the front-end MTA to apply the DKIM process to all incoming messages, and pass any not dropped to your i5/OS MTA.

If you're handy with Linux, you could roll your own DKIM MTA using Sendmail (http://www.sendmail.org), an open-source mail server that includes MTA support. Some other open-source MTA's also have DKIM support, as do some e-mail filtering services, for which you pay a per-month, per-mailbox support fee.

Whatever method you choose, a critical prerequisite for DKIM is that your DNS be secure and reliable. If an interloper can compromise DNS, she can bypass DKIM protection. You should ensure that your DNS server code is up to date and fully patched, and that you employ separate DNS servers for inside and outside name resolution. Your inside DNS server must not be open to outside queries, and your external DNS server should not open to recursive queries (called an "open DNS").

Posted by mbeckman at April 1, 2008 4:30 PM

Comments

Post a comment




Remember Me?

(you may use HTML tags for style)

Acceptable Use Policy

Dr. I Doctor
Blog Feed

June 2010
Sun Mon Tue Wed Thu Fri Sat
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30      

Blog Policy

We welcome your comments and opinions and encourage lively debate on the issues. However, Penton Media reserves the right to delete or move any content that it may determine, in its sole discretion, violates or may violate its Terms of Use or is otherwise unacceptable. For more information, see Penton Media's Terms of Use.

ProVIP Sponsors