You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Tux Techie <tu...@gmail.com> on 2010/04/22 17:45:59 UTC

SA-3.2 need help

 hi,
>
> I'm new to linux and Need help in configuring spamassassin on my mail
> server,I'm using spamassassin-3.2.4-1.el4.1 on CentOS4 with
> sendmail-8.13.1-3.3.el4
>
> This is my local.cf
>
>
>
> # This is the right place to customize your installation of SpamAssassin.
> #
> # See 'perldoc Mail::SpamAssassin::Conf' for details of what can be
> # tweaked.
> #
> # Only a small subset of options are listed below
> #
> ###########################################################################
> #   Add *****SPAM***** to the Subject header of spam e-mails
> #
> rewrite_header Subject *****SPAM*****
>
> #   Save spam messages as a message/rfc822 MIME attachment instead of
> #   modifying the original message (0: off, 2: use text/plain instead)
> #
> report_safe 0
>
> #   Set which networks or hosts are considered 'trusted' by your mail
> #   server (i.e. not spammers)
> #
> #trusted_networks 132.
> trusted_networks 132.
> #   Set file-locking method (flock is not safe over NFS, but is faster)
> #
> #lock_method flock
>
> #   Set the threshold at which a message is considered spam (default: 5.0)
> #
> required_score 6.0
> #required_score 5.0
>
> #   Use Bayesian classifier (default: 1)
> #
> use_bayes 1
>
> #   Bayesian classifier auto-learning (default: 1)
> #
> bayes_auto_learn 1
> # Enable or disable network checks
> skip_rbl_checks 0
> use_razor2              1
> use_dcc                 1
> use_pyzor               1
> # Mail using languages used in these country codes will not be marked
> # as being possibly spam in a foreign language.
> ok_languages            all
> # Mail using locales used in these country codes will not be marked
> # as being possibly spam in a foreign language.
> ok_locales              all
> #   Set headers which may provide inappropriate cues to the Bayesian
> #   classifier
> #
> bayes_ignore_header X-Bogosity
> bayes_ignore_header X-Spam-Flag
> bayes_ignore_header X-Spam-Status
>
> #
> # New Spam Settings
> urirhssub URLBL_RBLJP  url.rbl.jp.      A   2
> body URLBL_RBLJP eval:check_uridnsbl('URLBL_RBLJP')
> describe URLBL_RBLJP Has URI in url.rbl.jp
> tflags    URLBL_RBLJP  net
> score URLBL_RBLJP 2.0
> uridnsbl        URLBL_IP_RBLJP    url.rbl.jp.       TXT
> body URLBL_IP_RBLJP eval:check_uridnsbl('URLBL_IP_RBLJP')
> describe URLBL_IP_RBLJP Has IP URL in url.rbl.jp
> tflags          URLBL_IP_RBLJP    net
> score URLBL_IP_RBLJP 2.0
> header RCVD_IN_ALL_RBL_JP eval:check_rbl_txt('rbl.jp', 'all.rbl.jp.')
> describe RCVD_IN_ALL_RBL_JP Received via a relay in all.rbl.jp
> tflags RCVD_IN_ALL_RBL_JP   net
> score RCVD_IN_ALL_RBL_JP 1.5
>
> # the following config will only detect URLs which use hostnames urirhssub
> URLBL_RBLJP url.rbl.jp. A 2
> #body URLBL_RBLJP eval:check_uridnsbl('URLBL_RBLJP')
> #describe URLBL_RBLJP Has URI in url.rbl.jp
> tflags URLBL_RBLJP net
> score URLBL_RBLJP 4.0
> # the following config will only detect URLs which use IP addresses
> uridnsbl URLBL_IP_RBLJP url.rbl.jp. TXT
> #body URLBL_IP_RBLJP eval:check_uridnsbl('URLBL_IP_RBLJP')
> #describe URLBL_IP_RBLJP Has IP URL in url.rbl.jp
> tflags URLBL_IP_RBLJP net
> score URLBL_IP_RBLJP 4.0
> uridnsbl_skip_domain livedoor.com reset.jp asahi-net.or.jp hi-ho.ne.jp
> 2ch.net hatena.ne.jp
> uridnsbl_skip_domain mixi.jp yahoo.co.jp
> header __RCVD_IN_JMF
> eval:check_rbl('JMF-lastexternal','hostkarma.junkemailfilter.com.')
> describe __RCVD_IN_JMF Sender listed in JunkEmailFilter
> tflags __RCVD_IN_JMF net
> header RCVD_IN_JMF_W eval:check_rbl_sub('JMF-lastexternal', '127.0.0.1')
> describe RCVD_IN_JMF_W Sender listed in JMF-WHITE
> tflags RCVD_IN_JMF_W net nice
> score RCVD_IN_JMF_W -5
> header RCVD_IN_JMF_BL eval:check_rbl_sub('JMF-lastexternal', '127.0.0.2')
> describe RCVD_IN_JMF_BL Sender listed in JMF-BLACK
> tflags RCVD_IN_JMF_BL net
> score RCVD_IN_JMF_BL 3.0
> header RCVD_IN_JMF_BR eval:check_rbl_sub('JMF-lastexternal', '127.0.0.4')
> describe RCVD_IN_JMF_BR Sender listed in JMF-BROWN
> tflags RCVD_IN_JMF_BR net
> score RCVD_IN_JMF_BR 1.0
> #############TEST RULES
> header LOCAL_DEMONSTRATION_SUBJECT      Subject =~ /\b%\b/i
> score LOCAL_DEMONSTRATION_SUBJECT       0.1
>
> #   Set headers which may provide inappropriate cues to the Bayesian
> #   classifier
> #
> bayes_ignore_header X-Bogosity
> bayes_ignore_header X-Spam-Flag
> bayes_ignore_header X-Spam-Status
>
> #   Some shortcircuiting, if the plugin is enabled
> #
> ifplugin Mail::SpamAssassin::Plugin::Shortcircuit
> #
> #   default: strongly-whitelisted mails are *really* whitelisted now, if
> the
> #   shortcircuiting plugin is active, causing early exit to save CPU load.
> #   Uncomment to turn this on
> #
> shortcircuit USER_IN_WHITELIST       on
> shortcircuit USER_IN_DEF_WHITELIST   on
> shortcircuit USER_IN_ALL_SPAM_TO     on
> shortcircuit SUBJECT_IN_WHITELIST    on
> #   the opposite; blacklisted mails can also save CPU
> #
> shortcircuit USER_IN_BLACKLIST       on
> shortcircuit USER_IN_BLACKLIST_TO    on
> shortcircuit SUBJECT_IN_BLACKLIST    on
> #   if you have taken the time to correctly specify your
> "trusted_networks",
> #   this is another good way to save CPU
> #
> shortcircuit ALL_TRUSTED             on
> #   and a well-trained bayes DB can save running rules, too
> #
> shortcircuit BAYES_99                spam
> shortcircuit BAYES_00                ham
> endif # Mail::SpamAssassin::Plugin::Shortcircuit
> score FH_DATE_PAST_20XX 0
>
>
> ____________________________________________________________________________________________________________________________
>
> these are default rules which i fetched from sa-update
>
> 10_default_prefs.cf    20_head_tests.cf  20_uri_tests.cf  25_domainkeys.cf
> 30_text_de.cf     60_shortcircuit.cf       sa-update.cron
> 20_advance_fee.cf      20_html_tests.cf  20_vbounce.cf    25_hashcash.cf
> 30_text_fr.cf     60_whitelist.cf          sa-update-pubkey.txt
> 20_body_tests.cf       20_imageinfo.cf   23_bayes.cf      25_pyzor.cf
> 30_text_it.cf     60_whitelist_dk.cf       user_prefs.template
> 20_compensate.cf       20_meta_tests.cf  25_accessdb.cf   25_razor2.cf
> 30_text_nl.cf     60_whitelist_dkim.cf
> 20_dnsbl_tests.cf      20_net_tests.cf   25_antivirus.cf  25_replace.cf
> 30_text_pl.cf     60_whitelist_spf.cf
> 20_drugs.cf            20_phrases.cf     25_asn.cf        25_spf.cf
> 30_text_pt_br.cf  60_whitelist_subject.cf
> 20_dynrdns.cf          20_porn.cf        25_dcc.cf        25_textcat.cf
> 50_scores.cf      72_active.cf
> 20_fake_helo_tests.cf  20_ratware.cf     25_dkim.cf       25_uribl.cf
> 60_awl.cf         languages
>
> This is my /etc/procmailrc
>
> DROPPRIVS=yes
> :0fw
> | /usr/bin/spamc
> :0
> * ^X-Spam-Status: Yes
> /dev/null
>
>
> The main problem which i'm facing is false positives SA is marking my
> geniune mails as spams from gmail.com and yahoo.co.in accounts and many of
> spams are not caught by SA,
>
> Please help me in tuning SA
>
> Thanks,
> Ansh
>

Re: SA-3.2 need help

Posted by Bowie Bailey <Bo...@BUC.com>.
Tux Techie wrote:
>
>
>     hi,
>      
>     I'm new to linux and Need help in configuring spamassassin on my
>     mail server,I'm using spamassassin-3.2.4-1.el4.1 on CentOS4 with
>     sendmail-8.13.1-3.3.el4
>      
>     This is my local.cf <http://local.cf/>
>

>     bayes_ignore_header X-Spam-Flag
>     bayes_ignore_header X-Spam-Status
>

These will be dealt with automatically, no need to ignore them.

>     bayes_ignore_header X-Spam-Flag
>     bayes_ignore_header X-Spam-Status
>

Still no need to ignore them...  :)

You have quite a bit of stuff in your local.cf.  Did you add all of this
yourself, or did you inherit the current setup?

>     This is my /etc/procmailrc
>      
>     DROPPRIVS=yes
>     :0fw
>     | /usr/bin/spamc
>     :0
>     * ^X-Spam-Status: Yes
>     /dev/null
>

Don't know that I would delete all spam.  You would probably be better
off matching on the "X-Spam-Level" header and dropping based on a higher
score.  You can deliver the rest of the spam either to the inbox (you
already put a marker on the subject line), or to a junkmail folder. 
I'll let a procmail guru supply the recipe for that.

>      The main problem which i'm facing is false positives SA is
>     marking my geniune mails as spams from gmail.com
>     <http://gmail.com/> and yahoo.co.in <http://yahoo.co.in/> accounts
>     and many of spams are not caught by SA,
>      
>     Please help me in tuning SA
>

Post an example or two (with full headers) on www.pastebin.com and give
us the links.  Once we can see what rules SA is hitting on (and not
hitting on), we may be able to give you some suggestions.

-- 
Bowie

Re: SA-3.2 need help

Posted by Bowie Bailey <Bo...@BUC.com>.
Anshul Chauhan wrote:
>
> This rule is in my /etc/mail/spamassassin/local.cf <http://local.cf>
> as FH_DATE_PAST_20XX 0 and in
> /var/lib/spmassassin//3.002004/updates_spamassassin_org  as #score
> FH_DATE_PAST_20XX 2.075 3.384 3.554 3.188 # n=2 i've commented the
> line in /var/lib/spamassassin.
>
> How can i set spamassassin as to not check my local network or a group
> of ip's for not checking for spamming, if there is a way.
>
>   i've put a HASH in this also in my
> /usr/share/spamassassin/50_scores.cf <http://50_scores.cf>
> #score DNS_FROM_OPENWHOIS 0 2.431 0 1.130 # n=0 n=2 its not available
> in /var/lib/spamassassin/3.002004/updates_spamassassin_org.
>
> but here i'm a bit confused bcoz these same rules exists in
> /var/lib/spamassassin/3.002004/updates_spamassassin_org and
> /usr/share/spamassassin/ and so which rules i should edit ????

You should only edit the files in /etc/mail/spamassassin (or whichever
directory your system is using for the local rules).

/var/lib/spamassassin/3.002004 is used to store updated rules from
sa-update.  It will be used rather than the rules in
/usr/share/spamassassin (original rules from the distribution) if it
exists.  If you edit these files, your changes will be lost the next
time you update your rules via sa-update.

Rather than editing the files directly, make your changes in
/etc/mail/spamassassin/local.cf (or make your own .cf file in that
directory).  Anything there will override the rules in
/usr/share/spamassassin and /var/lib/spamassassin.  To get rid of those
two rules, put these lines in your local.cf file:

score DNS_FROM_OPENWHOIS 0
score FH_DATE_PAST_20XX 0

(setting the score to 0 will disable the rule)

-- 
Bowie

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?


Re: SA-3.2 need help

Posted by Anshul Chauhan <ch...@gmail.com>.
This rule is in my /etc/mail/spamassassin/local.cf as FH_DATE_PAST_20XX 0
and in /var/lib/spmassassin//3.002004/updates_spamassassin_org  as #score
FH_DATE_PAST_20XX 2.075 3.384 3.554 3.188 # n=2 i've commented the line in
/var/lib/spamassassin.

How can i set spamassassin as to not check my local network or a group of
ip's for not checking for spamming, if there is a way.

  i've put a HASH in this also in my /usr/share/spamassassin/50_scores.cf
#score DNS_FROM_OPENWHOIS 0 2.431 0 1.130 # n=0 n=2 its not available in
/var/lib/spamassassin/3.002004/updates_spamassassin_org.

but here i'm a bit confused bcoz these same rules exists in
/var/lib/spamassassin/3.002004/updates_spamassassin_org and
/usr/share/spamassassin/ and so which rules i should edit ????


This is the output of sa-update-D

# sa-update -D
[2941] dbg: logger: adding facilities: all
[2941] dbg: logger: logging level is DBG
[2941] dbg: generic: SpamAssassin version 3.2.4
[2941] dbg: config: score set 0 chosen.
[2941] dbg: dns: is Net::DNS::Resolver available? yes
[2941] dbg: dns: Net::DNS version: 0.63
[2941] dbg: generic: sa-update version svn607589
[2941] dbg: generic: using update directory: /var/lib/spamassassin/3.002004
[2941] dbg: diag: perl platform: 5.008008 linux
[2941] dbg: diag: module installed: Digest::SHA1, version 2.07
[2941] dbg: diag: module installed: HTML::Parser, version 3.59
[2941] dbg: diag: module installed: Net::DNS, version 0.63
[2941] dbg: diag: module installed: MIME::Base64, version 3.07
[2941] dbg: diag: module installed: DB_File, version 1.814
[2941] dbg: diag: module installed: Net::SMTP, version 2.29
[2941] dbg: diag: module installed: Mail::SPF, version v2.006
[2941] dbg: diag: module installed: Mail::SPF::Query, version 1.999001
[2941] dbg: diag: module installed: IP::Country::Fast, version 604.001
[2941] dbg: diag: module installed: Razor2::Client::Agent, version 2.84
[2941] dbg: diag: module installed: Net::Ident, version 1.20
[2941] dbg: diag: module installed: IO::Socket::INET6, version 2.56
[2941] dbg: diag: module installed: IO::Socket::SSL, version 1.17
[2941] dbg: diag: module installed: Compress::Zlib, version 1.42
[2941] dbg: diag: module installed: Time::HiRes, version 1.9721
[2941] dbg: diag: module not installed: Mail::DomainKeys ('require' failed)
[2941] dbg: diag: module installed: Mail::DKIM, version 0.32
[2941] dbg: diag: module installed: DBI, version 1.607
[2941] dbg: diag: module installed: Getopt::Long, version 2.35
[2941] dbg: diag: module installed: LWP::UserAgent, version 2.033
[2941] dbg: diag: module installed: HTTP::Date, version 1.47
[2941] dbg: diag: module installed: Archive::Tar, version 1.40
[2941] dbg: diag: module installed: IO::Zlib, version 1.09
[2941] dbg: diag: module installed: Encode::Detect, version 1.01
[2941] dbg: gpg: Searching for 'gpg'
[2941] dbg: util: current PATH is:
/usr/lib/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin
[2941] dbg: util: executable for gpg was found at /usr/bin/gpg
[2941] dbg: gpg: found /usr/bin/gpg
[2941] dbg: gpg: release trusted key id list:
5E541DC959CB8BAC7C78DFDC4056A61A5244EC45
26C900A46DD40CD5AD24F6D7DEE01987265FA05B
0C2B1D7175B852C64B3CDC716C55397824F434CE
[2941] dbg: channel: attempting channel updates.spamassassin.org
[2941] dbg: channel: update directory
/var/lib/spamassassin/3.002004/updates_spamassassin_org
[2941] dbg: channel: channel cf file /var/lib/spamassassin/3.002004/
updates_spamassassin_org.cf
[2941] dbg: channel: channel pre file
/var/lib/spamassassin/3.002004/updates_spamassassin_org.pre
[2941] dbg: channel: metadata version = 895075
[2941] dbg: dns: 4.2.3.updates.spamassassin.org => 895075, parsed as 895075
[2941] dbg: channel: current version is 895075, new version is 895075,
skipping channel
[2941] dbg: diag: updates complete, exiting with code 1


this shows the its updating
/var/lib/spamassassin/3.002004/updates_spamassassin_org rules and not
/usr/share/spamassassin rules.








Warm Regards,
Anshul Chauhan
"Dream is not what you see while sleep, it's the thing that does not let you
sleep."


2010/4/23 Karsten Bräckelmann <gu...@rudersport.de>

> On Fri, 2010-04-23 at 11:16 +0530, Tux Techie wrote:
> > I've inserted  "score FH_DATE_PAST_20XX 0" without the quotes to the
> > end of your local.cf file to disable the rule for 2010 bug.
>
> According to the timestamps the samples are older than your mail.
> Assuming you restarted spamd, these hits should now be gone and
> drastically lower your FP rate.
>
> > I've googled all the stuff in my local.cf its not inherited from any
> > setup.
>
> Err?  The question was, if you added all that stuff to your local.cf, or
> if someone else who *was* in charge of the mail server added that
> earlier.
>
>
> > Below is an example of a geniune mail from outside domain marked as
> > ham for a user and spam for other user
> > http://pastebin.com/33WGrJ4b
>
> Nope, it is not. It is not a mail, as we requested. That's log messages.
>
> At least we got the rules hit. And there's the second major issue. All
> your samples hit DNS_FROM_OPENWHOIS -- which is DEAD for almost 10
> months. See bug 6157 [1].
>
> BOTH your problems would NOT have come up, if you would run sa-update at
> least on a monthly basis.
>
> May I strongly suggest to run sa-update? It will fix a bunch of issues
> magically, after restarting your SA daemon.
>
>
> Hmm, in your previous post you said something about sa-update, and then
> went to list all stock rule-sets, plus some other files that are more
> likely to be in /etc/mail/spamassassin...
>
> > these are default rules which i fetched from sa-update
>
> What do you mean, "fetched"? Where are all these *.cf files you listed
> on your system? You did not copy them into /etc/mail/spamassassin, did
> you?
>
>  guenther
>
>
> [1] https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6157
>
> --
> char *t="\10pse\0r\0dtu\0.@ghno
> \x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4";
> main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8?
> c<<=1:
> (c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0;
> }}}
>
>

Re: SA-3.2 need help

Posted by Karsten Bräckelmann <gu...@rudersport.de>.
On Fri, 2010-04-23 at 11:16 +0530, Tux Techie wrote:
> I've inserted  "score FH_DATE_PAST_20XX 0" without the quotes to the
> end of your local.cf file to disable the rule for 2010 bug.

According to the timestamps the samples are older than your mail.
Assuming you restarted spamd, these hits should now be gone and
drastically lower your FP rate.

> I've googled all the stuff in my local.cf its not inherited from any
> setup. 

Err?  The question was, if you added all that stuff to your local.cf, or
if someone else who *was* in charge of the mail server added that
earlier.


> Below is an example of a geniune mail from outside domain marked as
> ham for a user and spam for other user
> http://pastebin.com/33WGrJ4b

Nope, it is not. It is not a mail, as we requested. That's log messages.

At least we got the rules hit. And there's the second major issue. All
your samples hit DNS_FROM_OPENWHOIS -- which is DEAD for almost 10
months. See bug 6157 [1].

BOTH your problems would NOT have come up, if you would run sa-update at
least on a monthly basis.

May I strongly suggest to run sa-update? It will fix a bunch of issues
magically, after restarting your SA daemon.


Hmm, in your previous post you said something about sa-update, and then
went to list all stock rule-sets, plus some other files that are more
likely to be in /etc/mail/spamassassin...

> these are default rules which i fetched from sa-update

What do you mean, "fetched"? Where are all these *.cf files you listed
on your system? You did not copy them into /etc/mail/spamassassin, did
you?

  guenther


[1] https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6157

-- 
char *t="\10pse\0r\0dtu\0.@ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4";
main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1:
(c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}


Re: SA-3.2 need help

Posted by Bowie Bailey <Bo...@BUC.com>.
Tux Techie wrote:
>  
>
> I've inserted  "score FH_DATE_PAST_20XX 0" without the quotes to the
> end of your local.cf <http://local.cf> file to disable the rule for
> 2010 bug.
>

You need to double-check this entry and then restart spamd since the
rule is still hitting on all of the examples you gave.  If it is still
hitting after that, then you need to make sure you are changing the
right file.

> Below is an example of a geniune mail from outside domain marked as
> ham for a user and spam for other user
>
> http://pastebin.com/33WGrJ4b
>

Differences are Bayes and AWL.  It is normal for these to differ between
users.

> Another example of a geniune yahoo.com <http://yahoo.com> mail marked
> as SPAM
>
> http://pastebin.com/VkJcj3XK
>
>
> Example of a mail from local network marked as SPAM
>
> http://pastebin.com/4FEMpc3G
>

Post some example headers so we can see what the scores are for each
rule (We can assume default scores, but you may have changed them in
local.cf, so it is best to look at the spam report header).  You can add
this to your local.cf if you want to see the report on ham as well as spam:

    add_header all Report _REPORT_

> I've entered my local lan series in trusted_networks in local.cf
> <http://local.cf> but still its catching my local mails as SPAMS.
>

All of your local mail should hit the ALL_TRUSTED rule.  If not, you
should re-check your trusted_network settings.  Adding your servers to
trusted_networks does not exempt them from spam checking, it just
exempts them from blacklist checks and such.  If a local user sends a
spammy message, it will still be caught (although the ALL_TRUSTED rule
gives a -1 to the score, to help prevent false positives from your own
network).

Take an example mail and run in through SA manually to see exactly what
is happening.

$ spamassassin -D rules < sample.msg

This will give lots of output, but most of it is easily understandable.

Keep in mind that you will get different results (particularly with
Bayes and AWL) depending on which user you are when you run the test.

> If you can please guide me to some docs or how to for configuring and
> tuning SA to give gud results.
>

The wiki is always a good starting point. 
http://wiki.apache.org/spamassassin/

-- 
Bowie

Re: SA-3.2 need help

Posted by Tux Techie <tu...@gmail.com>.
I've inserted  "score FH_DATE_PAST_20XX 0" without the quotes to the end of
your local.cf file to disable the rule for 2010 bug.


If i'm upgrading SA to 3.3.1, my mail processing is very slow and my server
load average is going up.


I've googled all the stuff in my local.cf its not inherited from any setup.


Below is an example of a geniune mail from outside domain marked as ham for
a user and spam for other user


http://pastebin.com/33WGrJ4b


Another example of a geniune yahoo.com mail marked as SPAM


http://pastebin.com/VkJcj3XK



Example of a mail from local network marked as SPAM


http://pastebin.com/4FEMpc3G


I've entered my local lan series in trusted_networks in local.cf but still
its catching my local mails as SPAMS.


If you can please guide me to some docs or how to for configuring and tuning
SA to give gud results.

Re: SA-3.2 need help

Posted by David Morton <mo...@dgrmm.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 4/22/10 10:45 AM, Tux Techie wrote:
>     I'm new to linux and Need help in configuring spamassassin on my
>     mail server,I'm using spamassassin-3.2.4-1.el4.1 on CentOS4 with

My first guess without seeing real samples would be that you are hitting
the 2010 bug: see http://spamassassin.apache.org/news.html

Spam and virus filters need to change with the evolving threat, and your
system is over two years old.  It's not surprising that it is failing.

- -- 
David Morton <mo...@dgrmm.net>

Morton Software & Design  http://www.dgrmm.net - Ruby on Rails
                                                 PHP Applications
Maia Mailguard http://www.maiamailguard.com    - Spam management
                                                 for mail servers
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iD8DBQFL0ILOUy30ODPkzl0RApWrAJwJgpW26k4yHD23QQMoUpYLvOXcQACeKFQY
12YNEQyNxGPvu7U1j3+e/yg=
=XznV
-----END PGP SIGNATURE-----

Re: SA-3.2 need help

Posted by Karsten Bräckelmann <gu...@rudersport.de>.
On Thu, 2010-04-22 at 21:15 +0530, Tux Techie wrote:
> I'm new to linux and Need help in configuring spamassassin on my mail
> server,I'm using spamassassin-3.2.4-1.el4.1 on CentOS4 with
> sendmail-8.13.1-3.3.el4
[ massive snip ]

> This is my /etc/procmailrc
>  
> DROPPRIVS=yes
> :0fw
> | /usr/bin/spamc
> :0
> * ^X-Spam-Status: Yes
> /dev/null 
>  
> The main problem which i'm facing is false positives SA is marking my
> geniune mails as spams from gmail.com and yahoo.co.in accounts and
> many of spams are not caught by SA,
>  
> Please help me in tuning SA

Sure. Blatantly obvious help first:  DO NOT DELIVER CLASSIFIED SPAM TO
THE GREAT BIT-BUCKET, if you are having issues with false positives.

After you have done that...

Please do provide samples. There is absolutely nothing we can tell you,
let alone help you, with your problem of *both* FPs and FNs, without
samples and seeing the rules triggered.

Raw messages, including the SA headers, as little munged as possible.
Feel free to mask email addresses, but don't invalidate Received headers
or IPs. Put them up on your own webspace somewhere, or use a pastebin,
and provide the link. Do not send any spam samples to the list.


-- 
char *t="\10pse\0r\0dtu\0.@ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4";
main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1:
(c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}