datah

Member
Apr 4, 2003
10
0
151
Hi,

After last nights upcp now MailScanner keeps failing. I tried running all the commands I read by chirpy that should be run after a upcp and it keeps failing.

Something that I saw that I think is what broke it seems that Perl got upgraded and a couple of modules. I tried removing MailScanner completely and re-installing and it just wont work again!

Someone please help me as I do love MailScanner since it helped me get all my customers rid of spam!

Thanks in advance
 

AndyReed

Well-Known Member
PartnerNOC
May 29, 2004
2,217
4
193
Minneapolis, MN
datah said:
I tried removing MailScanner completely and re-installing and it just wont work again!
Did you, first, stop mailscanner, and then remove it? Are you sure that you completely removed mailscanner, before re-installing a fresh copy? Read this post http://forums.cpanel.net/showthread.php?p=150118 and search this forum for more info on how to remove mailscnner.
 

datah

Member
Apr 4, 2003
10
0
151
Nothing has worked. I ended up taking MailScanner out since it does not work. I removed it completely, re-installed it, tried everything, it wont work.
 

kris1351

Well-Known Member
Apr 18, 2003
961
0
166
Lewisville, Tx
We had this problem last night also, have completely uninstalled and reinstalled it and still get MailScanner failed messages at least once every 20 minutes. Out of 10 servers only 1 had the problem is the wonderful part. Whenever MailScanner restarts it gets flooded and then dies a few minutes later, has made for a fun day tracking a gremlin.

PS: We are using Chirpy's MS setup with ClamAV and the MS/MW frontend. All has worked perfectly until last nights update.
 

datah

Member
Apr 4, 2003
10
0
151
What is the MS/MW frontend?

If its useful, how can I get a how to on how to install it? Thanks
 

kris1351

Well-Known Member
Apr 18, 2003
961
0
166
Lewisville, Tx
Chirpy's company has a full frontend to MailScanner that I HIGHLY recommend. It also comes with MailWatch to give you statistics of the spam mails processed by your servers.
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
33
473
Go on, have a guess
The problem (and we're seeing a lot of them) has nothing to do with MailScanner per se. It's because you're not excluding perl updates from your OS providers update utility. There was a recent update to RH based OS's with a new iteration of perl which fixes some security bugs. Most likely this has downgraded your installed version of perl (perhaps v5.8.7) to v5.8.0 which won't contain all the perl modules you need to run many things including MailScanner, cPanel and it will almost definitely break cPanel stats.

Fix is simply:

cd /usr/bin
ls -la perl*


establish which version of perl you should be using:

cp -avf perl5.x.x perl

Check it's correct with:

perl -v

Check that /usr/local/bin/perl is a symlink to /usr/bin/perl.

Then stop and restart MailScanner, cPanel and any other daemons running through the perl interpreter.
 

datah

Member
Apr 4, 2003
10
0
151
Awesome chirpy thanks!

Do you know how to disable OS Perl updates?

I also wanted to know the cost of your services for the MW/MS frontend.

Thanks!
 

SageBrian

Well-Known Member
Jun 1, 2002
413
2
318
NY/CT (US)
cPanel Access Level
Root Administrator
datah said:
I also wanted to know the cost of your services for the MW/MS frontend.

Thanks!
Priceless

check the links in chirpy's signature. He gracefully doesn't push his own service. It's us, those who swear by him, that push it.
 

murugan

Member
Mar 23, 2004
18
0
151
Mailwatch is not updating

As chirpy said, i have changed perl version to 5.8.7 and now mailscanner is running, but the mailwatch is not getting updated.

Anyone can tell me what could be be wrong ?

Thanks,
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
33
473
Go on, have a guess
If Mailwatch isn't being updated, do:

ps axf | grep SQL

If that finds MailWatch SQL then kill that process. MailScanner will automatcially start another one when it next processes an email and it ought to start working then.
 

ntwaddel

Well-Known Member
Nov 3, 2003
173
0
166
Templeton, CA
I am using chirpy's installed too, and now all boxes are having problems.

mailscanner failed @ Mon Jan 2 16:53:37 2006. A restart was attempted automagicly.

It runs for a little while then just stops with no errors in the log, so strange

i've ran

/usr/mscpanel/mscheck.pl

but it does not seem to help
 

ntwaddel

Well-Known Member
Nov 3, 2003
173
0
166
Templeton, CA
I even tried completely removing and reinstalling and its still doing it, it just stops running with no errors

im stumped
 

ntwaddel

Well-Known Member
Nov 3, 2003
173
0
166
Templeton, CA
ntwaddel said:
I am using chirpy's installed too, and now all boxes are having problems.

mailscanner failed @ Mon Jan 2 16:53:37 2006. A restart was attempted automagicly.

It runs for a little while then just stops with no errors in the log, so strange

i've ran

/usr/mscpanel/mscheck.pl

but it does not seem to help
well i fixed my problem, i ran the debug and i kept getting

Ignore errors about failing to find EOCD signature
Usage: Cwd::getcwd() at /usr/lib/perl5/5.8.3/File/Path.pm line 267.

So i went to line 267

and changed

my $oldpwd = &Cwd::getcwd;
$oldpwd or do {

to

my $oldpwd = getcwd or do {


no problems so far