icon Learn how to get the most out of Surmunity - read our forum tips here! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Discussions » Private Hosting » MailScanner and ClamAV

Private Hosting Questions about VPS, dedicated servers and colocation.

Reply
 
LinkBack Thread Tools Search this Thread
Old August 26th, 2004, 6:02 PM   #1 (permalink)
Surpass Staff
 
Kayla's Avatar
 
Joined in May 2003
Lives in Orlando
23,926 posts
Gave thanks: 904
Thanked 768 times
MailScanner and ClamAV

MailScanner and ClamAV.

These two open source items scan all mail (incoming AND outgoing) on your server for viruses and trojan horses automatically and can clean/delete/notify sender and receiver of any files found to contain a virus, etc.

There are two ways to go about this:

1) The easy but OLD files way
OR
2) The more difficult, but more current files way

The easy way:

Log into your server via SSH. Get the following file from Layer1.cpanel.net and decompress it.

http://layer1.cpanel.net/mailscanner...all-1.5.tar.gz
tar -xvzf mailscanner-autoinstall-1.5.tar.gz
cd mailscanner-autoinstall-1.5.tar.gz
./install

When the installer gets to the point where it says that it is installing the required Perl modules wait a short time and then press ENTER/RETURN to continue installation.

This will do everything you need.

If mail doesn't work after doing this, you can run the uninstaller in this same directory.

./uninstall

The problem is these files are OLD (better than nothing, but not guaranteed to catch all the recent viruses).




If you'd rather go with the more dangerous, but more up-to-date version, the installation notes and the files you need into a single download, you can get here:

http://captainshareware.com/cpMailScanner.tgz

With the changes I made, you only really need the documentation and if you follow the cut'n'paste docs, all files will be downloaded and installed as needed.


I need to warn everyone up-front:

Don't even attempt this if you live and die by e-mail and can't afford some mail server downtime.

I mean that. SH's helpdesk will always gladly attempt to assist you to restore Exim to working order if you screw it up, but don't expect them to undo the mess you've made over the last hour in a few minutes.

If you can't live with the risk, don't even try it.

http://cPanelplus.com/ does offer a "professional" install for $35 if you're in a rush and don't want to attempt this yourself.

Oh.. and don't forget backup EVERYTHING on your server before attempting this.

DO NOT use the CLAMAV module available in WHM 9.5E3 or later if you use MailScanner. I discuss the pros and cons of MS vs. CPANEL's ClamAV module in the install document.

Written by Aric
Kayla is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old November 8th, 2004, 1:13 PM   #2 (permalink)
Just Some Guy..
Comfy Contributor
 
Joined in Oct 2003
127 posts
Gave thanks: 0
Thanked 5 times
As I write this, my currently available directions don't work with CPANEL's new Exim default split-spool configuration. I'll be correcting that shortly, but in the meantime (and for people who want to have a solution that can automatically be installed, updated or removed, I've written up the following directions that assume you are going to use Webumake.com's autoinstaller script.

Keep in mind that this script isn't compatible with my MailScanner installation directions nor is it compatible with CPANEL's rather poorly coded ClamAV module. Directions on how to remove both before installing are included.

For those of you who can wait or already have MailScanner working using my old directions, please wait a day or two until I update them to to work properly under the new exim.conf setup.

Please note that the directions above will still work perfectly if you turn off split-spool in your exim.conf file. The best way to do that (so it doesn't get overwritten by changes is to log into WHM as root and click the Exim Configuration Editor, click the ADVANCED button and place the following in the first text box:
Code:
split_spool_directory = no
and save the changes.

Since the split-spool Exim setup will actually improve mail processing on busy mail servers, you may not want to do that. Either wait a day or use the directions below in that case:

http://captainshareware.com/Automate...nerInstall.txt
Aric is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On