Re: Log not verbose enough

From: Todd Lyons <tlyons_at_ivenue.com>
Date: Wed, 12 Jan 2011 08:33:45 -0800

On Wed, Jan 12, 2011 at 12:32 AM, Miha Vrhovnik <miha.vrhovnik_at_cordia.si> wrote:
> Hi,
>
> I have the following configured in opendkim.conf
>
> LogWhy  yes
> Syslog  Yes
> SyslogFacility  mail
> SyslogSuccess   Yes
>
> and the line in log after successful signing is
> "Jan 12 08:16:43 smtp opendkim[19168]: 4A923246030: DKIM-Signature header added"
> I'm finding this not verbose enough. Is this by design and so should I file a feature request? I'm missing at least selector and the "from field" it was used to select a key.

I use another line with the same queue id in my maillog to determine
who the sender is.

Sendmail should also be logging some lines about what it's being told
to do by the milter. This is an example from my logfile:

Jan 12 08:23:17 mail1 sendmail[31043]: p0CGNGpt031043[1]: Milter
insert (1): header: DKIM-Signature: v=1; a=rsa-sha256;
c=relaxed/simple;\n\td=centraltexascontrols.com; s=c2;
t=1294849397;\n\tbh=BUA6xqAbTkl70UAmt57bvXLs/RYmID/V0prPUXKx5Rg=;\n\th=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type:\n\t
In-Reply-To;\n\tz=From:=20"Jennifer"=20<jen_at_OBFUSCATED>|To:=20"'Whitn\n\t
ey=20Hale'"=20<Whitney.Hale_at_OBFUSCATED>|Subject:=20RE:=20messy=\n\t
20office=20pictures|Date:=20Wed,=2012=20Jan=202011=2010:23:19=20-0\n\t
600|Message-ID:=20<EF95A0B6A65143D1B6740268FF87EC31_at_JENNIFER>|MIME\n\t
-Version:=201.0|Content-Type:=20multipart/alternative=3B=0D=0A=09b\n\t
oundary=3D"----=3D_NextPart_000_0018_01CBB242.BBF62ED0"|X-Mailer:=\n\t
20Microsoft=20Office=20Outlook=2011|X-MimeOLE:=20Produced=20By=20M\n\t
icrosoft=20MimeOLE=20V6.00.2900.5994|In-Reply-To:=20<61CCF3120AD87\n\t
34BACC16A71DD0BBC690181D2E8_at_exch1.thegenius.com>|Thread-Index:=20A\n\t
 ...
Jan 12 08:23:17 mail1 sendmail[31043]: p0CGNGpt031043[2]:
cuybfjcr0XIIj9ZRlmJ08p10mSTegAAKw5QAAAZKSAAAQRVQAAAHNOwAAAZQHAAADy\n\t
/gA=3D=3D|X-Milter-SMTP-Auth-Throttle:=20Passed|X-Virus-Scanned:=2\n\t
0clamav-milter=200.96.4=20at=20mail1.ivenue.net|X-Virus-Status:=20\n\t
Clean;\n\tb=kjbmqTgoFp+5TzLNGkAt059dt5fq6IcZT707SBxfD/ifptpvyO9zv/Jeh6kwbBSt8\n\t
S5uLh32rKKIWuCPw3UJAYNTY+BdX8soouBzBri5/xqMcMGSGliaErFZdZXfslJ/Jn4\n\t
aDm41c43cisAGsnfMAPnlEVF3LCDcilVZ31Lew+w=
Jan 12 08:23:17 mail1 sendmail[31043]: p0CGNGpt031043: Milter insert
(1): header: X-DKIM: OpenDKIM Filter v2.3.0 smtp-auth.ivenue.com
p0CGNGpt031043

I have "Diagnostics Yes" set, so that is a pretty long signature
header that's being created. Normally the entire z= part would not be
there and it would look like this:

Milter insert (1): header: DKIM-Signature: v=1; a=rsa-sha256;
c=relaxed/simple;\n\td=centraltexascontrols.com; s=c2;
t=1294849397;\n\tbh=BUA6xqAbTkl70UAmt57bvXLs/RYmID/V0prPUXKx5Rg=;\n\th=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type:\n\t
In-Reply-To;\n\tb=kjbmqTgoFp+5TzLNGkAt059dt5fq6IcZT707SBxfD/ifptpvyO9zv/Jeh6kwbBSt8\n\t
S5uLh32rKKIWuCPw3UJAYNTY+BdX8soouBzBri5/xqMcMGSGliaErFZdZXfslJ/Jn4\n\t
aDm41c43cisAGsnfMAPnlEVF3LCDcilVZ31Lew+w=

Are you implying that your sendmail is not logging which headers it is
inserting into the emails? Hmmm, I assumed sendmail, but if you're
using postfix, I don't know what the logging differences are. In that
case, I can see that more detailed logging, at least of the From
header being used (as a part of the LogWhy output) and selector used
might be useful.
-- 
Regards...      Todd
I seek the truth...it is only persistence in self-delusion and
ignorance that does harm.  -- Marcus Aurealius
Received on Wed Jan 12 2011 - 16:33:56 PST

This archive was generated by hypermail 2.3.0 : Mon Oct 29 2012 - 23:20:15 PST