Differences between version 6 and predecessor to the previous major change of SpamAssassinNotes.
Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 6 | Last edited on Friday, July 21, 2006 11:26:14 am | by CraigBox | Revert |
Older page: | version 5 | Last edited on Friday, June 23, 2006 11:15:00 am | by CraigBox | Revert |
@@ -196,8 +196,36 @@
[8615] dbg: pyzor: check timed out after 5 seconds
</verbatim>
The old Pyzor server has disappeared. Locate .pyzor/servers (systemwide on Debian/Ubuntu, it's under /root/.pyzor/servers) and replace the contents with <tt>82.94.255.100:24441</tt>. Don't run <tt>pyzor discover</tt> again, as it will overwrite the contents with the broken server. (Thanks to [this Nabble post|http://www.nabble.com/Pyzor-issue-since-upgrade-to-3.1.3-t1742083.html] for the answer)
+
+!!Graphing your SA scores
+
+Thanks to Tom from ItPartners for this cool script. Requires gnuplot. Graphs your spam scores.
+
+<verbatim>
+#!/bin/bash
+
+# Generate a graph of SpamAssassin spam score frequencies.
+# Needs gnuplot.
+
+LOGFILES=/var/log/mail.log*
+
+SCOREFILE=/tmp/spamscores
+IMAGEFILE=/tmp/spamplot.gif
+
+> $SCOREFILE
+for score in `zegrep "identified spam|clean message" $LOGFILES | awk '{print $9}' | cut -d "/" -f 1 | cut -d '(' -f 2`
+do
+ echo $score 1 >> $SCOREFILE
+done
+
+gnuplot <<EOF
+set term gif
+set output "$IMAGEFILE"
+plot "$SCOREFILE" smooth frequency
+EOF
+</verbatim>
----
CategoryAntiSpam %%%
CategoryNotes