http://www.brandonturner.net/blog/2009/03/dkim-and-domainkeys-for-qmail/

http://libdkim.sourceforge.net/