# mailfilter.cf ---- Configuration file for mailfilter.cf # # NOTE THAT THIS IS DIFFERENT THAN THE PREVIOUS MAILFILTER.CRM FILE!!!! # # You MUST edit the fileds for "Secret Password", # Changes to other values are optional. # # Many of the options here have two or three alternatives; these are # put on sequential lines. Uncomment the one you want, and leave the # others commented out. If you leave more than one uncommented, the # last one is the one that's used. # # After you edit this file, don't forget to edit 'rewrites.mfp' # # ------------define the secret password ---------- YOU NEED TO CHANGE THIS! # # If you leave it as "DEFAULT-PASSWORD", you will not be able to # access the mail-to-myself commanding system, as "DEFAULT-PASSWORD" # is specifically _disabled_ as a legal password. # :spw: /DEFAULT-PASSWORD/ # # # ----- If you want a verbose startup, turn this on. Note that this is # ----- intentionally _after_ the password is set, so a verbose startup # ----- will not reveal your password. # #:verbose_startup: /SET/ :verbose_startup: // # # ------------do we email rejects to another account, or are we being run # -----------from inside procmail, in which case we just add an X-CRM114-tag. # -----------If turned on, will add X-CRM114-Whatever: headers on each # -----------incoming email. # :add_headers: /yes/ # # # --------- do we add the statistics report? :add_verbose_stats: /yes/ # --------- Do we enable long-form explains (with lots of text)? # -- you can have no extra stuff, add it as text, or add it as an attachment. # # :add_extra_stuff: /no/ :add_extra_stuff: /text/ # :add_extra_stuff: /attachment/ # # --------- Do we want to insert a "flagging" string on the subject line, # --------- perhaps to insert an 'ADV:' ? Whatever string we put here # --------- will be inserted at the front of the subject. # # :spam_flag_subject_string: // :spam_flag_subject_string: /ADV:/ # # # --------- Do we want to do any "rewrites" to increase generality and # ---------- (usually) accuracy? IF 'yes', be sure to edit rewrites.mfp! # --------- NOTE: this option is VERY SLOW. Be warned, you will use # --------- a lot of CPU time if you enable rewrites for all incoming mail # --------- (this is why the makefile for learning does scrubbing too) # :rewrites_enabled: /yes/ #:rewrites_enabled: /no/ # # # --------- Do we log incoming text into allmail.txt ? default is yes, but # --------- experienced users will probably set this to 'no' after testing # --------- their configuration for functionality. # :log_to_allmail.txt: /yes/ # :log_to_allmail.txt: /no/ # # # --------- Do we log rejected mail to a file? default yes, but experienced # --------- users will probably set this to no after testing their # --------- configuration for functionality. # :log_rejections: /yes/ #:log_rejections: /no/ # # # ----------- define an optional target for where to send failed mail, # ----------- to not forward this to another account, just leave the # ----------- address as the empty string, which is '//' # ------- caution- some systems are buggy and _REQUIRE_ a user@host.domain # ----- in the following if they are to operate correctly. WTF??? :-( # :general_fails_to: // # # # -------- If you would prefer to send specific kinds of spam to # -------- different mailboxes, here's where to do it. # ----------(be sure to uncomment the line!) # # :fail_priority_mail_to: /where_priority_fails_go/ # :fail_blacklist_mail_to: /where_blacklist_fails_go/ # :fail_SSM_mail_to: /where_Classifier_fails_go/ # # # # --- You MUST set the following correctly! --- # --- Some mail systems do mime decoding with "mimencode -d" or "-u". # --- Others (such as Red Hat 8.0) use "mewdecode" . # --- Yet Others (i.e. *BSDs) can use "base64" or even openSSL # --- See which one is on your system and use that one- comment # --- the others out. # :mime_decoder: /mewdecode/ #:mime_decoder: /mimencode -d/ #:mime_decoder: /mimencode -u/ #:mime_decoder: /base64 -d/ #:mime_decoder: /openssl base64 -d/ # # # # --------- Do we give nonspam and spam an exitcode of 0 # --------- (for most standalone apps) or something else? # --------- Usually we use an exit code of 1 for "program fault", # --------- but change it if you need to use 0/1 for good/spam :rejected_mail_exit_code: /0/ # :accepted_mail_exit_code: /0/ # :program_fault_exit_code: /1/ # # # # ----------Do we want to enable "inoculation by email"? # --------(leave this off unless you want RFC inoculations) # :inoculations_enabled: /no/ #:inoculations_enabled: /yes/ # ####################################################################### # # ------------------- YOU CAN PROBABLY STOP HERE ------------------- # --------- values below this line are usually OK for almost all # --------- users to use unchanged. # # ----------------- Guru optimizations follow ------------------------ # # --------- Which classifier flags do we use? Default (the old standby) # --------- is SBPH/Markovian with microgrooming enabled (recommended). # --------- A null setting gets you Markovian, without # --------- microgrooming. OSB uses less memory, is faster, # --------- and may be more accurate. Correlative matching is # --------- 100x - 1000x slower, but can match anything (binaries, # --------- wide chars, unicode, virii, _anything_. # # --------- This is also where we set whether to use microgrooming # --------- or Arne optimization (they're currently mutually exclusive). # --------- If you turn off microgrooming you get Arne optimization # --------- automatically. # :clf: /microgroom/ #:clf: /osb/ #:clf: /osb microgroom/ #:clf: /correlate/ # # # -------- what regex do we use for LEARN/CLASSIFY? # ---- the first is the "old standard". Other ones are handy for # ---- different spam mixes. The last one is for people who get # ---- a great deal of packed HTML spam, which is almost everybody # ---- in 2003, so it's the default. But since spammers are shifting # ---- away from this, it might not be default much longer. # # ---- IF you change this, you MUST rebuild your .css files with # ---- roughly equal amounts of locally-grown spam and nonspam # #:lcr: /[[:graph:]]+/ #:lcr: /[[:alnum:]]+/ #:lcr: /[-.,:[:alnum:]]+/ #:lcr: /[[:graph:]][-[:alnum:]]*[[:graph:]]?/ :lcr: /[[:graph:]][-.,:[:alnum:]]*[[:graph:]]?/ # # this next one is pretty incomprehensible, and probably wrong... #:lcr: /[[:print:]][/!?\#]?[-[[:alnum:]][[:punct:]]]*(?:[*'=;]|/?>|:/*)? # # # Expansions for antispamming. You almost _always_ want these on, # unless you're debugging something really bizarre. # # # -----------Do we enable base64 expansions? #:do_base64: /no/ :do_base64: /yes/ # # # # --------- Do we enable spammus interruptus undo? #:undo_interruptus: /no/ :undo_interruptus: /yes/ # # # # ------------ HIGHLY EXPERIMENTAL - automatic training! # enable this only if you really want to live VERY dangerously! # "Do you feel lucky today, punk? Well, do ya?" # :automatic_training: /no/ # # ---- if you are living dangerously and have turned on autotraining, # you should also set the following to point to an address that # will get read on a quick basis, becuause this is where autotrain # verifications will go. # :autotrain_address: /root/ #