[BlueOnyx:01052] Re: Clam AV
Doug Harvey
dwh1958 at gmail.com
Sun Apr 12 09:13:44 -05 2009
Good read...Thank you for this bit of information...
Doug
_____
From: blueonyx-bounces at blueonyx.it [mailto:blueonyx-bounces at blueonyx.it] On
Behalf Of Phil Hamer
Sent: Sunday, April 12, 2009 3:41 AM
To: blueonyx at blueonyx.it
Subject: [BlueOnyx:01050] Re: Clam AV
Hi.
I have MailScanner, SpamAssassin and ClamAv running under BlueOnyx.
Have a good read around the web but I did the following (according to my
notes so it may not all be correct).
First, I am no Linux Guru and probably never will be. I have used linux for
about 2 years but still learning myself.
Get mailscanner and FTP it to your server and connect with an SSH session.
You can always use WGET and pull it directly to the server
I put all my files to install under /Root/MAKE/MailScanner etc so I can find
all the source stuff easily.
I downloaded a tar version so had to uninstall it with
tar zxf filename
Some of the filenames are tricky; do you know the TAB trick?
If you type tar zxf MailS then press the TAB key, bash will complete the
line for you! (Assuming you have a file which starts MailS)
This works pretty much throughout the whole of the shell for all commands
and file names and paths.
For mailscanner you need the following modules so load them
yum install patch gcc rpm-build
nano /etc/sysconfig/i18n take out _US.UTF-8 from the language bit
so it reads the same as the line above (from memory)
Save the file
./install.sh to load MailScanner
Now go take a short holiday while you wait for it to load.
Ignore the errors just let it keep going for a long while
service sendmail stop
service MailScanner start
MailScanner should now work
CLAMAV
Download file to /Root/MAKE/xxxxx
Extract the archive
yum install zlib zlib-devel bzip2 bzip2-devel
groupadd clamav
useradd -g clamav -s /bin/false -c "Clam Antivirus" clamav
./configure sysconfigdir=/etc
make
su -c "make install"
Now
nano /etc/clamd.conf
Add # to the start of line 1
save file
clamd
setup freshclam (for virus update)
touch /var/log/freshclam.log
chmod 600 /var/log/freshclam.log
chown clamav /var/log/freshclam.log
nano /etc/freshclam.conf
Make Sure that the UpdateLogFile points to /etc/freshclam.log usually does
Think the first line also needs a # at the front to allow the file to run
Save
Now run
freshclam -d
cd /etc/cron_hourly
nano clamav
add this to the file
/usr/local/bin/freshclam -quiet -l /var/log/freshclam.log
save
chmod the file to 0755
This should now update virus defs every hour
Then, yum install spamassassin
Mailscanner files go in /etc/MailScanner/MailScanner.conf
You may need to change in virus section to use ClamAV its easy then
Service MailScanner restart
Spamassassin files /etc/MailScanner/spam.assassin.prefs.conf
And
/etc/mail/spamassassin
Like I said, I just typed this in from my note book but it should work.
Look out for caps at the start of the lines etc (stupid outlook).
Any problems feel free to email me and I will try to help.
I am no linux guru and although I have a few years behind we, would not
profess to be an expert at all.
****************************************************************************
***********
Philip Hamer - Magma Energy Services ltd
phil at magma-group.co.uk
Mobile Telephone 07976 413593
****************************************************************************
***********
MAGMA ENERGY SERVICES LTD
Specialists In The Supply, Installation And Maintenance Of Your Key Business
Services
Heating, Electrical, Fire & Security, Construction,
Plumbing, Air Conditioning, Renewable Energy
Please See Our Web Site www.magma-group.co.uk for up to date details
****************************************************************************
***********
This email document, its contents and any attached or included files are
confidential,
and intended solely for the use of the intended recipient(s) to whom it is
addressed.
If you have received this email in error, please contact MAGMA Energy
Services Ltd
on 01543 422011 or email office at magma-group.co.uk Any unauthorized
disclosure
or use of the whole or part of this message (without prior
consent in writing) is forbidden.Any views or opinions
expressed are solely those of the author and do not necessarily
represent those of Magma Energy Services Ltd.
****************************************************************************
***********
MAGMA Energy Services Ltd, Registered In England 3997735
Registered Office: Magma Energy Services Ltd, Unit 5 Image Business Park,
East Cannock Road, Hednesford, Cannock, West Midlands, WS12 1LT.
Tel: 01543 422011 Fax: 01543 876582
Email office at magma-group.co.uk http://www.magma-group.co.uk
<http://www.magma-group.co.uk/>
****************************************************************************
***********
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.blueonyx.it/pipermail/blueonyx/attachments/20090412/bf865c70/attachment.html>
More information about the Blueonyx
mailing list