[exim] write spam report in to main log

Góra strony
Delete this message
Reply to this message
Autor: Balzi Andrea
Data:  
Dla: exim users
Temat: [exim] write spam report in to main log
Hi

I would want to try to write in to main.log file the spamassassin
reports of any mails marked as Spam or rejected because it they are.
At the first time I've try to write in to main.log by log_message, but
in the Spam report they lacked the end of line (appear only \n).
I've try also logwrite, don't write anything.

The configuration whit log_message that I've try is the follow:

  accept condition = ${if > {$message_size}{3M}}
  warn  message = X-Spam-Score: $spam_score ($spam_bar)\n\
                  X-Spam-Report: $spam_report\n\
                  Subject: ***SPAM*** $h_Subject:
        log_message = messaggio marcato come spam ($spam_score / 4.0)
        log_message = $spam_report
        spam = nobody


I've try to change it whit this:

  accept condition = ${if > {$message_size}{3M}}
  warn  message = X-Spam-Score: $spam_score ($spam_bar)\n\
                  X-Spam-Report: $spam_report\n\
                  Subject: ***SPAM*** $h_Subject:
        log_message = messaggio marcato come spam ($spam_score / 4.0)
\n$spam_report
        spam = nobody


And also I've try to change whit this follow:

  accept condition = ${if > {$message_size}{3M}}
  warn  message = X-Spam-Score: $spam_score ($spam_bar)\n\
                  X-Spam-Report: $spam_report\n\
                  Subject: ***SPAM*** $h_Subject:
        log_message = messaggio marcato come spam ($spam_score / 4.0)
        logwrite = :main: $spam_report
        spam = nobody


This is an example with log_message:

2006-10-26 08:59:16 1GczCM-00087T-2F H=(ir8qdds.odowl.rr.com)
[124.6.174.117] Warning: messaggio marcato come spam (20.2 / 4.0) \n Our
systems have identified this email like possible Spam.\n If you have any
questions send a mail to postmaster@??? .\n     Il software
AntiSpam, ha identificato questa email come possibile Spam.\n       Se
avete domande inviate una mail a postmaster@??? .\n    Content
analysis details:   (20.2 points, 4.0 required)\n       pts rule name
description\n      ---- ----------------------
--------------------------------------------------\n        1.3
FH_RELAY_NODNS         We could not determine your Reverse DNS\n    1.0
DC_IMG_TEXT_RATIO      BODY: Low body to pixel area ratio\n       0.4
HTML_30_40             BODY: Message is 30% to 40% HTML\n   0.0
HTML_MESSAGE           BODY: HTML included in message\n     3.5 BAYES_99
BODY: Bayesian spam probability is 99 to 100%\n   [score: 1.0000]\n
0.0 MIME_HTML_ONLY         BODY: Message only has text/html MIME parts\n
0.5 HTML_IMAGE_ONLY_16     BODY: HTML: images with 1200-1600 bytes of
words\n   1.0 DC_IMG_HTML_RATIO      RAW: Low rawbody to pixel area
ratio\n     0.8 SARE_GIF_ATTACH        FULL: Email has a inline gif\n
3.0 DC_GIF_UNO_LARGO       Message contains a single large inline gif\n
0.7 MY_CID_AND_STYLE       SARE cid and style\n 0.9 FM_NO_STYLE
FM_NO_STYLE\n      0.6 HELO_MISMATCH_COM      HELO_MISMATCH_COM\n  1.7
SARE_GIF_STOX          Inline Gif with little HTML\n        2.0
DC_IMAGE_SPAM_TEXT     Possible Image-only spam with little text\n  3.0
DC_IMAGE_SPAM_HTML     Possible Image-only spam


Can someone help me to make it?

Andrea