HOWTO: Upgrade layer1 MailScanner

damainman

Well-Known Member
Nov 13, 2003
515
0
166
okay, it started now.. however i looked in mailscanner.conf and noticed its just a blank file...:confused:

edit:

Okay i decided to do these once more:

../bin/upgrade_MailScanner_conf
../bin/upgrade_MailScanner_conf MailScanner.conf MailScanner.conf.new > MailScanner.new

and now it seems to be creating the conf file...... i'll update this post when its done, to see what happens..

===============================
Update:

Okay i'm looking in the config file, and it looks like the setting that were previously put in from layer1, is gone. For example, now the conf file has no virus scanner set, and run as user, and run as group are blank ... damn lol... i was planning to sleep early tonight.. i think i'm just going to reinstall and upgrade everything from scratch....:(
 
Last edited:

anand

Well-Known Member
Nov 11, 2002
1,432
1
168
India
cPanel Access Level
DataCenter Provider
Originally posted by damainman
okay, it started now.. however i looked in mailscanner.conf and noticed its just a blank file...:confused:

edit:

Okay i decided to do these once more:

../bin/upgrade_MailScanner_conf
../bin/upgrade_MailScanner_conf MailScanner.conf MailScanner.conf.new > MailScanner.new

and now it seems to be creating the conf file...... i'll update this post when its done, to see what happens..

===============================
Update:

Okay i'm looking in the config file, and it looks like the setting that were previously put in from layer1, is gone. For example, now the conf file has no virus scanner set, and run as user, and run as group are blank ... damn lol... i was planning to sleep early tonight.. i think i'm just going to reinstall and upgrade everything from scratch....:(
If you need the default conf file from layer1, just download the tar.gz file, extract it, extract the mailscanner package inside it, you will find the conf file. Place it inside /usr/mailscanner/etc/MailScanner.conf. Now you can run updates.
 

anand

Well-Known Member
Nov 11, 2002
1,432
1
168
India
cPanel Access Level
DataCenter Provider
And if you plan to go by scratch install, go by the steps of my howto posted in another thread. it was for a different version of clam, though you won;t have trouble to change it to the new version. Incase you need help, just let me know. I will make the steps and post.
 

bgfweb

Member
Nov 19, 2003
10
0
151
earth
Originally posted by anand
And if you plan to go by scratch install, go by the steps of my howto posted in another thread. it was for a different version of clam, though you won;t have trouble to change it to the new version. Incase you need help, just let me know. I will make the steps and post.
make the steps for an upgrade please. thanks :)
 

equens

Well-Known Member
Feb 8, 2002
283
5
318
What is the correct way to stop, start o restart mailscanner?

What is the correct way to stop, start o restart mailscanner? I have update the Mailscanner.conf and I need to restart it. Thanks!
 

anand

Well-Known Member
Nov 11, 2002
1,432
1
168
India
cPanel Access Level
DataCenter Provider
Re: What is the correct way to stop, start o restart mailscanner?

Originally posted by equens
What is the correct way to stop, start o restart mailscanner? I have update the Mailscanner.conf and I need to restart it. Thanks!
killall MailScanner

You might need to repeat the above a couple of times before all the threads are killed.

To start mailscanner

/usr/mailscanner/bin/check_mailscanner

This will start the mailscanner.
 

casey

Well-Known Member
Jan 17, 2003
2,288
0
191
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
I also had to install the following perl modules:
Net::CIDR
Inline

Then I had to change the following line in MailScanner.conf:
Monitors for ClamAV Updates = /usr/local/share/clamav/*.cvd
to:
Monitors for ClamAV Updates = /usr/share/clamav/*.cvd
Now it works with clamavmodule :)
 

Dreamer

Well-Known Member
Jun 23, 2003
129
0
166
Bulgaria
Hmm, used this howto, but with the latest mailscanner from the homepage and got:
[email protected] [/usr]# /usr/mailscanner/bin/check_mailscanner
Starting MailScanner...
Can't locate Convert/BinHex.pm in @INC (@INC contains: /usr/mailscanner/lib /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 . /usr/mailscanner/lib) at /usr/mailscanner/lib/MailScanner/BinHex.pm line 44.
BEGIN failed--compilation aborted at /usr/mailscanner/lib/MailScanner/BinHex.pm line 44.
Compilation failed in require at /usr/mailscanner/lib/MailScanner/Message.pm line 47.
BEGIN failed--compilation aborted at /usr/mailscanner/lib/MailScanner/Message.pm line 47.
Compilation failed in require at /usr/mailscanner/bin/MailScanner line 52.
BEGIN failed--compilation aborted at /usr/mailscanner/bin/MailScanner line 52.
 

Sheriff

Member
Jan 31, 2004
7
0
151
Followed the main tutorial line by line but received two errors when trying to execute two of the commands


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

Received Error:

Can't do inplace edit: /usr/mailscanner.new/lib/MailScanner is not a regular file, <> line 2419
Code:
perl -pi -e "s/\/opt\/MailScanner/\/usr\/mailscanner/g"  /usr/mailscanner.new/lib/MailScanner/*
Received Error:

Can't do inplace edit: /usr/mailscanner.new/lib/MailScanner/CustomFunctions is not a regular file, <> line 5076
Any ideas?
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
33
473
Go on, have a guess
Hi,

You can ignore the errors, they're caused by attempting to search&replace the directory files in addition to their contents.
 

Sheriff

Member
Jan 31, 2004
7
0
151
Cheers for the great tutorial. Although in the log files it shows Starting MailScanner 4.29.7. Mailscanner-4.29.7-1.tar.gz untared to Mailscanner-4.29.7.

This be correct?