Blame bogofilter.cf.example

Packit e8bc57
########### Sample BOGOFILTER Configuration File ###########################
Packit e8bc57
Packit e8bc57
# Default settings (as defined in the bogofilter source code) 
Packit e8bc57
# have a single hash mark at the beginning of the line.
Packit e8bc57
Packit e8bc57
# Alternate values have two hash marks.
Packit e8bc57
Packit e8bc57
# Comment lines MUST have their hash mark in the leftmost column.
Packit e8bc57
# Comments can be added at the end of any line (after whitespace and a '#').
Packit e8bc57
# Blank lines are allowed.
Packit e8bc57
Packit e8bc57
########### General Settings ########################################
Packit e8bc57
Packit e8bc57
#### BOGOFILTER_DIR
Packit e8bc57
#
Packit e8bc57
#	directory for wordlists
Packit e8bc57
#
Packit e8bc57
#bogofilter_dir=~/.bogofilter
Packit e8bc57
##bogofilter_dir=/var/spool/bogofilter
Packit e8bc57
Packit e8bc57
#### name/location of user config file
Packit e8bc57
#
Packit e8bc57
#user_config_file=~/.bogofilter.cf
Packit e8bc57
##user_config_file=~/.bogofilterrc
Packit e8bc57
##user_config_file=~/.bogofilter/config
Packit e8bc57
Packit e8bc57
#### TRANSACTIONS: enable/disable database transactions
Packit e8bc57
#
Packit e8bc57
#	boolean indicating whether transactions
Packit e8bc57
#	should be enabled (yes) or disabled (no)
Packit e8bc57
#
Packit e8bc57
#db_transaction=no		# default
Packit e8bc57
##db_transaction=yes		# (alternate)
Packit e8bc57
Packit e8bc57
#### WORDLIST: define additional word lists
Packit e8bc57
#
Packit e8bc57
#	char type: 'r' (regular) or 'i' (ignore)
Packit e8bc57
#	char *name: name of list, e.g. "system", "user", "ignore"
Packit e8bc57
#	char *path: absolute path to file or
Packit e8bc57
#		    file name (relative to bogofilter_dir)
Packit e8bc57
#	int  order - once found, skip higher numbered lists
Packit e8bc57
#
Packit e8bc57
##wordlist i,ignore,~/ignorelist.db,1
Packit e8bc57
##wordlist r,wordlist,~/wordlist.db,2
Packit e8bc57
Packit e8bc57
#### SPAM_HEADER_NAME
Packit e8bc57
#
Packit e8bc57
#	used in reporting spamicity and
Packit e8bc57
#	in removing already existing headers
Packit e8bc57
#
Packit e8bc57
#spam_header_name=X-Bogosity
Packit e8bc57
Packit e8bc57
#### SPAM_HEADER_PLACE
Packit e8bc57
#
Packit e8bc57
#	used in placing the SPAM_HEADER_NAME line
Packit e8bc57
#
Packit e8bc57
#spam_header_place=DomainKey-Signature
Packit e8bc57
Packit e8bc57
#### SPAM_SUBJECT_TAG
Packit e8bc57
#
Packit e8bc57
#	tag added to "Subject: " line for identifying spam or unsure
Packit e8bc57
#	default is to add nothing.
Packit e8bc57
#
Packit e8bc57
##spam_subject_tag=***SPAM***
Packit e8bc57
##unsure_subject_tag=???UNSURE???
Packit e8bc57
Packit e8bc57
#### STATS_IN_HEADER
Packit e8bc57
#
Packit e8bc57
#	non-zero (default):  put spamicity info in message header
Packit e8bc57
#	zero:  put spamicity info in message body
Packit e8bc57
#	can use "bool" values of True, False, Yes, No, 1, or 0
Packit e8bc57
#
Packit e8bc57
#stats_in_header=Yes		# default
Packit e8bc57
##stats_in_header=No		# (alternate)
Packit e8bc57
Packit e8bc57
#### DB_CACHESIZE
Packit e8bc57
#
Packit e8bc57
#	non-zero: set this as DB cache size (in Mbytes)
Packit e8bc57
#	zero:     use DB default cache size (.25 Mbyte in 4.0.14)
Packit e8bc57
#
Packit e8bc57
#	note that Berkeley DB increases any buffer size below 500 MB
Packit e8bc57
#	by 25%!
Packit e8bc57
#	This helps most when doing massive changes to the data base that
Packit e8bc57
#	involve a lot of overwrites, such as registering mail boxes,
Packit e8bc57
#	whereas it is mostly a waste of memory for read-only
Packit e8bc57
#	applications such as scoring.
Packit e8bc57
#	WARNING: If you set this too large, bogofilter will fail.
Packit e8bc57
#
Packit e8bc57
#db_cachesize=0			# default
Packit e8bc57
##db_cachesize=16		# (alternate)
Packit e8bc57
Packit e8bc57
#### DB_LOG_AUTOREMOVE
Packit e8bc57
#
Packit e8bc57
#	boolean indicating whether auto-removing of
Packit e8bc57
#	logs should be enabled (yes) or disabled (no)
Packit e8bc57
#
Packit e8bc57
#db_log_autoremove=yes		# default
Packit e8bc57
##db_log_autoremove=no		# (alternate)
Packit e8bc57
Packit e8bc57
#### TIMESTAMP
Packit e8bc57
#
Packit e8bc57
#	enables or disables token timestamps
Packit e8bc57
#
Packit e8bc57
#timestamp=Yes
Packit e8bc57
Packit e8bc57
#### Format of spamicity output
Packit e8bc57
#
Packit e8bc57
# for two-state output the third entry is not needed and not used
Packit e8bc57
#
Packit e8bc57
#spamicity_tags = Spam, Ham, Unsure
Packit e8bc57
#spamicity_formats = %0.6f, %0.6f, %0.6f
Packit e8bc57
#
Packit e8bc57
##spamicity_tags = Yes, No, Unsure
Packit e8bc57
##spamicity_formats = %0.6f, %0.6f, %0.6f
Packit e8bc57
Packit e8bc57
#### Format of SPAM_HEADER
Packit e8bc57
#
Packit e8bc57
#	formatting characters:
Packit e8bc57
#
Packit e8bc57
#	    h - spam_header_name, e.g. "X-Bogosity"
Packit e8bc57
#
Packit e8bc57
#	    c - classification, e.g. Yes/No, Spam/Ham/Unsure, +/-/?
Packit e8bc57
#
Packit e8bc57
#	    D - date, fixed ISO-8601 format for Universal Time ("GMT")
Packit e8bc57
#
Packit e8bc57
#	    e - spamicity as 'e' format
Packit e8bc57
#	    f - spamicity as 'f' format
Packit e8bc57
#	    g - spamicity as 'g' format
Packit e8bc57
#
Packit e8bc57
#	    A - IP address (from first Received: statement having one)
Packit e8bc57
#		Not guaranteed to be the originating address of the message.
Packit e8bc57
#	    I - Message ID
Packit e8bc57
#	    Q - Queue ID (from first id tag found in Received: headers)
Packit e8bc57
#
Packit e8bc57
#	    l - logging tag (from '-l' option)
Packit e8bc57
#
Packit e8bc57
#	    o - spam_cutoff, ex. cutoff=%o
Packit e8bc57
#
Packit e8bc57
#	    p - spamicity value
Packit e8bc57
#	    d - if ham or unsure, the spamicity
Packit e8bc57
#		if spam, difference of spamicity from 1.0
Packit e8bc57
#
Packit e8bc57
#	    r - runtype
Packit e8bc57
#	        w - word count
Packit e8bc57
#	        m - message count
Packit e8bc57
#
Packit e8bc57
#	    u - username - this will either be the login from getlogin(),
Packit e8bc57
#			   if that is empty, the pw_name obtained from
Packit e8bc57
#			   the password database, or the user id
Packit e8bc57
#			   prefixed by #, for instance, #1003
Packit e8bc57
#
Packit e8bc57
#	    v - version
Packit e8bc57
#
Packit e8bc57
#    customizable messages:
Packit e8bc57
#
Packit e8bc57
#	header_format - the "X-Bogosity" line that '-p' adds to
Packit e8bc57
#		the message header and '-v' outputs.
Packit e8bc57
#	terse_format - an abbreviated form of header_format;
Packit e8bc57
#		selected by command line option '-t'
Packit e8bc57
#	log_header_format - written to syslog by '-u' option
Packit e8bc57
#		when classifying messages.
Packit e8bc57
#	log_update_format - written to syslog by '-u' option
Packit e8bc57
#		when registering messages.
Packit e8bc57
#
Packit e8bc57
#
Packit e8bc57
#header_format = %h: %c, tests=bogofilter, spamicity=%p, version=%v
Packit e8bc57
#terse_format = %1.1c %f
Packit e8bc57
#log_header_format = %h: %c, spamicity=%p, version=%v
Packit e8bc57
#log_update_format = register-%r, %w words, %m messages
Packit e8bc57
##log_header_format = %h: %c, spamicity=%f, ipaddr=%A, queueID=%Q, msgID=%I, version=%v
Packit e8bc57
Packit e8bc57
#### TERSE
Packit e8bc57
#
Packit e8bc57
#	if enabled, format the X-Bogosity using the 'terse_format' specificaton.
Packit e8bc57
#
Packit e8bc57
#terse=no			# default
Packit e8bc57
##terse=yes			# (alternate)
Packit e8bc57
Packit e8bc57
Packit e8bc57
########### Tokenizer Settings ######################################
Packit e8bc57
Packit e8bc57
#### BLOCK ON SUBNETS
Packit e8bc57
#
Packit e8bc57
#	convert IPADDRs into a special token, url:1.2.3.4,
Packit e8bc57
#	and also return url:1.2.3, url:1.2, and url:1
Packit e8bc57
#	to allow identifying spammers by ip address / subnets.
Packit e8bc57
#
Packit e8bc57
#block_on_subnets=no
Packit e8bc57
Packit e8bc57
#### CHARSET handling
Packit e8bc57
#
Packit e8bc57
#	specify default charset
Packit e8bc57
#
Packit e8bc57
#charset_default=iso-8859-1		# default
Packit e8bc57
#charset_default=us-ascii		# (alternate)
Packit e8bc57
##charset_default=cp866			# for Russian
Packit e8bc57
Packit e8bc57
#### REPLACE_NONASCII_CHARACTERS
Packit e8bc57
#
Packit e8bc57
#	replace non-7bit chars with '?'
Packit e8bc57
#
Packit e8bc57
#replace_nonascii_characters=N		# default
Packit e8bc57
##replace_nonascii_characters=Y		# (alternate)
Packit e8bc57
Packit e8bc57
#### UNICODE handling
Packit e8bc57
#
Packit e8bc57
#	boolean indicating whether raw storage (no) or unicode (yes)
Packit e8bc57
#	is the default encoding for the wordlist
Packit e8bc57
#
Packit e8bc57
#unicode=yes				# default
Packit e8bc57
##unicode=no				# (alternate)
Packit e8bc57
Packit e8bc57
#### lexer parameters
Packit e8bc57
#
Packit e8bc57
#	minimum and maximum lengths for single tokens
Packit e8bc57
#
Packit e8bc57
#min-token-len=3			# default
Packit e8bc57
#max-token-len=30			# default
Packit e8bc57
#
Packit e8bc57
#	count and length for multi-word tokens
Packit e8bc57
#	Note: if length not specified, defaults to
Packit e8bc57
#	      multi-token-count * max-token-len (approx)
Packit e8bc57
#
Packit e8bc57
#multi-token-count=1			# default
Packit e8bc57
#max-multi-token-len=0			# default
Packit e8bc57
Packit e8bc57
########### Classification Constants Settings #######################
Packit e8bc57
#
Packit e8bc57
# See man page for a more detailled description of the parameters.
Packit e8bc57
Packit e8bc57
#### MINIMUM DEVIATION
Packit e8bc57
#
Packit e8bc57
#	if token spamicity closer to EVEN_ODDS (0.5)
Packit e8bc57
#	than MIN_DEV, don't use the word in the
Packit e8bc57
#	spamicity calculation
Packit e8bc57
#
Packit e8bc57
#min_dev=0.375				# default
Packit e8bc57
Packit e8bc57
#### Robinson Constants
Packit e8bc57
#
Packit e8bc57
#	floating point values for
Packit e8bc57
#	Robinson S and X coefficients.
Packit e8bc57
#
Packit e8bc57
#robs=0.0178				# default
Packit e8bc57
#robx=0.52				# default
Packit e8bc57
Packit e8bc57
#### CUTOFF Values
Packit e8bc57
#
Packit e8bc57
#	both ham_cutoff and spam_cutoff are allowed.
Packit e8bc57
#	setting ham_cutoff to a non-zero value will
Packit e8bc57
#	enable tri-state results (Spam/Ham/Unsure).
Packit e8bc57
#
Packit e8bc57
#ham_cutoff = 0.45			# default
Packit e8bc57
#spam_cutoff= 0.99			# default
Packit e8bc57
#
Packit e8bc57
#	for two-state classification:
Packit e8bc57
#
Packit e8bc57
##ham_cutoff  = 0.00			# default
Packit e8bc57
##spam_cutoff = 0.99			# default
Packit e8bc57
Packit e8bc57
#### Effective Size Factor Values
Packit e8bc57
#
Packit e8bc57
#ns_esf = 1.000				# default
Packit e8bc57
#sp_esf = 1.000				# default
Packit e8bc57
Packit e8bc57
#### Auto-update threshold
Packit e8bc57
#
Packit e8bc57
#	Skip autoupdating if the spamicity is within this value
Packit e8bc57
#	of 0.000000 (surely ham) or 1.000000 (surely spam).
Packit e8bc57
#
Packit e8bc57
## thresh_update=0.01			# (optional)
Packit e8bc57
Packit e8bc57
#### token count parameters
Packit e8bc57
#
Packit e8bc57
#	coerce the number of tokens used to score a message
Packit e8bc57
#	Note: zero means no coercing
Packit e8bc57
#
Packit e8bc57
##token_count=0				# default
Packit e8bc57
##token_count_min=0			# default
Packit e8bc57
##token_count_max=0			# default