Re: opendkim-spam

From: Murray S. Kucherawy <msk_at_blackops.org>
Date: Thu, 8 Nov 2012 04:35:51 -0800 (PST)

On Thu, 8 Nov 2012, Christian R??ner wrote:
> 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.

-MSK
Received on Thu Nov 08 2012 - 12:36:07 PST

This archive was generated by hypermail 2.3.0 : Thu Nov 08 2012 - 12:45:01 PST