Re: Can I install upgraded Spamassassin without uninstalling old?

2011-06-02 Thread Jose Borges Ferreira
Hi!

I usually install several versions of SA on the same machine without any
trouble.

Fo instance, to test 3.3.2-rc2 I used this procedure

1  wget
http://people.apache.org/~wtogami/devel/3.3.2-rc2/Mail-SpamAssassin-3.3.2-rc2.tar.gz
2  wget -q
http://people.apache.org/~wtogami/devel/3.3.2-rc2/Mail-SpamAssassin-3.3.2-rc2.tar.gz.md5-O
- | md5sum -c
3  tar zxvf Mail-SpamAssassin-3.3.2-rc2.tar.gz
4  cd Mail-SpamAssassin-3.3.2
5  perl Makefile.PL prefix=/opt/spamassassin332
sysconfdir=/opt/spamassassin332/etc datadir=/opt/spamassassin332/var
localstatedir=/opt/spamassassin332/var
6  make
7  make test
8  make install
9  /opt/spamassassin332/bin/sa-update -D

 Keep an eye on the output os step5, it may complain about a missing module.

José Borges Ferreira


On Wed, Jun 1, 2011 at 2:11 PM, Pat Traynor  wrote:

> On Wed, 1 Jun 2011, Michael Scheidell wrote:
>
>
>> On 6/1/11 8:43 AM, Pat Traynor wrote:
>>
>>>
>>> See, this is why I really shouldn't be left alone in front of a keyboard.
>>> My perl installation is 5.12.3, NOT 5.3.12.  Sigh...
>>>
>>>  it should be 'safe' to backup the ../site_perl* and ../lib/perl5*
>> libraries, and try to upgrade the perl modules first.  newer pm's SHOULD
>> work with old SA.
>>
>> look at upgrading file and tar/pax as well.
>>
>
> Sounds good.  I'll look into that and tread carefully.
>
>
> --pat--
> --
> Pat Traynor
> p...@ssih.com
>


Re: Can I install upgraded Spamassassin without uninstalling old?

2011-06-02 Thread Bowie Bailey
On 6/2/2011 3:29 AM, Matus UHLAR - fantomas wrote:
>> On 6/1/11 8:43 AM, Pat Traynor wrote:
>>> See, this is why I really shouldn't be left alone in front of a keyboard.
>>> My perl installation is 5.12.3, NOT 5.3.12.  Sigh...
> On 01.06.11 08:47, Michael Scheidell wrote:
>> it should be 'safe' to backup the ../site_perl* and ../lib/perl5*  
>> libraries, and try to upgrade the perl modules first.  newer pm's SHOULD  
>> work with old SA.
> I'm afraid it's not. At least gentoo says that 
> "Perl 5.12 is not binary compatible with prior releases of Perl."
>
> That may explain the need of upgrading the whole system. While it might be
> possible to stuff new perl (and much of other libraries/packages) to old
> fedora, it is apparently not a good idea

That's irrelevant.  The latest SA will run just fine on 5.12, so he does
not need to upgrade Perl.  He may need to upgrade some of the Perl
modules, but that should not require any upgrades of Perl itself or any
other OS components.

-- 
Bowie


Re: Can I install upgraded Spamassassin without uninstalling old?

2011-06-02 Thread Matus UHLAR - fantomas
> On 6/1/11 8:43 AM, Pat Traynor wrote:
>> See, this is why I really shouldn't be left alone in front of a keyboard.
>> My perl installation is 5.12.3, NOT 5.3.12.  Sigh...

On 01.06.11 08:47, Michael Scheidell wrote:
> it should be 'safe' to backup the ../site_perl* and ../lib/perl5*  
> libraries, and try to upgrade the perl modules first.  newer pm's SHOULD  
> work with old SA.

I'm afraid it's not. At least gentoo says that 
"Perl 5.12 is not binary compatible with prior releases of Perl."

That may explain the need of upgrading the whole system. While it might be
possible to stuff new perl (and much of other libraries/packages) to old
fedora, it is apparently not a good idea

-- 
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Save the whales. Collect the whole set.


Re: Can I install upgraded Spamassassin without uninstalling old?

2011-06-01 Thread Mihamina Rakotomandimby
> On Wed, 01 Jun 2011 20:03:30 +0200
> Benny Pedersen  wrote:
> it will just be unsafe to restore it, correct way to upgrade is with
> rpms if installed that way, missing latest spamassassin, make a bug
> on your distro

There are multiple ways to handle it :-)
Pat wants the "dont-upgrade-the-distro" way, that have drawbacks.


-- 
RMA.


Re: Can I install upgraded Spamassassin without uninstalling old?

2011-06-01 Thread Benny Pedersen
On Wed, 1 Jun 2011 08:47:28 -0400, Michael Scheidell
 wrote:
> it should be 'safe' to backup the ../site_perl* and ../lib/perl5*
> libraries, and try to upgrade the perl modules first. newer pm's SHOULD
> work with old SA.

it will just be unsafe to restore it, correct way to upgrade is with rpms
if installed that way, missing latest spamassassin, make a bug on your
distro

by not doing this one learns more if it fails



Re: Can I install upgraded Spamassassin without uninstalling old?

2011-06-01 Thread Bowie Bailey
On 6/1/2011 7:22 AM, Pat Traynor wrote:
> Here's my situation:  I lease a host from a provider.  They initially
> did all my setup, and I do the simple maintenance I need.  A short time
> ago, the spam increased dramatically.  Others on this list reported it,
> and a common suggested problem was that the installed Spamassassin was
> badly out of date.  Mine is 3.0.4, and I probably fall into that
> category.
>
> I called my co-hosting provider and asked to have Spamassassin upgraded.
> They told me that to do this would require an upgrade to my Fedora core,
> which would require an upgrade to this, and to that, and I'd then need
> to reinstall those...  Bottom line is that the whole ordeal will cost
> me thousands of dollars, which I simply don't have.  My gut feeling is
> that a SA upgrade *could* be done, but they see an opportunity to get
> some cash out of me, and they know they've got me by the short hairs.

Sounds like they're looking for money.  SA is dependent on Perl and a
bunch of modules, but if you are already at 5.12 as you mentioned in a
later post, there should be nothing stopping you from upgrading SA. 
This upgrade should take a couple of hours at most.  This is definitely
not something that should cost thousands of dollars and require you to
upgrade everything.

> I do a lot of my own installations without any problem, but the thing is
> that I've got a couple dozen customers using Spamassassin, and if I
> crash and burn on the upgrade, it won't be a pretty situation.  So...
>
> I was wondering if it's possible to install an alternate version of
> Spamassassin and verify that it's working properly before burning my
> bridge on the outdated (but working) version I've currently got
> installed.

That could be a bit tricky.  You would have to upgrade the required Perl
modules first (which *shouldn't* cause a problem with the old SA
version).  Then you could install the new SA in your local directory and
call it directly from there with some test mail files to verify that it
is working.  However, you would probably then want to re-install it into
the system directories to be used by the server.

In-place upgrades have never been a problem for me.  I generally install
the new version while the old version is still up and running.  Then I
just restart spamd to activate the new stuff.  Since spamd reads
everything into memory when it starts, it doesn't really matter that the
files are changing while it is running.  Sure, it is possible for this
to cause problems, but I've been doing it for years now with no issues. 
That being said, I've been following the current versions pretty closely
and have never tried to jump as far as 3.0.4 to 3.3.1.  There may be
some incompatibilities with the Bayes DB format and there may also be
some changes in the configuration keywords, but your testing should be
able to catch those easily enough before you try to go live.

Try to install it the same way it was installed originally (rpm, CPAN,
source?) to cut down on the problems with having different versions
installed in different places. 

-- 
Bowie




Re: Can I install upgraded Spamassassin without uninstalling old?

2011-06-01 Thread Pat Traynor

On Wed, 1 Jun 2011, Michael Scheidell wrote:



On 6/1/11 8:43 AM, Pat Traynor wrote:


See, this is why I really shouldn't be left alone in front of a keyboard.
My perl installation is 5.12.3, NOT 5.3.12.  Sigh...

it should be 'safe' to backup the ../site_perl* and ../lib/perl5* libraries, 
and try to upgrade the perl modules first.  newer pm's SHOULD work with old 
SA.


look at upgrading file and tar/pax as well.


Sounds good.  I'll look into that and tread carefully.

--pat--
--
Pat Traynor
p...@ssih.com


Re: Can I install upgraded Spamassassin without uninstalling old?

2011-06-01 Thread Michael Scheidell


On 6/1/11 8:43 AM, Pat Traynor wrote:


See, this is why I really shouldn't be left alone in front of a keyboard.
My perl installation is 5.12.3, NOT 5.3.12.  Sigh...

it should be 'safe' to backup the ../site_perl* and ../lib/perl5* 
libraries, and try to upgrade the perl modules first.  newer pm's SHOULD 
work with old SA.


look at upgrading file and tar/pax as well.



--pat--


--
Michael Scheidell, CTO
o: 561-999-5000
d: 561-948-2259
>*| *SECNAP Network Security Corporation

   * Best Mobile Solutions Product of 2011
   * Best Intrusion Prevention Product
   * Hot Company Finalist 2011
   * Best Email Security Product
   * Certified SNORT Integrator


__
This email has been scanned and certified safe by SpammerTrap(r). 
For Information please see http://www.secnap.com/products/spammertrap/

__  

Re: Can I install upgraded Spamassassin without uninstalling old?

2011-06-01 Thread Pat Traynor

On Wed, 1 Jun 2011, Michael Scheidell wrote:


On 6/1/11 7:37 AM, Pat Traynor wrote:

My perl installation is at the latest version as of about a month ago
(5.3.12), and I'm comfortable installing modules.


I believe for current versions of SA, the minimum perl is 5.8.8


See, this is why I really shouldn't be left alone in front of a keyboard.
My perl installation is 5.12.3, NOT 5.3.12.  Sigh...

--pat--
--
Pat Traynor
p...@ssih.com


Re: Can I install upgraded Spamassassin without uninstalling old?

2011-06-01 Thread Michael Scheidell

On 6/1/11 7:37 AM, Pat Traynor wrote:

My perl installation is at the latest version as of about a month ago
(5.3.12), and I'm comfortable installing modules.


I believe for current versions of SA, the minimum perl is 5.8.8

and, the modules, especially the sha and crypt modules need to be 
installed all together.  you will need to install newer dkim and spf 
modules.


untar SA, and look at the install and readme's for dependencies.



--
Michael Scheidell, CTO
o: 561-999-5000
d: 561-948-2259
>*| *SECNAP Network Security Corporation

   * Best Mobile Solutions Product of 2011
   * Best Intrusion Prevention Product
   * Hot Company Finalist 2011
   * Best Email Security Product
   * Certified SNORT Integrator

__
This email has been scanned and certified safe by SpammerTrap(r). 
For Information please see http://www.secnap.com/products/spammertrap/
__  


Re: Can I install upgraded Spamassassin without uninstalling old?

2011-06-01 Thread Mihamina Rakotomandimby
> On Wed, 1 Jun 2011 07:37:46 -0400 (EDT)
> Pat Traynor  wrote:

> > Why wont you try on a Virtual machine first?
> > Install the old Fedora and try it out.
> Well, THAT is probably well beyond my capabilities - getting a server
> completely installed to the point of it accepting outside mail.

Pat, you just need to "telnet virtual-server 25", and test several
deliveries.
Nothing beyound :-)

-- 
RMA.


Re: Can I install upgraded Spamassassin without uninstalling old?

2011-06-01 Thread Pat Traynor

On Wed, 1 Jun 2011, Mihamina Rakotomandimby wrote:


It possible.

But this, of course, depends on your skills.
For example, if you ever need a newer Perl library/module, you will also
need to install it.


My perl installation is at the latest version as of about a month ago
(5.3.12), and I'm comfortable installing modules.


Why wont you try on a Virtual machine first?
Install the old Fedora and try it out.


Well, THAT is probably well beyond my capabilities - getting a server
completely installed to the point of it accepting outside mail.

Thanks for the ideas!

--pat--
--
Pat Traynor
p...@ssih.com


Re: Can I install upgraded Spamassassin without uninstalling old?

2011-06-01 Thread Mihamina Rakotomandimby
> On Wed, 1 Jun 2011 07:22:05 -0400 (EDT)
> Pat Traynor  wrote:
> I was wondering if it's possible to install an alternate version of
> Spamassassin and verify that it's working properly before burning my
> bridge on the outdated (but working) version I've currently got
> installed.

It possible.

But this, of course, depends on your skills.
For example, if you ever need a newer Perl library/module, you will also
need to install it.

Why wont you try on a Virtual machine first?
Install the old Fedora and try it out.

That said, depending how Spamassassin is called, you will have it
working or not.

On some servers, the MTA directly submit to Spamassassin (via network
or not) with no possibility for a user to change the paremeters (path
or port), so you could also run into that problem.

-- 
RMA.


Can I install upgraded Spamassassin without uninstalling old?

2011-06-01 Thread Pat Traynor

Here's my situation:  I lease a host from a provider.  They initially
did all my setup, and I do the simple maintenance I need.  A short time
ago, the spam increased dramatically.  Others on this list reported it,
and a common suggested problem was that the installed Spamassassin was
badly out of date.  Mine is 3.0.4, and I probably fall into that
category.

I called my co-hosting provider and asked to have Spamassassin upgraded.
They told me that to do this would require an upgrade to my Fedora core,
which would require an upgrade to this, and to that, and I'd then need
to reinstall those...  Bottom line is that the whole ordeal will cost
me thousands of dollars, which I simply don't have.  My gut feeling is
that a SA upgrade *could* be done, but they see an opportunity to get
some cash out of me, and they know they've got me by the short hairs.

I do a lot of my own installations without any problem, but the thing is
that I've got a couple dozen customers using Spamassassin, and if I
crash and burn on the upgrade, it won't be a pretty situation.  So...

I was wondering if it's possible to install an alternate version of
Spamassassin and verify that it's working properly before burning my
bridge on the outdated (but working) version I've currently got
installed.

Thanks for any advice.

--pat--
--
Pat Traynor
p...@ssih.com