HOWTO: Upgrade layer1 MailScanner

hostseeker

Well-Known Member
Sep 4, 2001
86
0
306
Thanks, it seems to be working now so I think I will leave well enough alone.

It seems that Mailscanner upgraded to 4.28.5 however ClamAV is still 0.60

I think I will just leave it that way for now, as I was unable to get email at all for a couple of yours while the files and paths were screwed up.
 

anand

Well-Known Member
Nov 11, 2002
1,432
1
168
India
cPanel Access Level
DataCenter Provider
Originally posted by hostseeker
Thanks, it seems to be working now so I think I will leave well enough alone.

It seems that Mailscanner upgraded to 4.28.5 however ClamAV is still 0.60

I think I will just leave it that way for now, as I was unable to get email at all for a couple of yours while the files and paths were screwed up.
You could follow my howto to update clam.
 

casey

Well-Known Member
Jan 17, 2003
2,288
0
191
I upgraded successfully, but it doesn't want to use clamavmodule. It simply refuses to deliver messages. If I change it back to clamav it starts working again. How can I find out why it doesn't like clamavmodule?

Yes, Mail::ClamAV is installed. :D
 

hostseeker

Well-Known Member
Sep 4, 2001
86
0
306
Originally posted by anand
You could follow my howto to update clam.
Okay I will! Is it the original post in the 5 page thread or is there an updated post?

It it matters I am running RH Enterprise 3 with the latest kernel.
 

anand

Well-Known Member
Nov 11, 2002
1,432
1
168
India
cPanel Access Level
DataCenter Provider
Originally posted by hostseeker
Okay I will! Is it the original post in the 5 page thread or is there an updated post?

It it matters I am running RH Enterprise 3 with the latest kernel.
Yes its in that thread only. If you read it, you will surely find the post which says CLAM only update.
 

anand

Well-Known Member
Nov 11, 2002
1,432
1
168
India
cPanel Access Level
DataCenter Provider
Originally posted by casey
I upgraded successfully, but it doesn't want to use clamavmodule. It simply refuses to deliver messages. If I change it back to clamav it starts working again. How can I find out why it doesn't like clamavmodule?

Yes, Mail::ClamAV is installed. :D
Casey could you just explain this ? I am confused. This question is pointed to my howto or ... Sorry.
 

casey

Well-Known Member
Jan 17, 2003
2,288
0
191
Originally posted by anand
Casey could you just explain this ? I am confused. This question is pointed to my howto or ... Sorry.
:D I guess I had an attack of newbiness. I mean for the virus scanning option in MailScanner.conf.
...Not necessarily anything to do with the howto.
 

hostseeker

Well-Known Member
Sep 4, 2001
86
0
306
Originally posted by hostseeker
Okay I will! Is it the original post in the 5 page thread or is there an updated post?

It it matters I am running RH Enterprise 3 with the latest kernel.
Okay I did the Clam AV update and how have 0.67-1

The only difference for me was that existing clamscan 0.60 was located at /usr/bin/clamscan and not /usr/bin/local/clamscan

Perhaps because I have RHE? Anyway, I renamed clamscan to clamscanold before I did the make install and it worked fine.

Thank you anand!
 

anand

Well-Known Member
Nov 11, 2002
1,432
1
168
India
cPanel Access Level
DataCenter Provider
Originally posted by hostseeker
Okay I did the Clam AV update and how have 0.67-1

The only difference for me was that existing clamscan 0.60 was located at /usr/bin/clamscan and not /usr/bin/local/clamscan

Perhaps because I have RHE? Anyway, I renamed clamscan to clamscanold before I did the make install and it worked fine.

Thank you anand!
np :D
 

rs-freddo

Well-Known Member
May 13, 2003
828
1
168
Australia
cPanel Access Level
Root Administrator
ClamAV Version 0.68 has been released.
"The changes in this release are as follows:
This version fixes a crash with some RAR archives generated by the
Bagle worm. A few important fixes have been backported from CVS."
:D
 

damainman

Well-Known Member
Nov 13, 2003
515
0
166
Originally posted by rs-freddo
ClamAV Version 0.68 has been released.
"The changes in this release are as follows:
This version fixes a crash with some RAR archives generated by the
Bagle worm. A few important fixes have been backported from CVS."
:D
to many updates lol... i wonder if cpanel is ever going to start upgrading their mailscanner package
 

damainman

Well-Known Member
Nov 13, 2003
515
0
166
Okay when i put in this line:

perl -pi -e "s/\/opt\/MailScanner/\/usr\/mailscanner/g" /usr/mailscanner.new/lib/*

I get the following error:

Can't do inplace edit: /usr/mailscanner.new/lib/MailScanner is not a regular file, <> line 2415.


I'm afraid to continue with the process... can someone advise?
 

damainman

Well-Known Member
Nov 13, 2003
515
0
166
thank you, i wasn sure if i should move on, or start from the beggining or what.. but thanks for ur reply :)
 

damainman

Well-Known Member
Nov 13, 2003
515
0
166
Okay i edited the "/usr/mailscanner/etc/MailScanner.conf
" file, and procedded to the next steps.

Now when i enter :/usr/mailscanner/bin/check_mailscanner

I get this error:

Cannot open config file /usr/mailscanner/etc/MailScanner.conf, No such file or directory at /usr/mailscanner/lib/MailScanner/Config.pm line 535.
====

My mailscanner.conf file disapeered? When i go back to edit it.... it doesn't exist anymore... what happened to it?

Also i looked in the DIR, and found: MailScanner.conf.new* ...
 
Last edited:

casey

Well-Known Member
Jan 17, 2003
2,288
0
191
You must have forgotten this step:
mv -f MailScanner.new MailScanner.conf

Do that and then try it again.
 

damainman

Well-Known Member
Nov 13, 2003
515
0
166
i don't believe i missed that stepp, but i'll try just in case.. but which directory should i be in when i do that? THank you for your reply.

- I looked in the mailscanner.conf.new ... and the configurations are not the same as when i edited mailscanner.conf before i killed mailscanner. For example in the conf.. for usergroups and stuff.. the previous one.. had something in the "Run as User", but in the mailscanner.conf.new... its blank next to it...... would it just be wise to start again from the beggining?
 
Last edited:

casey

Well-Known Member
Jan 17, 2003
2,288
0
191
Try
cd /usr/mailscanner/etc/
and then do these steps again:
../bin/upgrade_MailScanner_conf
../bin/upgrade_MailScanner_conf MailScanner.conf MailScanner.conf.new > MailScanner.new
mv -f MailScanner.conf MailScanner.old
mv -f MailScanner.new MailScanner.conf