e-mail-97620_640DKIM for JavaMail Open Source Library

If you’re looking for an open source Java library that allows you to sign your SMTPMessage Objects in JavaMail with DKIM just before calling Transport.sendMessage(…) you found the right website.

DKIM for JavaMail is a small JAR (Apache Licence, Version 2.0) that can be easily implemented in existing Java projects using JavaMail for sending emails.

Basic usage example

DKIMSigner dkimSigner = new DKIMSigner(<signingDomain>, <selector>, <privateKey>);
Message msg = new SMTPDKIMMessage(session, dkimSigner);
// fill the message here
transport.sendMessage(msg, msg.getAllRecipients());


Download at dkim-javamail.sourceforge.net

Your Feedback in the sourceforge forums is highly appreciated.

First steps after downloading

See README.txt and some implementation examples in test/

Related Links

dkim.org – Look for DKIM implementations

Oracle JavaMail API