You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Johann Spies <js...@sun.ac.za> on 2005/01/20 08:44:23 UTC

3.02 on Debian Woody?

I have installed Spamassassin 3.02 on one of my three mail servers
which runs on Debian Woody with a backport of Exim4.  I previously had
2.64 running on this machine with the Surbl checking working (after
help from this list).

I could only get the network tests to work after installing  Net::DNS
using CPAN.  I would prefer however to do it the Debian way.

Is there a way to get this working using Debian packages?  And which
packages should be installed then?

Regards
Johann
-- 
Johann Spies          Telefoon: 021-808 4036
Informasietegnologie, Universiteit van Stellenbosch

     "Neither is there salvation in any other; for there is 
      none other name under heaven given among men, whereby 
      we must be saved."               Acts 4:12 

Re: 3.02 on Debian Woody?

Posted by Johann Spies <js...@sun.ac.za>.
On Thu, Jan 20, 2005 at 03:12:44AM -0700, Bob Proulx wrote:
> Johann Spies wrote:
> > Mail-Followup-To: Johann Spies <js...@sun.ac.za>,
> >         users@spamassassin.apache.org,
> >         spamassassin-users@incubator.apache.org
> 
> Please pick only one of these two aliases to the same list.  Otherwise
> we all see duplicate messages.

Apologies, I was not aware of the fact that I replied to two aliases.

> > Yes, I am using the one form www.backports.org and installing
> > libnet-dns-perl from the same source did not seem to get my netwrork
> > tests going.
> 
> It should have.  That makes me think something else unrelated is the
> problem.  Run SA with debugging enabled.  What does it say?  In
> particular you should see something like this.
> 
>   spamassassin -tD < message 2>&1 | pager
> 
>   debug: is Net::DNS::Resolver available? yes
>   debug: Net::DNS version: 0.48
>   debug: trying (3) colorado.edu...
>   debug: looking up NS for 'colorado.edu'
>   debug: NS lookup of colorado.edu succeeded => Dns available (set dns_available to hardcode)
>   debug: is DNS available? 1
> 
> If you are seeing something significantly different then I believe the
> problem is that you have multilple versions of Net::DNS installed and
> are not actually using the packaged version at all.
> 
>   locate Net/DNS.pm
>   /usr/lib/perl5/Net/DNS.pm
> 
> You may have other older versions hiding out in other locations.

Thanks.  On two of the machines I could only get it working after
using db-make-perl to build a libnet-dns-perl from CTAN and installing
it.  Somehow the one from www.backports.org did not work there.  On
the first one, on which I had surbl working with 2.6.4 previously, I
did not have to do that.  

Thanks for the -tD-tip.  I will remember it for the future.

Regards
Johann
-- 
Johann Spies          Telefoon: 021-808 4036
Informasietegnologie, Universiteit van Stellenbosch

     "Neither is there salvation in any other; for there is 
      none other name under heaven given among men, whereby 
      we must be saved."               Acts 4:12 

Re: 3.02 on Debian Woody?

Posted by Bob Proulx <bo...@proulx.com>.
Johann Spies wrote:
> Mail-Followup-To: Johann Spies <js...@sun.ac.za>,
>         users@spamassassin.apache.org,
>         spamassassin-users@incubator.apache.org

Please pick only one of these two aliases to the same list.  Otherwise
we all see duplicate messages.

> Yes, I am using the one form www.backports.org and installing
> libnet-dns-perl from the same source did not seem to get my netwrork
> tests going.

It should have.  That makes me think something else unrelated is the
problem.  Run SA with debugging enabled.  What does it say?  In
particular you should see something like this.

  spamassassin -tD < message 2>&1 | pager

  debug: is Net::DNS::Resolver available? yes
  debug: Net::DNS version: 0.48
  debug: trying (3) colorado.edu...
  debug: looking up NS for 'colorado.edu'
  debug: NS lookup of colorado.edu succeeded => Dns available (set dns_available to hardcode)
  debug: is DNS available? 1

If you are seeing something significantly different then I believe the
problem is that you have multilple versions of Net::DNS installed and
are not actually using the packaged version at all.

  locate Net/DNS.pm
  /usr/lib/perl5/Net/DNS.pm

You may have other older versions hiding out in other locations.

Bob

Re: 3.02 on Debian Woody?

Posted by Johann Spies <js...@sun.ac.za>.
On Thu, Jan 20, 2005 at 01:17:08AM -0700, Bob Proulx wrote:

> 
> Your own backport?  Or one from somewhere else?
> 
> > I could only get the network tests to work after installing  Net::DNS
> 
> If www.backports.org then you should have gotten the libnet-dns-perl
> modules from there too.

Yes, I am using the one form www.backports.org and installing
libnet-dns-perl from the same source did not seem to get my netwrork
tests going.

> I recommend using the www.backports.org packaging.  Put the following
> in your /etc/apt/sources.list line.
> 
>   deb http://www.backports.org/debian stable spamassassin
> 
> Then:
> 
>   sudo apt-get update
>   sudo apt-get install spamassassin libnet-dns-perl libmail-spf-query-perl

Thanks for your reply.  I have added libmail-spf-query-perl and it
also installed two extra packages. But the network tests does not seem
to be working... I will now try the dh-make-perl option suggested by
others.


Regards
Johann

-- 
Johann Spies          Telefoon: 021-808 4036
Informasietegnologie, Universiteit van Stellenbosch

     "Neither is there salvation in any other; for there is 
      none other name under heaven given among men, whereby 
      we must be saved."               Acts 4:12 

Re: 3.02 on Debian Woody?

Posted by Bob Proulx <bo...@proulx.com>.
Johann Spies wrote:
> I have installed Spamassassin 3.02 on one of my three mail servers
> which runs on Debian Woody with a backport of Exim4.  I previously had
> 2.64 running on this machine with the Surbl checking working (after
> help from this list).

Your own backport?  Or one from somewhere else?

> I could only get the network tests to work after installing  Net::DNS

If www.backports.org then you should have gotten the libnet-dns-perl
modules from there too.

> using CPAN.  I would prefer however to do it the Debian way.

You will find many people who are fanatical about using CPAN.  But
there are just as many on the side of being fanatical about using a
package manager.  Place me firmly in the latter camp.

> Is there a way to get this working using Debian packages?  And which
> packages should be installed then?

I recommend using the www.backports.org packaging.  Put the following
in your /etc/apt/sources.list line.

  deb http://www.backports.org/debian stable spamassassin

Then:

  sudo apt-get update
  sudo apt-get install spamassassin libnet-dns-perl libmail-spf-query-perl

That is assuming you are running an x86 architecture and not one of
the other twelve available architectures for Debian.

Bob

Re: 3.02 on Debian Woody?

Posted by Nix <ni...@esperi.org.uk>.
On Mon, 24 Jan 2005, jdow@earthlink.net said:
> What in the name of the great Fubar is an "autobundle" and how might
> one gutsy enough to use one go about doing it?

You create one by saying

autobundle

at the CPAN prompt.

This writes a `bundle file' into your CPAN bundle directory (probably
~/.cpan/Bundle: it's a plain text podfile containing lines like this:

Acme::Bleach 1.12

Acme::DWIM 1.05

Acme::Magpie 0.05

Acme::Magpie::l33t undef

Acme::Morse undef

Algorithm::Diff 1.15

Algorithm::DiffOld 1.1
[...]

You can prune bits out of it, edit bits, rename the file... whatever
you want.

Despite POD being a documentation format, you can install the bundle
file with the CPAN `install' command after clipping out the bits you
don't care to keep, and it'll go away and churn like mad for ages
and reinstall all the modules mentioned in there that are missing.

(Note that even detritus of older installs not properly removed by later
installs of the same module might be preserved in there: the best way to
spot *that* that I've found is to keep an eye on the installation
process to see if it's downloading several versions of the same module.)


It's a real kludge and nothing like a real packaging system, but it
works, pretty much, sort of, most of the time..

>                                                (More and more I find
> myself starting to lean far over to the "wrong side" in an ancient
> battle in this group....)

Which side? The `perl sucks' side? ;}

-- 
`Blish is clearly in love with language. Unfortunately,
 language dislikes him intensely.' --- Russ Allbery

Re: 3.02 on Debian Woody?

Posted by jdow <jd...@earthlink.net>.
What in the name of the great Fubar is an "autobundle" and how might
one gutsy enough to use one go about doing it? (More and more I find
myself starting to lean far over to the "wrong side" in an ancient
battle in this group....)

{o.o}
----- Original Message ----- 
From: "Nix" <ni...@esperi.org.uk>


> On 20 Jan 2005, Daniel Quinlan whispered secretively:
> > How do you remove a package installed with CPAN, anyway?
>
> Generate an autobundle, edit it, `rm -rf' your site-perl directory, and
> reinstall the autobundle. (Yes, it's a sick half-witted kludge.)
>
> >                                                           And how do you
> > remove old turds from old CPAN packages you've upgraded via CPAN?
>
> The same hideous way --- well, the UNINST=1 parameter is meant to ditch
> dead no-longer-relevant gunge, but doesn't do a perfect job.
>
>
> But, yes, CPAN is all very well but not exactly ideal. (Let's not
> even talk about CPANPLUS, the worst forgetter of its own settings
> I've ever seen.)
>
> -- 
> `Blish is clearly in love with language. Unfortunately,
>  language dislikes him intensely.' --- Russ Allbery



Re: 3.02 on Debian Woody?

Posted by Nix <ni...@esperi.org.uk>.
On 20 Jan 2005, Daniel Quinlan whispered secretively:
> How do you remove a package installed with CPAN, anyway?

Generate an autobundle, edit it, `rm -rf' your site-perl directory, and
reinstall the autobundle. (Yes, it's a sick half-witted kludge.)

>                                                           And how do you
> remove old turds from old CPAN packages you've upgraded via CPAN?

The same hideous way --- well, the UNINST=1 parameter is meant to ditch
dead no-longer-relevant gunge, but doesn't do a perfect job.


But, yes, CPAN is all very well but not exactly ideal. (Let's not
even talk about CPANPLUS, the worst forgetter of its own settings
I've ever seen.)

-- 
`Blish is clearly in love with language. Unfortunately,
 language dislikes him intensely.' --- Russ Allbery

Re: 3.02 on Debian Woody?

Posted by Daniel Quinlan <qu...@pathname.com>.
John Andersen <js...@pen.homeip.net> writes:

> CPAN is the Debian way.  Its every distro's way.

I disagree, dh-make-perl is the Debian way.  :-)

How do you remove a package installed with CPAN, anyway?  And how do you
remove old turds from old CPAN packages you've upgraded via CPAN?  I
seem to recall that every distribution has a way to remove packages...

Daniel

-- 
Daniel Quinlan
http://www.pathname.com/~quinlan/

Re: 3.02 on Debian Woody?

Posted by Johann Spies <js...@sun.ac.za>.
On Wed, Jan 19, 2005 at 10:48:18PM -0900, John Andersen wrote:
> On Wednesday 19 January 2005 10:44 pm, Johann Spies wrote:
> > I could only get the network tests to work after installing  Net::DNS
> > using CPAN.  I would prefer however to do it the Debian way.
> 
> CPAN is the Debian way.  Its every distro's way.
> 
> Spamassassin is a perl app, and installing the whole thing
> via cpan makes more sense than any other method.  Its also
> easier to keep things up to date that way.
> 
> Regardless of distro, I ALWAYS install S.A. with Cpan.
> 

Thanks.  I will keep it as a last option.  I am first going to try out
dh-make-perl.

Regards
Johann
-- 
Johann Spies          Telefoon: 021-808 4036
Informasietegnologie, Universiteit van Stellenbosch

     "Neither is there salvation in any other; for there is 
      none other name under heaven given among men, whereby 
      we must be saved."               Acts 4:12 

Re: 3.02 on Debian Woody?

Posted by John Andersen <js...@pen.homeip.net>.
On Thursday 20 January 2005 12:03 am, Johann Spies wrote:
> > Regardless of distro, I ALWAYS install S.A. with Cpan.
>
> And what do I do when a lot of tests fail?

Resolve the dependencies.  


-- 
_____________________________________
John Andersen

Re: 3.02 on Debian Woody?

Posted by Johann Spies <js...@sun.ac.za>.
On Wed, Jan 19, 2005 at 10:48:18PM -0900, John Andersen wrote:
> On Wednesday 19 January 2005 10:44 pm, Johann Spies wrote:
> > I could only get the network tests to work after installing  Net::DNS
> > using CPAN.  I would prefer however to do it the Debian way.
> 
> CPAN is the Debian way.  Its every distro's way.
> 
> Spamassassin is a perl app, and installing the whole thing
> via cpan makes more sense than any other method.  Its also
> easier to keep things up to date that way.
> 
> Regardless of distro, I ALWAYS install S.A. with Cpan.

And what do I do when a lot of tests fail?

Regards
Johann

-- 
Johann Spies          Telefoon: 021-808 4036
Informasietegnologie, Universiteit van Stellenbosch

     "Neither is there salvation in any other; for there is 
      none other name under heaven given among men, whereby 
      we must be saved."               Acts 4:12 

Re: 3.02 on Debian Woody?

Posted by John Andersen <js...@pen.homeip.net>.
On Wednesday 19 January 2005 10:44 pm, Johann Spies wrote:
> I could only get the network tests to work after installing  Net::DNS
> using CPAN.  I would prefer however to do it the Debian way.

CPAN is the Debian way.  Its every distro's way.

Spamassassin is a perl app, and installing the whole thing
via cpan makes more sense than any other method.  Its also
easier to keep things up to date that way.

Regardless of distro, I ALWAYS install S.A. with Cpan.

-- 
_____________________________________
John Andersen

Re: 3.02 on Debian Woody?

Posted by Will Yardley <sa...@veggiechinese.net>.
On Thu, Jan 20, 2005 at 09:44:23AM +0200, Johann Spies wrote:

[ If you don't actually want a copy of messages, you should change
"lists ... to subscribe ... in your .muttrc so your mail-followup-to
header gets set correctly ]

> I have installed Spamassassin 3.02 on one of my three mail servers
> which runs on Debian Woody with a backport of Exim4.  I previously had
> 2.64 running on this machine with the Surbl checking working (after
> help from this list).
> 
> I could only get the network tests to work after installing  Net::DNS
> using CPAN.  I would prefer however to do it the Debian way.
> 
> Is there a way to get this working using Debian packages?  And which
> packages should be installed then?

Install the backport version of both.

add:
deb http://www.backports.org/debian stable spamassassin

to /etc/apt/sources.list

and then do:
# apt-get install spamassassin libnet-dns-perl


Re: 3.02 on Debian Woody?

Posted by Daniel Quinlan <qu...@pathname.com>.
Johann Spies <js...@sun.ac.za> writes:

> I could only get the network tests to work after installing  Net::DNS
> using CPAN.  I would prefer however to do it the Debian way.

dh-make-perl is your friend -- it makes it easy to Debianize any Perl
package from CPAN.  (I don't install Perl packages directly from CPAN.)

Daniel
 
-- 
Daniel Quinlan
http://www.pathname.com/~quinlan/