You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Raymond Wan <rw...@kuicr.kyoto-u.ac.jp> on 2006/08/18 03:47:32 UTC

Running on Debian stable

Hi all,

 	I'm having a problem running spamassassin on Debian stable 
(version 3.1).  All of my spam (and I get about 5-10/day) is being marked 
as ham with a score of 0.1.  In the few days so far that I've ran it, 
nothing has been marked as spam except for the "test spam" file which came 
with the installation (that was scored at 900-something).

 	I was wondering if this is a problem with Debian stable.  Since it 
isn't up-to-date except for security patches, does that mean the rules, 
etc. are also out-of-date?  Debian stable happens to use version 3.0.3 of 
spamassassin -- quite out of date.  Or is it a problem with how I am 
running it?  I didn't change any of the settings as I assumed the 
installation defaults would be "ok".

 	Any thoughts?  Is upgrading spamassassin (or waiting for Debian 
stable to get upgraded) my best option?

Ray



Re: Running on Debian stable

Posted by Raymond Wan <rw...@kuicr.kyoto-u.ac.jp>.
Hi Michel,

On Fri, 18 Aug 2006, Michel Vaillancourt wrote:
> 	Hi, Ray.  I'm a Debian admin as well.  However, my experience has 
> been that for Spamassassin in particular, don't use the .deb package. 
> Instead, run the CPAN install process;  I have it set as a CRON job that 
> fires monthly.  You'll find that it is no worse than using packages, and 
> for SA at least, 10 times more effective.

 	Hmmm, thanks!  Can you be a bit more specific?  Why is it "10 
times more effective"?  Does doing it with the .deb package have 
disadvantages I don't know about (other than relying on backports.org, 
etc. ).

 	Thanks!

Ray



Re: Running on Debian stable

Posted by Michel Vaillancourt <mi...@wolfstar.ca>.
Raymond Wan wrote:
>     I could also go up to testing or *gasp* unstable, but I really don't
> want to.  I'm not a very good system admin and don't really know how to
> fix some things when they break.  Also would rather have a working
> system than a up-to-the-minute system.
> 
>     I was wondering whether it is possible to update the rules and not
> the software.  I guess not?  spamassassin in Debian is one package?  But
> anyway, I'll do your backports.org suggestion -- thanks!
> 
	Hi, Ray.  I'm a Debian admin as well.  However, my experience has been that for Spamassassin in particular, don't use the .deb package.  Instead, run the CPAN install process;  I have it set as a CRON job that fires monthly.  You'll find that it is no worse than using packages, and for SA at least, 10 times more effective.

-- 
	--Michel Vaillancourt
	Wolfstar Systems
	www.wolfstar.ca

Re: Running on Debian stable

Posted by "Chr. v. Stuckrad" <st...@mi.fu-berlin.de>.
On Fri, 18 Aug 2006, Magnus Holmgren wrote:

> You could install just spamassassin (but not spamc) from testing, without 
> having to pull in anything else.

There's also a spamassassin on dabian 'volatile'
under 'volatile-sloppy' (from sources.list):

deb http://ftp2.de.debian.org/debian-volatile sarge/volatile main
deb http://ftp2.de.debian.org/debian-volatile sarge/volatile-sloppy main

I did NOT yet test it yet, I only use the updated clamav there,

Stucki!

-- 
Christoph von Stuckrad      * * |nickname |<st...@mi.fu-berlin.de>   \
Freie Universitaet Berlin   |/_*|'stucki' |Tel(days):+49 30 838-5 57 78|
Mathematik & Informatik EDV |\ *|if online|Tel(else):+49 30 77 39 66 00|
Arnimallee 6 / 14195 Berlin * * |on IRCnet|Fax(alle):+49 30 838-75 454/

Re: Running on Debian stable

Posted by Gary V <mr...@hotmail.com>.
>On Friday 18 August 2006 07:10, Raymond Wan took the opportunity to say:
> > Hi Gary,
> >
> > On Thu, 17 Aug 2006, Gary V wrote:
> > > I would suggest installing a newer version from backports.org.
> >
> >  	Thanks for the suggestion!  I was not aware of backports.org at
> > all.
> >
> >  	I could also go up to testing or *gasp* unstable, but I really
> > don't want to.  I'm not a very good system admin and don't really know 
>how
> > to fix some things when they break.  Also would rather have a working
> > system than a up-to-the-minute system.
>
>You could install just spamassassin (but not spamc) from testing, without
>having to pull in anything else.
>
>--
>Magnus Holmgren        holmgren@lysator.liu.se
>                        (No Cc of list mail needed, thanks)

Yes, you could install unstable or testing without bringing a lot of testing 
or unstable stuff with it by using this form:

apt-get install spamassassin/testing
or
apt-get install spamassassin/unstable

and

apt-get install spamc/testing
or
apt-get install spamc/unstable

You can only install one program at atime using this convention. By using 
/release you are telling apt you want to install dependencies from stable. 
It will bomb if it can't, and will work if it can.

But as I said, you should simulate first. However, I still recommend 
backports-org (at this point in time) for spamassassin if you want to 
maintain a stable system. Doing so creates less mess when you run 'apt-get 
upgrade'.

Since you are using spamc, it is a separate install. I also keep a stable 
system, but installed spamassassin from unstable - looks like it's time to 
upgrade again:

spamassassin:
  Installed: 3.1.3-1
  Candidate: 3.1.4-1
  Version Table:
     3.1.4-1 0
        450 http://mirrors.kernel.org testing/main Packages
        400 http://mirrors.kernel.org unstable/main Packages
*** 3.1.3-1 0
        100 /var/lib/dpkg/status
     3.1.3-0bpo1 0
        350 http://www.backports.org sarge-backports/main Packages
     3.0.3-2sarge1 0
        600 http://security.debian.org stable/updates/main Packages
     3.0.3-2 0
        600 http://mirrors.kernel.org stable/main Packages
spamc:
  Installed: (none)
  Candidate: 3.0.3-2sarge1
  Version Table:
     3.1.4-1 0
        450 http://mirrors.kernel.org testing/main Packages
        400 http://mirrors.kernel.org unstable/main Packages
     3.1.3-0bpo1 0
        350 http://www.backports.org sarge-backports/main Packages
     3.0.3-2sarge1 0
        600 http://security.debian.org stable/updates/main Packages
     3.0.3-2 0
        600 http://mirrors.kernel.org stable/main Packages

Gary V


Gary V

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


Re: Running on Debian stable

Posted by Magnus Holmgren <ho...@lysator.liu.se>.
On Friday 18 August 2006 07:10, Raymond Wan took the opportunity to say:
> Hi Gary,
>
> On Thu, 17 Aug 2006, Gary V wrote:
> > I would suggest installing a newer version from backports.org.
>
>  	Thanks for the suggestion!  I was not aware of backports.org at
> all.
>
>  	I could also go up to testing or *gasp* unstable, but I really
> don't want to.  I'm not a very good system admin and don't really know how
> to fix some things when they break.  Also would rather have a working
> system than a up-to-the-minute system.

You could install just spamassassin (but not spamc) from testing, without 
having to pull in anything else.

-- 
Magnus Holmgren        holmgren@lysator.liu.se
                       (No Cc of list mail needed, thanks)

Re: Running on Debian stable

Posted by Raymond Wan <rw...@kuicr.kyoto-u.ac.jp>.
Hi Loren,

On Thu, 17 Aug 2006, Loren Wilton wrote:
> For the main rules files you basically can't do this.  It would theoreticaly 
> be possible, but it would take someone a lot of work to figure out what could 
> be done and then do it.  It is far easier to update the whole package, which 
> will insure that all of the new rules in that package will work as they 
> should.

 	Thanks for this; I was hoping the separation between program and 
rules is akin to virus scanners and their definitions.  But, as I'm too 
new to SA to tweak with this, I'll leave it as-is and stick with upgrading 
SA as a whole instead of in pieces.  :)  Thanks!

Ray



Re: Running on Debian stable

Posted by Loren Wilton <lw...@earthlink.net>.
>  I was wondering whether it is possible to update the rules and not the 
> software.  I guess not?  spamassassin in Debian is one package?  But 
> anyway, I'll do your backports.org suggestion -- thanks!

To an extent you can do this.  For instance www.rulesemporium.com releases a 
number of addon rules files that can be used with different version of SA. 
Be aware that the allowed rule types changes from release to release, so 
some rule sets have different versions for different releases.  If you get 
the wrong one things won't work right, and may not work at all.

For the main rules files you basically can't do this.  It would theoreticaly 
be possible, but it would take someone a lot of work to figure out what 
could be done and then do it.  It is far easier to update the whole package, 
which will insure that all of the new rules in that package will work as 
they should.

        Loren


Re: Running on Debian stable

Posted by Bob Proulx <bo...@proulx.com>.
Gary V wrote:
> As far as SpamAssassin goes, I don't believe there is a significant 
> difference in what a .deb package provides and what installing from source 
> provides (which is essentially what CPAN does, bringing dependencies with 
> it). I think you would find the program files and rules would be the same 
> for a given version. The CPAN modules may be available a week or two before 
> a .deb package is, but that is the only real difference. The .deb package 
> may also install more dependencies that CPAN would. The .deb package also 
> installs an initscript, so there are advantages. Mixing both methods is 
> often a bad thing however.

The difference that I see is that I can undo the deb method.  I can
install and uninstall and move forward and backward through versions.
I can inventory what is installed and duplicate it on another system
easily.  It is a very safe and comforting place to work.

Conversely with the CPAN method, once invoked, the system is forever
on the CPAN method.  There is no going back or at least not without
difficulty.  Because the files are not tracked with the package
manager it is very difficult to return to the previous system state.
Because CPAN tracks the latest bits of everything it is hard to
reliably install from one day to the next and to know that I am going
to get the same result on different systems.  Of course that is fine
for a significant portion of the population.

Bob

RE: Running on Debian stable

Posted by Raymond Wan <rw...@kuicr.kyoto-u.ac.jp>.
Hi Gary,

On Sun, 20 Aug 2006, Gary V wrote:
> installs an initscript, so there are advantages. Mixing both methods is often 
> a bad thing however.

 	Ok, I'll definite refrain myself from doing that.

> Are you using DCC/Razor2/Pyzor? Are they (along 
> with other network based tests)  working? What rules are hitting when you get 
> somthing you think should have been marked as spam, but isn't? Are you 
> hitting rules like ALL_TRUSTED when you should not be? Maybe you should post 
> examples of local.cf and user_prefs.
...
> To see if anything is going on as far as net tests go, you can break out 
> debugging info and try stuff like:
> spamassassin --lint --debug area=1,dns
>
> Here you would want to see:
> dbg: dns: is Net::DNS::Resolver available? yes
>
> spamassassin --lint --debug area=1,uri
> spamassassin --lint --debug area=1,razor2
> spamassassin --lint --debug area=1,dcc
> spamassassin --lint --debug area=1,pyzor

 	Thank you for these suggestions.  I found out that several of 
these were either not installed or disabled.  Since turning them on (and 
waiting a day or so for more spam to come in...first time in my life I 
wanted "more" spam!), I've noticed that razor2 contributes much to the 
score.  So far, I haven't had a spam missed.

 	My spam is sent to a folder and as for the score, I've set it to 
5.0, which seems ok.  I actually think the default score of 5.0 is too low 
based on its current settings (i.e., with razor2, etc. turned off).  With 
them turned on, 5.0 seems just right.

 	Thank you for your help!  It seems to be running fine on my Debian 
machine now.  The "D" key was starting to break after hitting it so much 
every day!  :)

Ray



RE: Running on Debian stable

Posted by Gary V <mr...@hotmail.com>.
>Hi Gary and others,
>
>
>Thanks for the instructions; I will give that a try.  My upgrade with 
>backports.org went successful and I did it before reading Michel's message 
>about using CPAN to install SA.  It's catching 25% of the spam now, instead 
>of 0%...I've seen a few messages about boosting its accuracy; I'll look 
>into that next.  Thank you all for your help!
>
>Ray
>

As far as SpamAssassin goes, I don't believe there is a significant 
difference in what a .deb package provides and what installing from source 
provides (which is essentially what CPAN does, bringing dependencies with 
it). I think you would find the program files and rules would be the same 
for a given version. The CPAN modules may be available a week or two before 
a .deb package is, but that is the only real difference. The .deb package 
may also install more dependencies that CPAN would. The .deb package also 
installs an initscript, so there are advantages. Mixing both methods is 
often a bad thing however.

How does your setup catch spam? At what score is a message considered spam 
and what do you do with it? Are you using DCC/Razor2/Pyzor? Are they (along 
with other network based tests)  working? What rules are hitting when you 
get somthing you think should have been marked as spam, but isn't? Are you 
hitting rules like ALL_TRUSTED when you should not be? Maybe you should post 
examples of local.cf and user_prefs.

To see if anything is going on as far as net tests go, you can break out 
debugging info and try stuff like:
spamassassin --lint --debug area=1,dns

Here you would want to see:
  dbg: dns: is Net::DNS::Resolver available? yes

spamassassin --lint --debug area=1,uri
spamassassin --lint --debug area=1,razor2
spamassassin --lint --debug area=1,dcc
spamassassin --lint --debug area=1,pyzor

Gary

_________________________________________________________________
On the road to retirement? Check out MSN Life Events for advice on how to 
get there! http://lifeevents.msn.com/category.aspx?cid=Retirement


RE: Running on Debian stable

Posted by Raymond Wan <rw...@kuicr.kyoto-u.ac.jp>.
Hi Gary and others,

On Fri, 18 Aug 2006, Gary V wrote:
> read this, it may validate your choice to stay stable:
> http://www200.pair.com/mecham/spam/kernel.html

 	No, I'll definitely stay with stable.  I have dabbled with testing 
for a bit and it was "fun" learning about Debian and breaking it and 
fixing it again.  But unfortunately, Debian isn't a hobby, but also my 
work machine and more time I spend fixing it is less time for work...even 
if I justify it by saying I am learning about Debian.  I tied an imaginery 
string around my finger to stop me from going to anything other than 
stable.

 	As for Magnus' message, I have also tried pinning.  It works, but 
it is a bigger step than using something like backports.org.  I broke my 
system and went up to testing as a solution last time; realized my mistake 
and went downt to stable and trying to tempt myself again.  Granted, many 
pin successfully...but I'm not a good enough Debian sysadmin to succeed 
with pinning.

> Yes, once you are using 3.1.1 or greater, run 'sa-update' - you will get a 
> complete set of up-to-date rules.
...

 	Thanks for the instructions; I will give that a try.  My upgrade 
with backports.org went successful and I did it before reading Michel's 
message about using CPAN to install SA.  It's catching 25% of the spam 
now, instead of 0%...I've seen a few messages about boosting its accuracy; 
I'll look into that next.  Thank you all for your help!

Ray



RE: Running on Debian stable

Posted by Gary V <mr...@hotmail.com>.
>28 15 * * * /usr/bin/sa-update && /usr/bin/spamassassin --lint && 
>/etc/init.d/spamd restart

Sorry, that should have been:

[...]  /etc/init.d/spamassassin restart

Gary V

_________________________________________________________________
Is your PC infected? Get a FREE online computer virus scan from McAfeeŽ 
Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


RE: Running on Debian stable

Posted by Gary V <mr...@hotmail.com>.
>Hi Gary,
>
>On Thu, 17 Aug 2006, Gary V wrote:
>>I would suggest installing a newer version from backports.org.
>
>	Thanks for the suggestion!  I was not aware of backports.org at all.
>
>	I could also go up to testing or *gasp* unstable, but I really don't want 
>to.  I'm not a very good system admin and don't really know how to fix some 
>things when they break.  Also would rather have a working system than a 
>up-to-the-minute system.
>

read this, it may validate your choice to stay stable:
http://www200.pair.com/mecham/spam/kernel.html

>	I was wondering whether it is possible to update the rules and not the 
>software.  I guess not?  spamassassin in Debian is one package?  But 
>anyway, I'll do your backports.org suggestion -- thanks!

Yes, once you are using 3.1.1 or greater, run 'sa-update' - you will get a 
complete set of up-to-date rules.

You may need to install gnupg and import the signing key, this is how I did 
it:
apt-get install gnupg
cd /etc/spamassassin
wget http://spamassassin.apache.org/released/GPG-SIGNING-KEY
gpg --import GPG-SIGNING-KEY

You might consider a cron job for sa-update:

28 15 * * * /usr/bin/sa-update && /usr/bin/spamassassin --lint && 
/etc/init.d/spamd restart

Also, once you upgrade to 3.1.x, edit v310.pre to enable DCC Plugin (if you 
use it and you agree to the license terms) and Razor2 Plugin.

>
>>How are you integrating spamassassin?
>
>	It is running as a daemon as the spamc/spamd combination.  I use fetchmail 
>to get mail from the server, and then procmail processes it.  I call spamc 
>from within procmail according to the sample .procmailrc that accompanys 
>the package.
>
>Ray
>

Gary V

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


RE: Running on Debian stable

Posted by Raymond Wan <rw...@kuicr.kyoto-u.ac.jp>.
Hi Gary,

On Thu, 17 Aug 2006, Gary V wrote:
> I would suggest installing a newer version from backports.org.

 	Thanks for the suggestion!  I was not aware of backports.org at 
all.

 	I could also go up to testing or *gasp* unstable, but I really 
don't want to.  I'm not a very good system admin and don't really know how 
to fix some things when they break.  Also would rather have a working 
system than a up-to-the-minute system.

 	I was wondering whether it is possible to update the rules and not 
the software.  I guess not?  spamassassin in Debian is one package?  But 
anyway, I'll do your backports.org suggestion -- thanks!

> How are you integrating spamassassin?

 	It is running as a daemon as the spamc/spamd combination.  I 
use fetchmail to get mail from the server, and then procmail processes 
it.  I call spamc from within procmail according to the sample .procmailrc 
that accompanys the package.

Ray



RE: Running on Debian stable

Posted by Gary V <mr...@hotmail.com>.
>Hi all,
>
>	I'm having a problem running spamassassin on Debian stable (version 3.1).  
>All of my spam (and I get about 5-10/day) is being marked as ham with a 
>score of 0.1.  In the few days so far that I've ran it, nothing has been 
>marked as spam except for the "test spam" file which came with the 
>installation (that was scored at 900-something).
>
>	I was wondering if this is a problem with Debian stable.  Since it isn't 
>up-to-date except for security patches, does that mean the rules, etc. are 
>also out-of-date?  Debian stable happens to use version 3.0.3 of 
>spamassassin -- quite out of date.  Or is it a problem with how I am 
>running it?  I didn't change any of the settings as I assumed the 
>installation defaults would be "ok".
>
>	Any thoughts?  Is upgrading spamassassin (or waiting for Debian stable to 
>get upgraded) my best option?
>
>Ray
>

I would suggest installing a newer version from backports.org.

In /etc/apt/sources.list add this if it is not there now:

deb http://www.backports.org/debian/ sarge-backports main contrib non-free

In /etc/apt/preferences, add:

Package: *
Pin: release a=sarge-backports
Pin-Priority: 200

Place this in an /etc/apt/apt.conf file:

APT::Cache-Limit "25165824";

Run 'apt-get update', then to simulate:

apt-get -s -t sarge-backports install spamassassin

Then to install (upgrade):

apt-get -t sarge-backports install spamassassin

How are you integrating spamassassin?

Gary V

_________________________________________________________________
Don’t just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/