"SfR Fresh" - the SfR Freeware/Shareware Archive 
is intended to be used with only one words database for the whole system.
The options are as follows:
Default policy is to add the X-Bogosity header (Yes, No, Unsure) and deliver the mail. This can be changed with -R or -D when bogofilter classifies the mail as spam.
In bogofilter's configuration the bogofilter_dir token should be set to the directory with system database, usually /var/spool/bogofilter in bogofilter's configuration, or simply the words database of the unprivileged user running the milter can be used.
uses a temporal file to store each individual message and forks a new process to scan it with bogofilter. This temporal file uses /tmp directory by default, it's owned by the user running the milter and has 0600 mode. When a directory is specified in quarantine_mdir the tmp subdirectory in that maildir is used as temporal directory.
The option -t registers the mail after classifying it as spam or ham. This option can be dangerous because the filter may register errors, so you should read carefully bogofilter's manual regarding this point.
The milter can be added to sendmail's configuration by adding the following lines to the mc file:
It assumes the default place for the communication socket.
The cf file must be rebuilt and sendmail restarted.
# line comment policy (pass|reject|discard) default: policy pass reject "<text for the SMTP reply>" default: empty (sendmail default is "Command rejected") subject_tag "<text to tag the subject>" default: empty verbose (0|1) default: verbose 0 spamicity_header (0|1) default: spamicity_header 0 bogofilter "<path to bogofilter binary>" default: bogofilter "/usr/local/bin/bogofilter" training (0|1) default: training 0 body_limit <length in bytes> default: no limit user "<username to run the milter>" default: user "bogofilter" connection "<type>:<location>" default: connection "unix:/var/spool/bogofilter/milter.sock" pidfile "<path to milter pidfile>" default: pidfile "/var/spool/bogofilter/bogom.pid" exclude_string "<subject exclude string>" default: empty forward_spam "<rcpt>" default: empty quarantine_mdir "<path to maildir directory>" default: empty re_connection "<case insensitive extended re>" default: empty re_envfrom "<case insensitive extended re>" default: empty re_envrcpt "<case insensitive extended re>" default: empty
Configuration takes precedence over command line.
By default X-Bogosity header will use 'Yes, tests=bogofilter', 'No, tests=bogofilter' and 'Unsure, tests=bogofilter'. With spamicity_header activated, the classification of 'Ham', 'Spam' or 'Unsure' plus the value of spamicity will be used to tag the messages.
subject_tag string will be prepend to message subject when it is identified as spam and policy is pass.
body_limit specifies the amount of bytes (K suffix for Kilobytes and M for Megabytes) of message body that will be passed to bogofilter to be processed. This option should help busy servers but is incompatible with quarantine_mdir feature.
forward_spam recipient will receive a copy of any message classified as spam when policy is pass. Notice that the original destination recipients won't be modified and general RELAY restrictions will apply.
If a directory in quarantine_mdir is specified, any message classified as spam will be delivered there in maildir format. Neither reject nor discard policy affect this delivery, but body_limit option is ignored. When a message is delivered, necessary subdirectories are created (tmp and new only). Notice that tmp subdirectory in maildir is used as temporal directory for process when this option is active.
The re_* tokens allow to add items to connection envfrom and envrcpt white lists. Any message with client connection (both host and hostname, if available), sender address or destination address matching the case insensitive extended regular expression (explained in re_format7) will be accepted and no filtering operation will be done. Those token can be used more than once and all the regular expressions will be checked.
Quoted strings can use single and double quotes, using backslash to escape both characters.
By default only info and, when needed, err levels will be used. With -v option, extra information will be addressed with notice level plus the log facility provided in bofogilter.
-d option enables debug level with very verbose logging.
activity can be logged to a separate file with following lines in syslog.conf5:
!bogom *.* /var/log/bogom !bogofilter *.* /var/log/bogom
http://www.usebox.net/jjm/bogom/