Re: Enabling Statistics

From: Rolf E. Sonneveld <>
Date: Wed, 11 Aug 2010 00:24:13 +0200

Murray S. Kucherawy wrote:
>> -----Original Message-----
>> From: [mailto:opendkim-users-
>>] On Behalf Of Rolf E. Sonneveld
>> Sent: Tuesday, August 10, 2010 2:21 PM
>> To:
>> Subject: Enabling Statistics
>> Hi,
>> is there any documentation on how to enable statistics? I compiled with
>> --enable-stats, but I couldn't find any references on how to enable
>> statistics exactly. What is the exact syntax that needs to be used. I
>> assume it's something like:
>> Statistics /path/to/filename
>> but what is the exact syntax and is there anything that can be
>> configured regarding what data is gathered etc.?
> It's probably best that it's not terribly well-documented right now since it's all going to change in 2.2.0... ;-)
> Configure "Statistics" to refer to a Berkeley DB, such as:
> Statistics db:/var/db/opendkim/stats.db
> Initialize that database before trying to use it:
> opendkim-stats -i /var/db/opendkim/stats.db
> Then restart opendkim and you should see that database begin to grow a little with each message you receive, even unsigned ones.
> You can see what information is recorded by checking the man page for opendkim-statistics(8), which is in the opendkim directory. That's also the tool you use to extract data for your own use or for export to us. There's a flag to conceal domain names and IP addresses if you'd rather not share that information. This is done via a one-way hash so that multiple messages from the same domain can be correlated without revealing exactly what they are.
> Once you have some data, run:
> opendkim-stats -a -c -m <my-address> <path-to-stats-db>
> That will mail me your anonymized data. (Leave off "-a" if you don't mind exposing your mail information.) If the output of that looks OK, we can set it up to send via cron so we get a regular feed of your data and add it to our statistics.
> Let me know if you need any more information.

thanks for the information. It looks like it works now, without
problems. Currently I have only installed it in a non-production
environment, tomorrow I hope to install it on two production servers.
When it has run without problems for a day, I'll start sending
statistics to you (albeit anonymized).

One comment or suggestion about statistics: as far as I understand, the
statistics module works for the verifier side of opendkim, correct?
Would there be any use to have the ability to use it from within the
signing module in opendkim? E.g. to gather information about what type
of headers are present in a mail when it gets signed, whether there are
0, 1, 2 or more DKIM-signatures already present, what type of
canonicalization is being used.

As not all inbound traffic has been signed by opendkim, the statistics
for outbound traffic are not the same as the statistics for inbound
traffic, so we increase the amount of useful data this way, don't we?

Received on Tue Aug 10 2010 - 22:24:29 PST

This archive was generated by hypermail 2.3.0 : Mon Oct 29 2012 - 23:19:48 PST