spamassassin/local.cf

Tue, 29 Mar 2011 20:04:34 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 29 Mar 2011 20:04:34 +0200
changeset 334
4a34d7a82eab
parent 192
62106debeb75
permissions
-rw-r--r--

Rework package yet again, correcting and introducing new buildconf logic:
Conditionally disable bootstrap stage comparison correctly, correct
english grammar, better find system as(1) and ld(1), indotruce detailed
optimization option messages, more completely guess cpu types, allow
profiled bootstrapping without a preinstalled GCC because many other
compilers have long since implemented 64-bit arithmetic, instruct make
to build sequentially (not in sparallel) when building a profiled
bootstrap as GCC online documents recommend, and generally improve
comment blocks.

The single most important correction in this changeset relates to the
GCC changed optimization policy since at least GCC 4.5, in which -march
is always passed and not always correctly guessed. In the case of this
package, allowing GCC to guess the architecture leads to wild build
errors at various subcomponents (zlib, libgcc, libiberty...) and
bootstrap stages. It seems quite platform specific, and the safest
approach to correcting this seems to be explicitly always specifying the
-march argument when bootstrapping GCC. Because the best choice 'native'
is not available when bootstrapping using a foreign (non GCC) compiler,
a guess is made according to rpmmacros l_platform in that case.

It is questionable as to whether these recent optimization changes
on the part of GCC or this package are compatible with each other,
or if either are complete or correct at all. At least applying these
corrections allows this package to build again in most cases test.

michael@191 1 ##
michael@191 2 ## @l_prefix@/etc/spamassassin/local.cf -- site-wide defaults for SpamAssassin
michael@191 3 ## (see 'perldoc Mail::SpamAssassin::Conf' for details of what can be tweaked)
michael@191 4 ##
michael@191 5
michael@191 6 # configuration branding
michael@191 7 version_tag openpkg
michael@191 8
michael@191 9 # required score for mail to be considered as spam
michael@191 10 required_score 5.0
michael@191 11
michael@191 12 # whitelist and blacklist addresses
michael@191 13 #whitelist_from *@example.com
michael@191 14 #whitelist_to *@example.com
michael@191 15
michael@192 16 # use a terse header instead of X-Spam-Report
michael@192 17 remove_header all Report
michael@192 18
michael@192 19 # encapsulate spam in an attachment
michael@192 20 report_safe 0
michael@192 21
michael@192 22 # enable the Bayes system
michael@192 23 use_bayes 1
michael@192 24
michael@192 25 # enable Bayes autolearning
michael@192 26 bayes_auto_learn 1
michael@192 27
michael@192 28 # enable or disable network checks
michael@192 29 #skip_rbl_checks 1
michael@192 30 #use_razor2 1
michael@192 31 #use_dcc 1
michael@192 32 #use_pyzor 1
michael@192 33
michael@212 34 # DCC/Razor/Pyzor parameters
michael@212 35 #dcc_body_max 999999
michael@212 36 #dcc_fuz1_max 999999
michael@212 37 #dcc_fuz2_max 999999
michael@212 38 #dcc_timeout 8
michael@212 39 #dcc_home <homepath>
michael@212 40 #dcc_dccifd_path <socketpath>
michael@212 41 #dcc_path <clientpath>
michael@212 42 #dcc_options <[0-9A-Za-z ,._/-]>
michael@212 43 #dccifd_options <[0-9A-Za-z ,._/-]>
michael@212 44 #razor_timeout 5
michael@212 45 #razor_config <filename>
michael@212 46 #pyzor_max 5
michael@212 47 #pyzor_timeout 3.5
michael@212 48 #pyzor_options --homedir @l_prefix@/etc/spamassassin
michael@212 49 #pyzor_path @l_prefix@/bin/pyzor
michael@212 50
michael@192 51 # mail using languages used in these country codes will not
michael@192 52 # be marked as being possibly spam in a foreign language.
michael@192 53 #ok_languages all
michael@192 54
michael@192 55 # mail using locales used in these country codes will not
michael@192 56 # be marked as being possibly spam in a foreign language.
michael@192 57 #ok_locales all
michael@192 58

mercurial