#---------------------------------------------------------------------# This file is part of iRedMail, which is an open source mail server# solution for Red Hat(R) Enterprise Linux, CentOS, Debian and Ubuntu.## iRedMail is free software: you can redistribute it and/or modify# it under the terms of the GNU General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.## iRedMail is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.## You should have received a copy of the GNU General Public License# along with iRedMail. If not, see <http://www.gnu.org/licenses/>.#---------------------------------------------------------------------## Sample SpamAssassin rules. It should be localted at:# /etc/mail/spamassassin/local.cf## Shipped within iRedMail project:# * http://iRedMail.googlecode.com/## See also:# $ man Mail::SpamAssassin::Conf## These two lines will not affect due to Amavisd use its# own variables setting in /etc/amavisd.conf.required_score5.0rewrite_headersubject[SPAM]report_safe0lock_methodflock# Bayesian support# References:# - http://wiki.apache.org/spamassassin/BayesInSpamAssassin# - http://svn.apache.org/repos/asf/spamassassin/branches/3.3/sql/README.bayes# Addition plugin for Roundcube webmail to call sa-learn# - http://www.tehinterweb.co.uk/roundcube/#pimarkasjunk2#use_bayes1bayes_auto_learn1bayes_auto_expire1# Store bayesian data in MySQL#bayes_store_module Mail::SpamAssassin::BayesStore::MySQL#bayes_sql_dsn DBI:mysql:database:sql_server:sql_port# Store bayesian data in MySQL#bayes_store_module Mail::SpamAssassin::BayesStore::PgSQL#bayes_sql_dsn DBI:Pg:database:sql_server:sql_port##bayes_sql_username db_username#bayes_sql_password db_password## Override the username used for storing# data in the database. This could be used to group users together to# share bayesian filter data. You can also use this config option to# trick sa-learn to learn data as a specific user.##bayes_sql_override_username vmailscoreALL_TRUSTED-10.000#skip_rbl_checks 1scoreURIBL_AB_SURBL00.330600.3812scoreURIBL_JP_SURBL00.336000.4087scoreURIBL_OB_SURBL00.261700.3008scoreURIBL_PH_SURBL00.224000.2800scoreURIBL_SBL00.109400.1639scoreURIBL_SC_SURBL00.360000.4498scoreURIBL_WS_SURBL00.153300.2140# For Mail::SPFspf_timeout5# For SpamAssassin-3.2.x. Reference:# http://spamassassin.apache.org/full/3.2.x/doc/Mail_SpamAssassin_Plugin_SPF.html#do_not_use_mail_spf 0#do_not_use_mail_spf_query 1#ignore_received_spf_header 1scoreSPF_PASS-10.000scoreSPF_FAIL5.00# Trusted networks. Examples:# 192.168/16 # all in 192.168.*.*# 212.17.35.15 # just that host# !10.0.1.5 10.0.1/24 # all in 10.0.1.* but not 10.0.1.5# DEAD:BEEF::/32 # all in that ipv6 prefix# Local host (127.0.0.1) will automatically be trusted implicitly.#trusted_networks 192.168/16# Whitelist from SPF.#whitelist_from_spf joe@example.com fred@example.comwhitelist_from_spf*@gmail.comwhitelist_from_spf*@126.com*@163.comwhitelist_from_spf*@sina.com*@sohu.com*@tom.comwhitelist_from_spf*@live.com*@hotmail.com# Whitelist from DKIM.whitelist_from_dkim*@gmail.com*@paypal.com# Whitelist domains.# Reference: http://wiki.apache.org/spamassassin/ManualWhitelist#whitelist_from *@gmail.com# Locales.ok_localesall