On 07/28/2012 12:28 AM, rajeshrudramani wrote:

Dear Eric,


                      Thanks for your reply. The syntax (X-Spam-Report:*
  3.4 FH_DATE_PAST_20XX) given in the previous mail will reduce the Spam
count or  white listed domain come with out spam tag.

This was an errant/buggy filter. Assigning it a value of 0.0 effectively disables it. I expect that sa-update (or upgrading to 3.3.2) will fix this properly.

Is there any way
to blocklist or whitelist the content based mails(Subject, Etc..).If it
is possible means, please update the format.

I don't know about this off hand. I do not think though that this is the best way to tailor spamasassin. You would achieve better results by using the bayes database for this sort of thing.



As per the previous mail conversation, i have updated local.cf
<http://local.cf> file below:

# These values can be overridden by editing
~/.spamassassin/user_prefs.cf <http://user_prefs.cf>
# (see spamassassin(1) for details)
# These should be safe assumptions and allow for simple visual sifting
# without risking lost emails.

ok_locales all
skip_rbl_checks 1

required_score 6
report_safe 0
rewrite_header Subject ***SPAM***

use_pyzor 1
#use_razor2 1
#razor_config /etc/mail/spamassassin/.razor/razor-agent.conf

use_auto_whitelist 1

use_bayes 1
use_bayes_rules 1
bayes_auto_learn 1

# DO NOT EDIT LINES ABOVE THIS *****************************************
:
# DO NOT EDIT LINES ABOVE THIS *****************************************

whitelist_from *blackberry.com <http://blackberry.com>
whitelist_from *.blackberry.com <http://blackberry.com>
whitelist_from *.srs.*.*.blackberry.com <http://blackberry.com>
def_whitelist_from_rcvd [email protected]
<mailto:[email protected]>
def_whitelist_from_rcvd *.srs.bis7.eu.blackberry.com
<http://srs.bis7.eu.blackberry.com>
whitelist_from *@heromotors.com <http://heromotors.com>


Please update ASAP.

Regards,
Rajesh

Here is what I use in my local.cf file. I hope it's helpful.
ok_locales all
skip_rbl_checks 1

required_score 3.7
report_safe 0
rewrite_header Subject [SPAM]

use_pyzor 1

use_auto_whitelist 1

bayes_path /home/vpopmail/.spamassassin/bayes
use_bayes 1
use_bayes_rules 1
bayes_auto_learn 1
bayes_auto_learn_threshold_spam 5.5
bayes_auto_learn_threshold_nonspam 0.1
bayes_auto_expire 0

loadplugin Mail::SpamAssassin::Plugin::URIDNSBL
trusted_networks 192.168/16

# temporary fix for this rule
score   FH_DATE_PAST_20XX       0.0

# adjusting these scores gives bayes more weight
# commented values are the defaults
# score BAYES_00 0 0 -2.312 -2.599
# score BAYES_05 0 0 -1.110 -1.110
# score BAYES_20 0 0 -0.740 -0.740
# score BAYES_40 0 0 -0.185 -0.185
# score BAYES_50 0 0 0.001 0.001
# score BAYES_60 0 0 1.0 1.0
# score BAYES_80 0 0 2.0 2.0
# score BAYES_95 0 0 3.0 3.0
# score BAYES_99 0 0 3.5 3.5

score BAYES_00 0 0 -2.612 -2.899
score BAYES_05 0 0 -1.110 -1.110
score BAYES_20 0 0 -0.740 -0.740
score BAYES_40 0 0 -0.185 -0.185
score BAYES_50 0 0 0.001 0.001
score BAYES_60 0 0 1.5 1.5
score BAYES_80 0 0 3.0 3.0
score BAYES_95 0 0 4.0 4.0
score BAYES_99 0 0 5.1 5.1


--
-Eric 'shubes'




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to