MailScanner, CentOS 5 and perl-IO & perl-File-Temp

Randal, Phil prandal at
Fri Apr 3 16:47:12 IST 2009

I do something like this:

service MailScanner stopms

rpm -e perl-IO
rpm -e perl-Math-BigInt
rpm -e perl-Math-BigRat
rpm -e perl-bignum
rpm -e perl-File-Temp

(and any other perl modules it complains about)

yum update perl

... Reinstall MailScanner from Julian's script

service MailScanner restart 

and, to be on the safe side, finish off with a

yum update

Messy, I know, but it works.



Phil Randal | Networks Engineer
Herefordshire Council | Deputy Chief Executive's Office | I.C.T.
Services Division
Thorn Office Centre, Rotherwas, Hereford, HR2 6JT
Tel: 01432 260160
email: prandal at

Any opinion expressed in this e-mail or any attached files are those of
the individual and not necessarily those of Herefordshire Council.

This e-mail and any attached files are confidential and intended solely
for the use of the addressee. This communication may contain material
protected by law from being passed on. If you are not the intended
recipient and have received this e-mail in error, you are advised that
any use, dissemination, forwarding, printing or copying of this e-mail
is strictly prohibited. If you have received this e-mail in error please
contact the sender immediately and destroy all copies of it.

-----Original Message-----
From: mailscanner-bounces at
[mailto:mailscanner-bounces at] On Behalf Of Craig
Sent: 03 April 2009 16:39
To: MailScanner List
Subject: MailScanner, CentOS 5 and perl-IO & perl-File-Temp

# rpm -q mailscanner

I can't be the only person dealing with this and I'm trying to figure
out the best way to handle it. When updating to CentOS 5.3, I ran into
conflicts between CentOS perl package and perl-IO & perl-File-Temp

so I remove perl-IO & perl-File-Temp packages (and some others, less
important) and update moves along.

but then I restart MailScanner because of various perl changes and it
complains bitterly and won't start...

Starting MailScanner

         incoming postfix:     [  OK  ]
         outgoing postfix:     [  OK  ]
         MailScanner:       File::Temp version 0.18 required--this is
only version 0.16 at /usr/lib/perl5/site_perl/5.8.8/MIME/ line
BEGIN failed--compilation aborted
at /usr/lib/perl5/site_perl/5.8.8/MIME/ line 14.
Compilation failed in require
at /usr/lib/perl5/site_perl/5.8.8/MIME/ line 142.
BEGIN failed--compilation aborted
at /usr/lib/perl5/site_perl/5.8.8/MIME/ line 142.
Compilation failed in require
at /usr/lib/MailScanner/MailScanner/ line 41.
BEGIN failed--compilation aborted
at /usr/lib/MailScanner/MailScanner/ line 41.
Compilation failed in require at /usr/sbin/MailScanner line 81.
BEGIN failed--compilation aborted at /usr/sbin/MailScanner line 81.

so I force the installation of perl-IO and perl-File-Temp and things are
OK...MailScanner will start. But then CentOS issues another perl update
and I have to remove them again to update and force the install again to
get MailScanner to run.

There has to be a better way than this...this is no way to run a


This message has been scanned for viruses and dangerous content by
MailScanner, and is believed to be clean.

MailScanner mailing list
mailscanner at

Before posting, read

Support MailScanner development - buy the book off the website! 

More information about the MailScanner mailing list