You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by "help@nantucket.net" <he...@nantucket.net> on 2004/09/15 22:21:04 UTC

Lost Newbie

Hello all.  Ive been lurking for a week or two hoping to learn something,
but I think my starting knowledge is too far behind!

I have a Redhat server running sendmail 8.12 that can pre-installed with
spamassassin.  Ive never used spamassassin before, and Im a sysadmin who
going by the trial by fire method currently.  When I fired it up and made it
live the thresh hold was too low, and spamassassin was catching loads of
ham.  I put it up to 15 till I could figure things out.

I think ideally Id like to start by filtering server wide then perhaps
moving to a user controlled environment.  I have noticed spamassassin is
making user_prefs when they dont exist.

My first question is: any way to turn specific rules on/off easily?  Where
do I do this? /usr/share/spamassassin has some conf files, should I comment
things out there?  I think that for an isp situation the rules need to be a
bit more lax, as there is a plethora of different email coming in at all
times, but at the same time i gotta get the viagra crap out of here.

I have looked through the wiki and the man pages, but I end up staring at
them not sure where to start.  anyone help out?

EJD


Re: [sa-list] Lost Newbie

Posted by Jim Maul <jm...@elih.org>.
Quoting "Dan Mahoney, System Admin" <da...@prime.gushi.org>:

> On Wed, 15 Sep 2004, help@nantucket.net wrote:
>
>> Hello all.  Ive been lurking for a week or two hoping to learn something,
>> but I think my starting knowledge is too far behind!
>>
>> I have a Redhat server running sendmail 8.12 that can pre-installed with
>> spamassassin.  Ive never used spamassassin before, and Im a sysadmin who
>> going by the trial by fire method currently.  When I fired it up and made it
>> live the thresh hold was too low, and spamassassin was catching loads of
>> ham.  I put it up to 15 till I could figure things out.
>>
>> I think ideally Id like to start by filtering server wide then perhaps
>> moving to a user controlled environment.  I have noticed spamassassin is
>> making user_prefs when they dont exist.
>
> Yup, it's a good doobie like that.  Only real issue is when two users
> share a homedir (which shouldn't ever really be the case).
>

doobie?  Just what are you talkin about here? ;)

Note if you are doing a system wide config, you can and probably should turn
this behavior off by calling spamd with -x.

with redhat you should be able to do this by editing the spamassassin startup
script which (atleast on my redhat 9 system) is /etc/init.d/spamassassin

man spamd might help you out with other options as well.

-x, --nouser-config                Disable user config files

>> My first question is: any way to turn specific rules on/off easily?  Where
>> do I do this? /usr/share/spamassassin has some conf files, should I comment
>> things out there?  I think that for an isp situation the rules need to be a
>> bit more lax, as there is a plethora of different email coming in at all
>> times, but at the same time i gotta get the viagra crap out of here.
>
> If it's a system-wide install, then you should find your config file (on a
> default install of spamassassin it's /etc/mail/spamassassin/local/cf I
> believe -- but DOUBLE CHECK).
>

minor correction, but it could stump a beginner.  It should be
/etc/mail/spamassassin/local.cf, not local/cf.  Im guessing its a typo as i do
it myself all the time.

As shown below, giving a test a score of 0 will turn it off.  Dan 
showed how to
do it, but he didnt actually mention anywhere that this will turn a test off
(or change the score if you put any number other than 0).

> When osirusoft shut down their DNSbl's and started returning "yes" for
> every ip queried, I added these lines to that file:
>
> score RCVD_IN_OSIRUSOFT_COM     0.00
> score X_OSIRU_OPEN_RELAY        0.00
> score X_OSIRU_DUL              0.00
> score X_OSIRU_SPAM_SRC         0.00
> score X_OSIRU_SPAMWARE_SITE    0.00
> score X_OSIRU_DUL_FH           0.00
>
> You could do the same with any other rule.
>
> By the way, the defaults are usually pretty decent (and get way better
> once the bayes magic starts working).  Perhaps you should look at WHY ham
> is being caught, and be sure to teach your users how to properly whitelist
> their mail if there's a problem.  There are presently solutions for this
> with IMAP, Procmail, and for shell users.
>

I second this one.  I would check the headers of the mail and see exactly what
tests are scoring.  If you arent running any extra rules (which im 
guessing you
arent if your just starting with this) you really shouldnt be having any false
positives unless your ham mails are REALLY spammy for some reason.

Oh and a quick note, dont touch anything in /usr/share/spamassassin.  
these are
templates that get overwritten every time you upgrade SA.  All rules and
changes to rules should go into /etc/mail/spamassassin.

-Jim

Re: [sa-list] Lost Newbie

Posted by Lucas Albers <ad...@cs.montana.edu>.
Dan Mahoney, System Admin said:
>
> By the way, the defaults are usually pretty decent (and get way better
> once the bayes magic starts working).  Perhaps you should look at WHY ham
> is being caught, and be sure to teach your users how to properly whitelist
> their mail if there's a problem.  There are presently solutions for this
> with IMAP, Procmail, and for shell users.

I think SA is good enough with proper bayes score that only to whitelist
very very rarely.

-- 
Luke Computer Science System Administrator
Security Administrator,College of Engineering
Montana State University-Bozeman,Montana



Re: Lost Newbie

Posted by "Dan Mahoney, System Admin" <da...@prime.gushi.org>.
On Wed, 15 Sep 2004, scohen wrote:

Yup.  Fat-fingers strike again.

-Dan


> On Wed, 15 Sep 2004, Dan Mahoney, System Admin wrote:
>
>> If it's a system-wide install, then you should find your config file (on a
>> default install of spamassassin it's /etc/mail/spamassassin/local/cf I
>> believe -- but DOUBLE CHECK).
>>
> I believe it is /etc/mail/spamassassin/local.cf not local/cf (local isn't
> a directory it is part to of the filename).
>
> Steve Cohen
>

--

"Of course she's gonna be upset!  You're dealing with a woman here Dan, 
what the hell's wrong with you?"

-S. Kennedy, 11/11/01

--------Dan Mahoney--------
Techie,  Sysadmin,  WebGeek
Gushi on efnet/undernet IRC
ICQ: 13735144   AIM: LarpGM
Site:  http://www.gushi.org
---------------------------


Re: [sa-list] Lost Newbie

Posted by scohen <sc...@scohen.mysticjj.com>.
On Wed, 15 Sep 2004, Dan Mahoney, System Admin wrote:

> If it's a system-wide install, then you should find your config file (on a
> default install of spamassassin it's /etc/mail/spamassassin/local/cf I
> believe -- but DOUBLE CHECK).
>
I believe it is /etc/mail/spamassassin/local.cf not local/cf (local isn't
a directory it is part to of the filename).

Steve Cohen


Re: [sa-list] Lost Newbie

Posted by "Dan Mahoney, System Admin" <da...@prime.gushi.org>.
On Wed, 15 Sep 2004, help@nantucket.net wrote:

> Hello all.  Ive been lurking for a week or two hoping to learn something,
> but I think my starting knowledge is too far behind!
>
> I have a Redhat server running sendmail 8.12 that can pre-installed with
> spamassassin.  Ive never used spamassassin before, and Im a sysadmin who
> going by the trial by fire method currently.  When I fired it up and made it
> live the thresh hold was too low, and spamassassin was catching loads of
> ham.  I put it up to 15 till I could figure things out.
>
> I think ideally Id like to start by filtering server wide then perhaps
> moving to a user controlled environment.  I have noticed spamassassin is
> making user_prefs when they dont exist.

Yup, it's a good doobie like that.  Only real issue is when two users 
share a homedir (which shouldn't ever really be the case).

> My first question is: any way to turn specific rules on/off easily?  Where
> do I do this? /usr/share/spamassassin has some conf files, should I comment
> things out there?  I think that for an isp situation the rules need to be a
> bit more lax, as there is a plethora of different email coming in at all
> times, but at the same time i gotta get the viagra crap out of here.

If it's a system-wide install, then you should find your config file (on a 
default install of spamassassin it's /etc/mail/spamassassin/local/cf I 
believe -- but DOUBLE CHECK).

When osirusoft shut down their DNSbl's and started returning "yes" for 
every ip queried, I added these lines to that file:

score RCVD_IN_OSIRUSOFT_COM     0.00
score X_OSIRU_OPEN_RELAY        0.00
score X_OSIRU_DUL              0.00
score X_OSIRU_SPAM_SRC         0.00
score X_OSIRU_SPAMWARE_SITE    0.00
score X_OSIRU_DUL_FH           0.00

You could do the same with any other rule.

By the way, the defaults are usually pretty decent (and get way better 
once the bayes magic starts working).  Perhaps you should look at WHY ham 
is being caught, and be sure to teach your users how to properly whitelist 
their mail if there's a problem.  There are presently solutions for this 
with IMAP, Procmail, and for shell users.

>
> I have looked through the wiki and the man pages, but I end up staring at
> them not sure where to start.  anyone help out?
>
> EJD
>

--

"Why are you wearing TWO grounding straps?"

-John Evans, Ezzi Computers August 23, 2001


--------Dan Mahoney--------
Techie,  Sysadmin,  WebGeek
Gushi on efnet/undernet IRC
ICQ: 13735144   AIM: LarpGM
Site:  http://www.gushi.org
---------------------------