Re: opendkim-spam

From: Christian Rößner <cr_at_sys4.de>
Date: Thu, 8 Nov 2012 14:55:42 +0100

Hi,

>> for spam in /var/lib/amavis/quarantine/spam/*.gz; do zcat $spam | /usr/local/bin/opendkim-spam; done
>> opendkim-spam: could not determine reporter id for 'localhost'
>> opendkim-spam: could not determine reporter id for 'localhost'
>>
>> How can I set the teporterid for opendkim-spam command?
>
> It's determined by the top-most Received: field. For this message from you, on my system, it was:
>
> Received: from mx.elandsys.com (ns1.qubic.net [208.69.177.116])
> by medusa.blackops.org (8.14.5/8.14.5) with ESMTP id qA8BXC4D048696
> for <msk_at_blackops.org>; Thu, 8 Nov 2012 03:33:14 -0800 (PST)
> (envelope-from opendkim-users-bounce_at_lists.opendkim.org)
>
> The reporter name is the field after "by", which it looks up in the "reporters" table. It also uses the field after "id" to find the message in the "messages" table.
>
> This has been sufficient to date. We could add a command line override for the reporter ID or reporter name if needed for your application.


I started writing a patch. It seems to work, but I can not see changes in the database itself :)

for spam in /var/lib/amavis/quarantine/spam/*.gz; do zcat $spam | ./opendkim-spam -v; done
lt-opendkim-spam: connected to database on localhost
lt-opendkim-spam: requesting reporter id for 'mx0'
lt-opendkim-spam: requesting message id for 'CUXiixPhWDM9'
lt-opendkim-spam: connected to database on localhost
lt-opendkim-spam: requesting reporter id for 'mx0'
lt-opendkim-spam: requesting message id for 'WGEHi03jS4LZ'

I have expanted opendkim.c by adding a new configuration option called ReporterID (or command line option -r).





I am investigating the problem. Maybe I find out what is wrong…

Kind regards

-Christian Rößner

--
[*] sys4 AG
http://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München
Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Axel von der Ohe, Marc Schiffbauer
Aufsichtsratsvorsitzender: Joerg Heidrich
Received on Thu Nov 08 2012 - 13:55:52 PST

This archive was generated by hypermail 2.3.0 : Thu Nov 08 2012 - 14:00:01 PST