Problem starting MailScanner due to missing pm module

Naz Snidanko nsnidanko at harperpowerproducts.com
Tue Feb 15 19:06:19 GMT 2011


Hi Andrew,

First check if your spamassassin is working properly. To do so run this command and check for any errors:

echo "test" | spamassassin -D 2>&1 | more

If you confirm it please test mailscanner:

MailScanner --lint

and look for the following lines:

Your envelope_sender_header in spam.assassin.prefs.conf is correct.
MailScanner setting GID to  (115)
MailScanner setting UID to  (106)

Checking for SpamAssassin errors (if you use it)...
Using SpamAssassin results cache
Connected to SpamAssassin cache database
SpamAssassin reported no errors.

This will tell you that spamassassin is working with mailscanner.

On top of that you can check your mail.log for something like this:

Feb 15 14:02:28 ares MailScanner[11142]: Message 531176112C.A09E0 from 209.**2.**.6 (n****@wa***.com) to harperpowerproducts.com is not spam, SpamAssassin (not cached, score=-2.599, required 5, autolearn=not spam, BAYES_00 -2.60, HTML_MESSAGE 0.00, SPF_PASS -0.00)
----------------------------------------------------------------
./1/eicar.com: Eicar-Test-Signature FOUND

Virus Scanning: ClamAV found 1 infections
Infected message 1 came from 10.1.1.1
Virus Scanning: Found 1 viruses

Shows that antivirus is working (in my case clamav)

Please note that spamassassin bayes database will work after you feed it 200 "spam" and 200 "ham" emails.

Hope it helps,


Naz Snidanko
Desktop & Network Support
Harper Power Products Inc.
(p) 416 201- 7506
 nsnidanko at harperpowerproducts.com
 
-----Original Message-----
From: mailscanner-bounces at lists.mailscanner.info [mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf Of Kaplan, Andrew H.
Sent: February 15, 2011 1:47 PM
To: MailScanner discussion
Subject: RE: Problem starting MailScanner due to missing pm module

Hi there --

I did the comparison of the two MailScanner.conf files, and neither one had a
"use spamassassi" line
in them. The two commands that were listed did not list any warnings that were
apparent show stoppers.

I started MailScanner, and the messages did make mention of MailScanner
"referencing" the SpamAssassin
application. Additionally, the "strongly recommended" cronjobs ran at least
once. 

The only other question I have is, is there a way to confirm or test that
MailScanner is utilizing both 
SpamAssassin and ClamAV applications?

 

-----Original Message-----
From: mailscanner-bounces at lists.mailscanner.info
[mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf Of Randal, Phil
Sent: Tuesday, February 15, 2011 12:22 PM
To: MailScanner discussion
Subject: RE: Problem starting MailScanner due to missing pm module

There's a default MailScanner.conf in the tarball.  Compare that with the one
you have in /etc/MailScanner

Also try 

MailScanner --changed

It'll tell you where your config differs from the default.

And try

MailScanner --lint

Taking note of any warnings..

Cheers,

Phil

-- 
Phil Randal | Infrastructure Engineer 
NHS Herefordshire & Herefordshire Council  | Deputy Chief Executive's Office |
I.C.T. Services Division 
Thorn Office Centre, Rotherwas, Hereford, HR2 6JT 
Tel: 01432 260160

-----Original Message-----
From: mailscanner-bounces at lists.mailscanner.info
[mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf Of Kaplan, Andrew
H.
Sent: 15 February 2011 16:49
To: MailScanner discussion
Subject: RE: Problem starting MailScanner due to missing pm module

Hi there --

I checked out the script in question, and the syntax to be used here would be
the tar file.
The problem is that while I have the MailScanner.conf file, I do not have the
.new file. 

I did a search of the root directory, and there is no instance of the
MailScanner.new file anywhere. The absense of the file would seem to prevent my
running the script using that syntax.

I do have the rpmnew file, but I am not sure if that would work with this
version of the application.



-----Original Message-----
From: mailscanner-bounces at lists.mailscanner.info
[mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf Of Randal, Phil
Sent: Tuesday, February 15, 2011 11:24 AM
To: MailScanner discussion
Subject: RE: Problem starting MailScanner due to missing pm module

Have you run upgrade_MailScanner_conf and followed the intructions therei?

Phil
--
Phil Randal | Infrastructure Engineer
NHS Herefordshire & Herefordshire Council  | Deputy Chief Executive's Office |
I.C.T. Services Division Thorn Office Centre, Rotherwas, Hereford, HR2 6JT
Tel: 01432 260160

-----Original Message-----
From: mailscanner-bounces at lists.mailscanner.info
[mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf Of Kaplan, Andrew
H.
Sent: 15 February 2011 14:00
To: MailScanner discussion
Subject: RE: Problem starting MailScanner due to missing pm module

Hi there --

It turns out what I needed to do was remove the existing MailScanner package,
and then download and install the newest version along with the easy install
package of clamav and spamassassin. Thanks to all for the feedback on that.

As a followup: I went to the MailScanner.conf file, located in the
/etc/MailScanner directory, to verify that it is using spamassassin. Previously
there was a line within the file that had the syntax:

"use spamassassin = yes"

However, when I look now, there is no line with that syntax in the file. Is this
by design, or do I need to add a line with that syntax to the file, and
subsequently restart MailScanner?

Thanks. 

-----Original Message-----
From: mailscanner-bounces at lists.mailscanner.info
[mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf Of Martin Hepworth
Sent: Monday, February 14, 2011 3:35 PM
To: MailScanner discussion
Subject: Re: Problem starting MailScanner due to missing pm module

I'd check the install,  I was under the impression the two installers were
separate

On Monday, 14 February 2011, Mikael Syska <mikael at syska.dk> wrote:
> Hi,
>
> MessageBatch.pm is part of MailScanner so something must have gone 
> wrong with the installtion.
>
> I would try and install MailScanner one more time ... or look in the 
> package for that file.
>
> mvh
>
> On Mon, Feb 14, 2011 at 8:07 PM, Kaplan, Andrew H.
> <AHKAPLAN at partners.org> wrote:
>> Hi there --
>>
>> I recently upgraded MailScanner via the installation package that 
>> includes the ClamAV and SpamAssassin applications.
>> The package version is install-Clam-0.96.5-SA-3.3.1 that includes 
>> version
>> 4.82.6 of the MailScanner program. The operating
>>
>> system environment is the Fedora Core 7 distribution.
>>
>> The installation appeared to go by without issue, but whenever I try 
>> to start MailScanner via the /etc/init.d/MailScanner
>>
>> script, the following output appears on-screen:
>>
>> Starting MailScanner daemons:
>>          incoming sendmail:                                [  OK  ]
>>          outgoing sendmail:                                [  OK  ]
>>          MailScanner:       Can't locate MailScanner/MessageBatch.pm 
>> in @INC (@INC contains: /usr/lib/MailScanner 
>> /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi
>> /usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi
>> /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi
>> /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi
>> /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7
>> /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 
>> /usr/lib/perl5/site_perl 
>> /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi
>> /usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi
>> /usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi
>> /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi
>> /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7
>> /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 
>> /usr/lib/perl5/vendor_perl 
>> /usr/lib/perl5/5.8.8/i386-linux-thread-multi
>> /usr/lib/perl5/5.8.8 /usr/lib/MailScanner) at /usr/sbin/MailScanner 
>> line 103.
>>
>> BEGIN failed--compilation aborted at /usr/sbin/MailScanner line 103.
>>
>> While the Sendmail application starts, the same cannot be said for 
>> the MailScanner application. I did a search for a perl module with 
>> the name MessageBatch.pm, but I did not find one with that name. Is 
>> there another module of which MessageBatch is a part of, or is there 
>> something else that I need to do in order to get MailScanner to work?
>>
>> Thanks.
>>
>> The information in this e-mail is intended only for the person to 
>> whom it is addressed. If you believe this e-mail was sent to you in 
>> error and the e-mail contains patient information, please contact the 
>> Partners Compliance HelpLine at 
>> http://www.partners.org/complianceline . If the e-mail was sent to 
>> you in error but does not contain patient information, please contact 
>> the sender and properly dispose of the e-mail.
>> --
>> MailScanner mailing list
>> mailscanner at lists.mailscanner.info
>> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>>
>> Before posting, read http://wiki.mailscanner.info/posting
>>
>> Support MailScanner development - buy the book off the website!
>>
>>
> --
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>
> Before posting, read http://wiki.mailscanner.info/posting
>
> Support MailScanner development - buy the book off the website!
>

--
--
Martin Hepworth
Oxford, UK
--
MailScanner mailing list
mailscanner at lists.mailscanner.info
http://lists.mailscanner.info/mailman/listinfo/mailscanner

Before posting, read http://wiki.mailscanner.info/posting

Support MailScanner development - buy the book off the website! 
--
MailScanner mailing list
mailscanner at lists.mailscanner.info
http://lists.mailscanner.info/mailman/listinfo/mailscanner

Before posting, read http://wiki.mailscanner.info/posting

Support MailScanner development - buy the book off the website! 
--
MailScanner mailing list
mailscanner at lists.mailscanner.info
http://lists.mailscanner.info/mailman/listinfo/mailscanner

Before posting, read http://wiki.mailscanner.info/posting

Support MailScanner development - buy the book off the website! 
--
MailScanner mailing list
mailscanner at lists.mailscanner.info
http://lists.mailscanner.info/mailman/listinfo/mailscanner

Before posting, read http://wiki.mailscanner.info/posting

Support MailScanner development - buy the book off the website! 
-- 
MailScanner mailing list
mailscanner at lists.mailscanner.info
http://lists.mailscanner.info/mailman/listinfo/mailscanner

Before posting, read http://wiki.mailscanner.info/posting

Support MailScanner development - buy the book off the website! 
-- 
MailScanner mailing list
mailscanner at lists.mailscanner.info
http://lists.mailscanner.info/mailman/listinfo/mailscanner

Before posting, read http://wiki.mailscanner.info/posting

Support MailScanner development - buy the book off the website! 


More information about the MailScanner mailing list