dkim-ops
[Top] [All Lists]

Re: [dkim-ops] Newbie: How do I test a dkim setup

2009-06-22 07:36:24
On Mon, Jun 22, 2009 at 4:01 PM, ram <ram(_at_)netcore(_dot_)co(_dot_)in> wrote:

I would like to know if there is some commandline dkim sign utility

Can I just create a mailfile using "vi" and dkim-sign & sendmail it
using some script. So that I can see what the dkim signed file looks
like and test everything before implementing dkim on all servers.

I have hacked the libdkim library by ALT-N technlogies to compile under
most linux distros. The same
is available at

https://sourceforge.net/project/showfiles.php?group_id=230686&package_id=306202

The command line utility is dkim and I give below a sample usage of dkim
command line utility

You can use dkim to sign/verify messages
% cat /tmp/test.msg | dkim -l -t -z 1 -b 2 -s private_signature
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=consim.com;
        s=private; l=35; t=1238173510; x=1238778310; h=To:From:Subject;
        bh=IibB1oF3RGv+x38la208y0I8Ilo=; b=PmfTEOHBrtc/wzV2lvkOjQf+y7aA+
        HC9NZInNykM94yA/egjh5J6Vym1kJFKRiA8JdyKV2DYvyNhF/i5AxZUP+QD+10He
        kEUsROHmB5IAFGayo2ujHo/UTaENg1jr79S

% (cat /tmp/test.msg | dkim -l -t -z 1 -b 2 -s private_signature; \
   cat /tmp/test.msg) | dkim -v
DKIM-Status: good
%
_______________________________________________
dkim-ops mailing list
dkim-ops(_at_)mipassoc(_dot_)org
http://mipassoc.org/mailman/listinfo/dkim-ops
<Prev in Thread] Current Thread [Next in Thread>