|Main Archive Page > Month Archives > spamassassin-users archives|
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.