Page 1 of 1

mailscanner upgrading problem

Posted: 06 Jan 2009, 08:05
by webadmin
Hi

today i tried to upgrade mailscanner latest version which updates some perl installer
from cpan but its getting stack after some stage.

CPAN: Compress::Zlib loaded ok (v1.42)
............................................................................DON
E
CPAN: LWP::UserAgent loaded ok (v5.810)
CPAN: Time::HiRes loaded ok (v1.9715)
Fetching with LWP:

http://ftp.stu.edu.tw/CPAN/modules/02pa ... ils.txt.gz

its not going beyond from the above lines can you please tell what could be
the problem. though my another cpanel server this version loaded without having any problem.

cPanel 11.24.4-R32603 - WHM 11.24.2 - X 3.9 running on Centos 5.2

Posted: 06 Jan 2009, 11:04
by webadmin
also getting the following msg when restarting mailscanner

Shutting down MailScanner daemons:
MailScanner: [FAILED]
Waiting for MailScanner to stop..
Starting MailScanner daemons:
MailScanner: Could not create SpamAssassin temporary directory , No such file or directory at /usr/mailscanner/lib/MailScanner/SA.pm line 80.
Please move your "Lockfile Dir" setting in MailScanner.conf.
It should point outside /tmp, preferably /var/spool/MailScanner/incoming/Locks

Posted: 06 Jan 2009, 16:01
by Sarah
Have you tried upgrading MailScanner manually via SSH? Try this, and choose option 2, quick perl module check.

Regarding the other errors, what are your settings in MailScanner.conf for:

SpamAssassin Temporary Dir = /var/spool/MailScanner/incoming/SpamAssassin-Temp
Lockfile Dir = /var/spool/MailScanner/incoming/Locks

If they are as above, check the permissions and ownership on /var/spool/MailScanner/incoming

Posted: 07 Jan 2009, 05:10
by webadmin
root@whm1 [~/msinstall]# sh install.sh

Installing MailScanner service into /etc/init.d/ ...

`MailScanner' -> `/etc/init.d/./MailScanner'
mode of `/etc/init.d/MailScanner' changed to 0700 (rwx------)

Performing MailScanner installation/upgrade...


MailScanner Installation/Upgrade Script
=======================================

1 Upgrade the existing installation - full perl module installation
2 Upgrade the existing installation - quick perl module check
3 Uninstall the existing installation

9 Quit

Select an option [1]: 2
Removing old distributions...
Done
Downloading MailScanner from mailscanner.info...
...0%
...5%
...10%
...15%
...20%
...25%
...30%
...35%
...40%
...45%
...50%
...55%
...60%
...65%
...70%
...75%
...80%
...85%
...90%
...95%
...100%

Done
Expanding new distribution...
Done
Installing/Upgrading Perl Modules (this could take a while)...
Method: Perl Expect
Testing connection speed...(using fast method)...Done
Ping:188.098 Testing connection speed to cpan.stu.edu.tw using pureperl...(22357.14 bytes/s)...Done
Ping:192.182 Testing connection speed to ftp.stu.edu.tw using pureperl...(24076.92 bytes/s)...Done
Ping:1000 Testing connection speed to cpan.msi.umn.edu using pureperl...(9812.50 bytes/s)...Done
Three usable mirrors located
Three usable mirrors located
Mirror Check passed for ftp.stu.edu.tw (/index.html)
Unknown config variable 'less'
commit: wrote '/usr/lib/perl5/5.8.8/CPAN/Config.pm'
CPAN: Storable loaded ok (v2.18)
Going to read /home/.cpan/Metadata
Database was generated on Tue, 23 Dec 2008 06:26:52 GMT
Going to read /home/.cpan/sources/authors/01mailrc.txt.gz
CPAN: Compress::Zlib loaded ok (v1.42)
............................................................................DONE
CPAN: LWP::UserAgent loaded ok (v5.810)
CPAN: Time::HiRes loaded ok (v1.9715)
Fetching with LWP:
http://ftp.stu.edu.tw/CPAN/modules/02pa ... ils.txt.gz

it stacked again here. checked the /var/spool/MailScanner/incoming/Locks permission it was changed to mailnull.root and all the lockfiles permission were root.root i changed the directory permission to roo.mail and all the files permission to mailnull.mail
can you please tell why perl module is not updating or checking from cpan i communicated with cpanel they informed that there is no cpanel related issue.

Posted: 08 Jan 2009, 15:45
by chirpy
That shows that the procedure is failing when trying to update perl modules through cpan. It's that that you need to investigate and fix.

Posted: 10 Jan 2009, 07:05
by webadmin
I am seeing the following cpan mirror site has problem

http://ftp.stu.edu.tw/CPAN/modules/02pa ... ils.txt.gz

from here no file is downloading and its taking huge time to download. can you suggest how can we remove the above mirror from cpan mirror lists?

Posted: 11 Jan 2009, 09:48
by chirpy
You need to delete /home/.cpan and /home/.cpcpan and then run the setup again. This will establish a new set of responsive cpan mirrors.