Sample SpamAssassin /etc/mail/spamassassin/ file

# Bayes database configuration
use_bayes                           1
bayes_store_module                  Mail::SpamAssassin::BayesStore::MySQL
#bayes_store_module                  Mail::SpamAssassin::BayesStore::PgSQL
bayes_sql_dsn                       DBI:mysql:maia
bayes_sql_username                  amavis
bayes_sql_password                  password
bayes_sql_override_username         amavis
bayes_auto_learn                    1
bayes_auto_learn_threshold_nonspam  -0.001
bayes_auto_learn_threshold_spam     10.0
bayes_use_hapaxes                   1
bayes_ignore_header                 ReSent-Date
bayes_ignore_header                 ReSent-From
bayes_ignore_header                 ReSent-Message-ID
bayes_ignore_header                 ReSent-Subject
bayes_ignore_header                 ReSent-To
bayes_ignore_header                 Resent-Date
bayes_ignore_header                 Resent-From
bayes_ignore_header                 Resent-Message-ID
bayes_ignore_header                 Resent-Subject
bayes_ignore_header                 Resent-To
bayes_ignore_header                 X-Received-From-IP
bayes_ignore_header                 X-Virus-Scanned
bayes_ignore_header                 X-Spam-Status
bayes_ignore_header                 X-Spam-Level
bayes_ignore_header                 X-Sender
bayes_ignore_header                 X-Mailer

# Auto-Whitelist configuration
auto_whitelist_factory              Mail::SpamAssassin::SQLBasedAddrList
user_awl_dsn                        DBI:mysql:maia
user_awl_sql_username               amavis
user_awl_sql_password               password

# Blackhole list options.
skip_rbl_checks                     0
rbl_timeout                         10
dns_available                       yes
trusted_networks                    aaa.bbb.ccc.ddd/ee  # See

# Vipul's Razor options.
use_razor2                          1
razor_timeout                       10

# Distributed Checksum Clearinghouse (DCC) options.
use_dcc                             1
dcc_timeout                         10
dcc_body_max                        999999
dcc_fuz1_max                        999999
dcc_fuz2_max                        999999
dcc_home                            /var/dcc
dcc_dccifd_path                     /var/dcc/dccifd
dcc_path                            /var/dcc/bin/dccproc

# Pyzor options.
use_pyzor                           1
pyzor_timeout                       10
pyzor_max                           5
pyzor_path                          /usr/bin/pyzor

# Break the X-Spam-Status header into multiple lines.
fold_headers                        1

# Encapsulate spam in an attachment.
report_safe                         0

# Mail using languages used in these country codes will not be marked
# as being possibly spam in a foreign language.
# - english
ok_languages                        en

# Mail using locales used in these country codes will not be marked
# as being possibly spam in a foreign language.
ok_locales                          en

# For VBounce ruleset
whitelist_bounce_relays             your.mail.server.hostname

Back to FAQ

Last modified 15 years ago Last modified on May 8, 2008, 7:59:07 AM