Problems with SA/Mailscanner using different perl versions

Julian Field mailscanner at
Tue Nov 16 15:28:07 GMT 2004

Check the first line of /opt/MailScanner/bin/MailScanner.

On 16/11/04 2:26 pm, "Mark Fyvie" <mailscanner at MARKF.MAILSHELL.COM> wrote:

> Hi Martin,
>         Thanks for that tip, I found that I had originally been using the
> rpm version, I found (on closer inspection) that the non-rpm version had an
> additional --perl switch, and I used this (and while it was installing I saw
> it referencing the 5.8.0 version of perl!). So this installed a parallel
> version of mailscanner in /opt/MailScanner, so I decided to keep this one
> and changed the check_mailscanner file to point to this one instead.
> Relevant config options:
> process=MailScanner
> msbindir=/opt/MailScanner/bin (the location of the freshly installed
> MailScanner which points to my 5.8.0 version of perl)
> config=/etc/MailScanner/MailScanner.conf (my existing config file)
> # These seem to get put all over the shop...
> PATH=/home/perl/bin:/usr/bin:/bin (I put the new perl path in front just in
> case...)
> export PATH
> PERL=/home/perl/bin/perl (the path to my 5.8.0 version)
>         I then fire up mailscanner in debug mode, and get the same error I
> got before :-(
> Starting MailScanner daemons:
>          incoming sendmail: ok
>          outgoing sendmail: ok
>          MailScanner:       In Debugging mode, not forking...
> SpamAssassin installation could not be found at
> /opt/MailScanner/lib/MailScanner/ line 119
> The relevant line is:
>    MailScanner::Log::DieLog("SpamAssassin installation could not be found")
>       unless eval "require Mail::SpamAssassin";
> So as I understand it, the SA modules are not being found in my perl
> installation. So I double checked:
> [root MailScanner]# /home/perl/bin/perl -MMail::SpamAssassin -e 1
> Nothing is returned, so the module is installed. This confirms that it is
> living in my 5.8.0 version
> [root MailScanner]# /usr/bin/perl -MMail::SpamAssassin -e 1
> Can't locate Mail/ in @INC (@INC contains:
> /usr/lib/perl5/5.00503/i386-linux /usr/lib/perl5/5.00503
> /usr/lib/perl5/site_perl/5.005/i386-linux /usr/lib/perl5/site_perl/5.005 .).
> BEGIN failed--compilation aborted.
> This is my 5.005 version. SpamAssassin doesn't live there (because I deleted
> it earlier, since 3.0 and above can't run with this version)
> [root MailScanner]# perl -MMail::SpamAssassin -e 1
> Can't locate Mail/ in @INC (@INC contains:
> /usr/lib/perl5/5.00503/i386-linux /usr/lib/perl5/5.00503
> /usr/lib/perl5/site_perl/5.005/i386-linux /usr/lib/perl5/site_perl/5.005 .).
> BEGIN failed--compilation aborted.
> This just confirms that the path environment variable brings us to the 5.005
> version.
> So I guess I am back to square 1: I've told MailScanner to use my 5.8.0
> version, but it still seems to be running with the old one. Is there
> anything else I may have missed?

Julian Field
Buy the MailScanner book at

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654

------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at with the words:
'leave mailscanner' in the body of the email.
Before posting, read the MAQ ( and
the archives (

Support MailScanner development - buy the book off the website!

More information about the MailScanner mailing list