On Wed, 22 Aug 2007, Mark Martinec wrote:
>> Quite another thing: can someone explain how I go about validating the
>> signature of someone else's message, for example Mark's
>> http://www.ijs.si/~mark/tmp/1.msg.gz?
>
> Probably the simplest is to re-submit such a message into a mail stream,
> preferably through SMTP, e.g.:
>
> $ mini_sendmail [EMAIL PROTECTED] [EMAIL PROTECTED] <1.msg
>
> http://www.acme.com/software/mini_sendmail/
> or: http://savannah.nongnu.org/projects/smtpmail
There are also undocumented ways to compile dkim-filter to read a message
from standard input and run it through the signing/verifying process
without actually using sendmail at all. I thought I'd described them here
once before, but simply:
- modify site.config.m4 (or dkim-filter/Makefile.m4) so that -DDEBUG is
added to the build
- recompile (sh Build -c)
- modify your input so it looks like:
F(envelope-sender)
.
(RFC2822 headers)
(blank line)
(body)
- remove or comment out any AutoRestart and Background lines if you're
using a configuration file
- run dkim-filter as you normally would, except don't specify -A and
always specify -f, and have the above file's contents on standard input
You should see it make each of the milter-related calls along with their
respective arguments and return values. Toward the end, look for the
header insertions to indicate the result of the signing/verifying
operations. If you see none or if mlfi_eom() or mlfi_eoh() return
something other than an SMFIS_ACCEPT or SMFIS_CONTINUE status, there are
problems other than bad signatures and such (e.g. missing headers).
-MSK
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
dkim-milter-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dkim-milter-discuss