|
List Info
Thread: spamassassin installation broken by perl install
|
|
| spamassassin installation broken by
perl install |
  Turkey |
2008-03-14 10:37:16 |
I have amavisd-new (amavisd-new-2.5.3) and spamassasin
(3.1.9) on a
Centos 5 system. I had no problem with this setup.
My story started when I saw some missing module in the log
/usr/sbin/amavisd[31809]: INFO: SA version: 3.1.9, 3.001009,
no optional
modules: Mail::SpamAssassin::Plugin: KIM
Mail::SpamAssassin::Plugin::URIDetail Error
Wanted to install this module by the following command:
perl -MCPAN -e 'install
Mail::SpamAssassin::Plugin::URIDetail'
This command installed required module.
BUT,
Now, the log says I need more modules:
/usr/sbin/amavisd[20453]: INFO: SA version: 3.2.4, 3.002004,
no optional
modules: Encode: etect
Image::Info Image::Info::GIF Image::Info::JPEG
Image::Info::PNG Image::Info::TIFF Mail::SPF
Mail::SPF::Server
Mail::SPF::Request Mail::SPF::Mech Mail::SPF::Mech::A
Mail::SPF::Mech::PTR Mail::SPF::Mech::All
Mail::SPF::Mech::Exists
Mail::SPF::Mech::IP4 Mail::SPF::Mech::IP6
Mail::SPF::Mech::Include
Mail::SPF::Mech::MX Mail::SPF::Mod Mail::SPF::Mod::Exp
Mail::SPF::Mod::Redirect Mail::SPF::SenderIPAddrMech
Mail::SPF::v1::Record Mail::SPF::v2::Record NetAddr::IP
NetAddr::IP::Util auto::NetAddr::IP::Util::inet_n2dx
auto::NetAddr::IP::Util::ipv6_n2d Error
aaargh! Stupid me! Why am I trying to fix something which
worked nicely?
Now, I have two spamassassin installations: one installed as
an rpm
(3.1.9) and the other installed as perl module (3.2.4).
Somehow, amavisd
now reads the new one.
Also, I have cron job to update the rules by sa-update in
/var/lib/spamassassin/3.001009 directory. This operation
probably broke
this cron job as well.
I would like to go back to rpm based setup as I can
manipulate it much
more easily. Please help!
Best wishes,
Mufit
------------------------------------------------------------
-------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
a>
_______________________________________________
AMaViS-user mailing list
AMaViS-user lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/
|
|
| Re: spamassassin installation broken by
perl install |
  United States |
2008-03-14 10:47:34 |
Mufit Eribol wrote:
> I have amavisd-new (amavisd-new-2.5.3) and spamassasin
(3.1.9) on a
> Centos 5 system. I had no problem with this setup.
>
> My story started when I saw some missing module in the
log
> /usr/sbin/amavisd[31809]: INFO: SA version: 3.1.9,
3.001009, no optional
> modules: Mail::SpamAssassin::Plugin: KIM
> Mail::SpamAssassin::Plugin::URIDetail Error
>
> Wanted to install this module by the following
command:
> perl -MCPAN -e 'install
Mail::SpamAssassin::Plugin::URIDetail'
>
> This command installed required module.
>
> BUT,
>
> Now, the log says I need more modules:
> /usr/sbin/amavisd[20453]: INFO: SA version: 3.2.4,
3.002004, no optional
> modules: Encode: etect
Image::Info Image::Info::GIF Image::Info::JPEG
> Image::Info::PNG Image::Info::TIFF Mail::SPF
Mail::SPF::Server
> Mail::SPF::Request Mail::SPF::Mech Mail::SPF::Mech::A
> Mail::SPF::Mech::PTR Mail::SPF::Mech::All
Mail::SPF::Mech::Exists
> Mail::SPF::Mech::IP4 Mail::SPF::Mech::IP6
Mail::SPF::Mech::Include
> Mail::SPF::Mech::MX Mail::SPF::Mod Mail::SPF::Mod::Exp
> Mail::SPF::Mod::Redirect Mail::SPF::SenderIPAddrMech
> Mail::SPF::v1::Record Mail::SPF::v2::Record NetAddr::IP
> NetAddr::IP::Util auto::NetAddr::IP::Util::inet_n2dx
> auto::NetAddr::IP::Util::ipv6_n2d Error
>
> aaargh! Stupid me! Why am I trying to fix something
which worked nicely?
>
The rpmforge guys (http://rpmforge.net/( have a
set of up-to-date centos
5 rpms, including a recent spamassassin, amavisd-new, and
all the
associated dependancies in RPM format, in a conventient yum
repository.
I've used 'em, and I'd recommend 'em, though extra repos
aren't for the
faint of heart.
All that said, I don't believe that there is an uninstall
feature for
CPAN, meaning that you'll need to manually remove the
modules that you
installed using cpan. In my CentOS & RHEL experience,
you'd probably
want to not use CPAN anyway, since future package upgrades
are pretty
much guaranteed to kill your manually installed CPAN ones,
resulting in
brutal, sometimes comical results. (the rpmforge folks also
maintain an
metric TON of perl modules in RPM format.)
Say, did I mention the rpmforge guys? ;)
Jacob Leaver
C-Corp.net
------------------------------------------------------------
-------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
a>
_______________________________________________
AMaViS-user mailing list
AMaViS-user lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/
|
|
| Re: spamassassin installation broken by
perl install |
  Austria |
2008-03-14 10:48:35 |
Hi,
you might try to install the same again with rpm, by using
cpan2rpm. This
should overwrite your cpan install but also update your rpm
db. Then ypu
should at least know, what is required to install.
cpan is great, but if you wnat to keep your installation
clean, you shoudl
always use cpan2rpm, and the install the rpms that are built
that way.
Hope this helps,
.peter
On Fri, 14 Mar 2008, Mufit Eribol wrote:
> I have amavisd-new (amavisd-new-2.5.3) and spamassasin
(3.1.9) on a
> Centos 5 system. I had no problem with this setup.
>
> My story started when I saw some missing module in the
log
> /usr/sbin/amavisd[31809]: INFO: SA version: 3.1.9,
3.001009, no optional
> modules: Mail::SpamAssassin::Plugin: KIM
> Mail::SpamAssassin::Plugin::URIDetail Error
>
> Wanted to install this module by the following
command:
> perl -MCPAN -e 'install
Mail::SpamAssassin::Plugin::URIDetail'
>
> This command installed required module.
>
> BUT,
>
> Now, the log says I need more modules:
> /usr/sbin/amavisd[20453]: INFO: SA version: 3.2.4,
3.002004, no optional
> modules: Encode: etect
Image::Info Image::Info::GIF Image::Info::JPEG
> Image::Info::PNG Image::Info::TIFF Mail::SPF
Mail::SPF::Server
> Mail::SPF::Request Mail::SPF::Mech Mail::SPF::Mech::A
> Mail::SPF::Mech::PTR Mail::SPF::Mech::All
Mail::SPF::Mech::Exists
> Mail::SPF::Mech::IP4 Mail::SPF::Mech::IP6
Mail::SPF::Mech::Include
> Mail::SPF::Mech::MX Mail::SPF::Mod Mail::SPF::Mod::Exp
> Mail::SPF::Mod::Redirect Mail::SPF::SenderIPAddrMech
> Mail::SPF::v1::Record Mail::SPF::v2::Record
NetAddr::IP
> NetAddr::IP::Util auto::NetAddr::IP::Util::inet_n2dx
> auto::NetAddr::IP::Util::ipv6_n2d Error
>
> aaargh! Stupid me! Why am I trying to fix something
which worked nicely?
>
> Now, I have two spamassassin installations: one
installed as an rpm
> (3.1.9) and the other installed as perl module (3.2.4).
Somehow, amavisd
> now reads the new one.
>
> Also, I have cron job to update the rules by sa-update
in
> /var/lib/spamassassin/3.001009 directory. This
operation probably broke
> this cron job as well.
>
> I would like to go back to rpm based setup as I can
manipulate it much
> more easily. Please help!
>
> Best wishes,
> Mufit
>
>
>
------------------------------------------------------------
-------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
a>
> _______________________________________________
> AMaViS-user mailing list
> AMaViS-user lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/amavis-user
> AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
> AMaViS-HowTos:http://www.amavis.org/ho
wto/
>
------------------------------------------------------------
-------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
a>
_______________________________________________
AMaViS-user mailing list
AMaViS-user lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/
|
|
| Re: spamassassin installation broken by
perl install |
  Turkey |
2008-03-14 11:04:56 |
Jacob Leaver wrote:
> Mufit Eribol wrote:
>> I have amavisd-new (amavisd-new-2.5.3) and
spamassasin (3.1.9) on a
>> Centos 5 system. I had no problem with this setup.
>>
>> My story started when I saw some missing module in
the log
>> /usr/sbin/amavisd[31809]: INFO: SA version: 3.1.9,
3.001009, no
>> optional modules: Mail::SpamAssassin::Plugin: KIM
>> Mail::SpamAssassin::Plugin::URIDetail Error
>>
>> Wanted to install this module by the following
command:
>> perl -MCPAN -e 'install
Mail::SpamAssassin::Plugin::URIDetail'
>>
>> This command installed required module.
>>
>> BUT,
>>
>> Now, the log says I need more modules:
>> /usr/sbin/amavisd[20453]: INFO: SA version: 3.2.4,
3.002004, no
>> optional modules: Encode: etect
Image::Info Image::Info::GIF
>> Image::Info::JPEG Image::Info::PNG
Image::Info::TIFF Mail::SPF
>> Mail::SPF::Server Mail::SPF::Request
Mail::SPF::Mech
>> Mail::SPF::Mech::A Mail::SPF::Mech::PTR
Mail::SPF::Mech::All
>> Mail::SPF::Mech::Exists Mail::SPF::Mech::IP4
Mail::SPF::Mech::IP6
>> Mail::SPF::Mech::Include Mail::SPF::Mech::MX
Mail::SPF::Mod
>> Mail::SPF::Mod::Exp Mail::SPF::Mod::Redirect
>> Mail::SPF::SenderIPAddrMech Mail::SPF::v1::Record
>> Mail::SPF::v2::Record NetAddr::IP NetAddr::IP::Util
>> auto::NetAddr::IP::Util::inet_n2dx
auto::NetAddr::IP::Util::ipv6_n2d
>> Error
>>
>> aaargh! Stupid me! Why am I trying to fix something
which worked nicely?
>>
>
>
> The rpmforge guys (http://rpmforge.net/( have a
set of up-to-date
> centos 5 rpms, including a recent spamassassin,
amavisd-new, and all
> the associated dependancies in RPM format, in a
conventient yum
> repository. I've used 'em, and I'd recommend 'em,
though extra repos
> aren't for the faint of heart.
>
> All that said, I don't believe that there is an
uninstall feature for
> CPAN, meaning that you'll need to manually remove the
modules that you
> installed using cpan. In my CentOS & RHEL
experience, you'd probably
> want to not use CPAN anyway, since future package
upgrades are pretty
> much guaranteed to kill your manually installed CPAN
ones, resulting
> in brutal, sometimes comical results. (the rpmforge
folks also
> maintain an metric TON of perl modules in RPM format.)
>
> Say, did I mention the rpmforge guys? ;)
>
> Jacob Leaver
> C-Corp.net
>
Actually, I am also quite happy with rpmforge packages. I
prefer yum
based install too. It is my mistake! I didn't know that CPAN
would
install a new SA. Now, how can I go back to yum based
spamassassin
install? And is there a log file for install of CPAM modules
? Should I
clean them, or leave them as they are?
Mufit
------------------------------------------------------------
-------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
a>
_______________________________________________
AMaViS-user mailing list
AMaViS-user lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/
|
|
| Re: spamassassin installation broken by
perl install |
  Turkey |
2008-03-14 11:10:40 |
huetmann violine.at wrote:
>
>
> Hi,
> you might try to install the same again with rpm, by
using cpan2rpm.
> This should overwrite your cpan install but also update
your rpm db.
> Then ypu should at least know, what is required to
install.
>
> cpan is great, but if you wnat to keep your
installation clean, you
> shoudl always use cpan2rpm, and the install the rpms
that are built
> that way.
>
> Hope this helps,
> .peter
>
>
Peter, thank you very much for your help! Could you please
elaborate on
cpan2rpm? I have never used it. What should the command look
like? I
installed Mail::SpamAssassin::Plugin::URIDetail module. SA
was installed
during this process.
Mufit
------------------------------------------------------------
-------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
a>
_______________________________________________
AMaViS-user mailing list
AMaViS-user lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/
|
|
| Re: spamassassin installation broken by
perl install |
  Austria |
2008-03-14 12:34:46 |
You'll find the program at:
http://www.arix.co
m/perl/cpan2rpm/
What I would do is try and build rpms for the modules
(including
spamassassin) wit hthe cpan2rpm program.
It is quite easily done. You need to pass the name of the
moduzle to it
like
cpan2rpm Compress::Zlib
and it will download the package from cpan and build an rpm
which you then
install with rpm -Uvh etc.
It also takes targz on the command line, and buils an rpm.
The idea was that you can actually build an rpm, which
shoudl overwrite
your current installation. You then can uninstall with rpm
-e ,and that
shoudl take care of cleaning it up.
Maybe it is too complicated, but I can think of any other
way to clean up
the system. (Apart from manually deleting the files).
Hope this helps,
.peter
On Fri, 14 Mar 2008, Mufit Eribol wrote:
> huetmann violine.at wrote:
>>
>>
>> Hi,
>> you might try to install the same again with rpm,
by using cpan2rpm.
>> This should overwrite your cpan install but also
update your rpm db.
>> Then ypu should at least know, what is required to
install.
>>
>> cpan is great, but if you wnat to keep your
installation clean, you
>> shoudl always use cpan2rpm, and the install the
rpms that are built
>> that way.
>>
>> Hope this helps,
>> .peter
>>
>>
> Peter, thank you very much for your help! Could you
please elaborate on
> cpan2rpm? I have never used it. What should the command
look like? I
> installed Mail::SpamAssassin::Plugin::URIDetail module.
SA was installed
> during this process.
>
> Mufit
>
>
>
>
------------------------------------------------------------
-------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
a>
> _______________________________________________
> AMaViS-user mailing list
> AMaViS-user lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/amavis-user
> AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
> AMaViS-HowTos:http://www.amavis.org/ho
wto/
>
------------------------------------------------------------
-------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
a>
_______________________________________________
AMaViS-user mailing list
AMaViS-user lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/
|
|
| Re: spamassassin installation broken by
perl install |
  Turkey |
2008-03-14 16:57:58 |
huetmann violine.at wrote:
>
>
> You'll find the program at:
>
> http://www.arix.co
m/perl/cpan2rpm/
>
> What I would do is try and build rpms for the modules
(including
> spamassassin) wit hthe cpan2rpm program.
>
> It is quite easily done. You need to pass the name of
the moduzle to
> it like
>
> cpan2rpm Compress::Zlib
>
> and it will download the package from cpan and build an
rpm which you
> then install with rpm -Uvh etc.
>
> It also takes targz on the command line, and buils an
rpm.
>
> The idea was that you can actually build an rpm, which
shoudl
> overwrite your current installation. You then can
uninstall with rpm
> -e ,and that shoudl take care of cleaning it up.
>
> Maybe it is too complicated, but I can think of any
other way to
> clean up the system. (Apart from manually deleting the
files).
>
> Hope this helps,
>
> .peter
>
Thank you for the hints. I tried to build rpm with
cpan2rpm Mail::Spamassassin
It unfortunately gave some errors and couldn't complete the
process:
t/spamd_hup.......................5/110 # Failed test 5 in
t/spamd_hup.t
at line 43
# t/spamd_hup.t line 43 is: ok (-e $pid_file) or warn
"$pid_file does
not exist post restart";
log/spamd.pid does not exist post restart at t/spamd_hup.t
line 43.
Then, I decided to leave the cpan modules as they are and
tried to
remove and re-install amavisd-new and spamassassin by yum.
It run OK.
However, when I try sa-update now, I get lots of errors like
below:
plugin: failed to parse plugin (from INC): Bareword
"Mail::SpamAssassin::Constants::CHARSETS_LIKELY_TO_FP_A
S_CAPS" not
allowed while "strict subs" in use at
/usr/lib/perl5/site_perl/5.8.8/Mail/SpamAssassin/Plugin/Head
erEval.pm
line 967.
Compilation failed in require at (eval 93) line 1.
plugin: failed to create instance of plugin
Mail::SpamAssassin::Plugin::HeaderEval: Can't locate object
method "new"
via package
"Mail::SpamAssassin::Plugin::HeaderEval" at
/usr/lib/perl5/site_perl/5.8.8/Mail/SpamAssassin/Plugin/Head
erEval.pm
line 39.
Obviously, cpan modules broke the perl integrity on my
system.
It is time to re-install my server from scratch on.
I created this problem by myself. A good lesson for me. I
will never
ever manually install cpan modules again. It is well beyond
my technical
capacity.
Thank you for your kind support anyway.
Best wishes,
Mufit
------------------------------------------------------------
-------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
a>
_______________________________________________
AMaViS-user mailing list
AMaViS-user lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/
|
|
| Re: spamassassin installation broken by
perl install |

|
2008-03-15 21:58:43 |
On 3/14/08, Mufit Eribol wrote:
>
> It is time to re-install my server from scratch on.
>
> I created this problem by myself. A good lesson for me.
I will never
> ever manually install cpan modules again. It is well
beyond my technical
> capacity.
>
> Thank you for your kind support anyway.
>
> Best wishes,
> Mufit
>
If I wanted to revert to 3.1.9, this is how I would approach
it, YMMV.
Use entirely at your own risk if you use it.
Backup the configuration files:
mkdir /etc/mail/spamassassin-backup
cp -ir /etc/mail/spamassassin/*
/etc/mail/spamassassin-backup
ls -l /etc/mail/spamassassin-backup
One could find the location of the two versions by running:
find / -name SpamAssassin.pm
Remove the Perl modules of the version installed from source
(from CPAN):
rm /usr/lib/perl5/site_perl/5.8.8/Mail/SpamAssassin.pm
rm -rf /usr/lib/perl5/site_perl/5.8.8/Mail/SpamAssassin
Remove v320.pre (it's not compatible with 3.1 versions):
rm /etc/mail/spamassassin/v320.pre
Backup the rules directory (just in case):
mkdir /usr/share/spamassassin-backup
cp -ir /usr/share/spamassassin/*
/usr/share/spamassassin-backup
Remove the rpm based spamassassin (the --nodeps switch is
very important here)
rpm -e --nodeps spamassassin
Remove the SA rules directory (so there are no 3.2 rules
left to mess
things up):
rm -rf /usr/share/spamassassin/
Reinstall spamassassin 3.1.9:
yum install spamassassin-3.1.9
Another way to install it is to find the rpm in the cache,
and use rpm
instead of yum:
rpm -i
/var/cache/yum/base/packages/spamassassin-3.1.9-1.el5.i386.r
pm
Restore local.cf (and any another .cf or .pre files you
might have
added or customized):
cp /etc/mail/spamassassin-backup/local.cf
/etc/mail/spamassassin
The original local.cf should also be in a file named
local.cf.rpmsave
Run sa-update:
sa-update
Test:
spamassassin -V
wget http:/
/spamassassin.apache.org/gtube/gtube.txt
spamassassin -tD <gtube.txt
amavisd reload
--
Gary V
------------------------------------------------------------
-------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
a>
_______________________________________________
AMaViS-user mailing list
AMaViS-user lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/
|
|
[1-8]
|
|