Logging

David Relson relson at osagesoftware.com
Mon Mar 17 14:04:15 CET 2003


At 07:21 AM 3/17/03, John Poltorak wrote:


>I have only just recently heard of bogofilter and tried installing it
>yesterday.
>
>I have included it as part of sendmail's local delivery agent which uses
>procmail.
>
>What I'd like to know is whether it is working or not. Is there any way to
>turn on verbose logging until I know it is functioning correctly?

Welcome John,

If you use the "-p" (passthrough) option, bogofilter will add a line at the 
end of the message's headers.  The line is of form:

X-Bogosity: Yes, tests=bogofilter, spamicity=0.000000, version=0.11.1.3
Status:

There are formatting options that can be included in the config file, 
typically /etc/bogofilter or ~/.bogofilter.cf that can customize the 
formatting to a limited degree.  File bogofilter.cf.example has some 
information on that.  For my site, the line has a slightly  different form 
than above, i.e.

X-Bogosity: Ham, tests=bogofilter-f, spamicity=0.00e+00, version=0.11.1.3
Status:

Also, the "-l" (log) flag writes a one line message that goes to 
/var/log/syslog.  Running "tail -f /var/log/syslog" will enable you to see 
that bogofilter is scoring messages.  For logging, there is only the one 
flavor, i.e. bogofilter doesn't have verbosity levels.

Bogofilter's verbose output has 3 levels, enabled by "-v", "-vv", and 
"-vvv", and is written to stderr.  Your procmail recipe _could_ redirect 
this output to a log file.

Other than that, you can do "spot checking" by manually running bogofilter 
with different verbosity levels to learn more about what's happening.

Hope this helps:-)

David






More information about the Bogofilter mailing list