spamassassin-users October 2010 archive
Main Archive Page > Month Archives  > spamassassin-users archives
spamassassin-users: Re: Enable function

Re: Enable function

From: Martin Gregorie <martin_at_nospam>
Date: Fri Oct 08 2010 - 12:40:01 GMT
To: Spamassassin users list <>

On Fri, 2010-10-08 at 09:31 +0200, Hans-Werner Friedemann wrote:
> Hi @ all
> can you tell me something about enabling special log-functions for my
> spamd.log!? I want to see the sender, receiver an the subject of every
> incoming an scanned eMail!
The following will only work if your MTA is Postfix or another MTA that
sends mail to SA and expects it to be returned via the sendmail utility.

Put a program in the pipeline between spamc and sendmail that can scan
the message, extract the From:, To: and Subject: headers and log their
contents. You'll probably have to write the program, but it should be
simple enough in C, Python or Perl. I use a similar, but more complex
program to detect bad spam and discard it. It has an option to log the
sender, subject and rules hit. You can find it here:
The program is called spamkiller 1.3.2.

If you're using more elaborate glue, e.g. a milter, to pass messages to
and from SA, you'll need to see if it can do the same trick or if you
need to modify it.