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 <guent...@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...@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; > }}} > >