ClamAV and Anti-Spam

Forum for getting help with Project Gamera, Spamassassin, Clamav, qmail-scanner and other anti-spam tools.
laughingbuddha
Forum Regular
Forum Regular
Posts: 512
Joined: Mon Mar 10, 2008 9:12 pm
Location: Southampton, UK

ClamAV and Anti-Spam

Unread post by laughingbuddha »

Hi,

I'm due to install a new server soon, my first live Plesk install as my last 3 installs have been on non-live servers.

I'm going to use CentOS 5 and Plesk 8.3

On my current WebFusion (Pipex) Plesk 7 VPS I use Spam Assassin but no anti virus (due to WebFusion admin). How ever I want to offer my clients anti-virus as well as anti-spam as standard.

What is the best option for this (cheapy cheap) to protect my clients, and what are the install steps on a clean server?


Matt
Galactic Zero
Forum Regular
Forum Regular
Posts: 471
Joined: Mon Dec 06, 2004 10:43 pm

Unread post by Galactic Zero »

Make sure DrWeb is not installed, then make sure psa-spamassassin is uninstalled.

Yum install spamassassin clamd razor pyzor dcc qmail-scanner

Then set your configs in local.cf and qmail-scanner.ini then run qmail-scanner-reconfigure.

That should get you all sorted out.. do some searches here is you get lost.
Franklyn Halamka
Still learning my way around Linux Security.
http://www.galacticzero.net
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

Ive got image-spam rules in clamav now too. (did you know it could do that? :P)
laughingbuddha
Forum Regular
Forum Regular
Posts: 512
Joined: Mon Mar 10, 2008 9:12 pm
Location: Southampton, UK

Unread post by laughingbuddha »

Ok, I had you right up till you said:-

"Yum install spamassassin clamd razor pyzor dcc qmail-scanner"

I'm new to Plesk and Linux and have until recently been using Windows Server (in my old job). I just finished writing a Plesk and CentOS 5 install guide, mainly for my own use to procedure server installs. I wrote this using advice and help from the users over at the Plesk forum.

Matt
laughingbuddha
Forum Regular
Forum Regular
Posts: 512
Joined: Mon Mar 10, 2008 9:12 pm
Location: Southampton, UK

Unread post by laughingbuddha »

Right I did a quick google and found the following:

http://forum.swsoft.com/showthread.php?t=45118

In this thread on the plesk forums, this guy was aiming to secure his newly installed server.

He is using the Atomic repository, FC4 (I will use the latest build of CentOS 5), he also installed OSSEC. What is that, and should I install it too? Are the steps he took in 10th post on that thread good steps to follow?

I will in the middle of the year commit to the paid Atomic services, but for now to get my server up and running I will use the free services.

Also when I take the server for hosting I will be adding additional dedicated ips to the server (haven't yet look at how to do this), will this effect anything I'm doing in the initial setup and install of the server, and can I add the ips in the Plesk GUI or do I have to do it at OS level?

Sorry for the many questions, but I'm a newbie, technicaly minded but still new to Linux and Plesk.

Matt
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

Step 1) set up the atomic, and optionally plesk yum channels:

wget -q -O - http://www.atomicorp.com/installers/atomic |sh


Step 2) install the packages listed above with:

yum install spamassassin clamd razor pyzor dcc qmail-scanner
laughingbuddha
Forum Regular
Forum Regular
Posts: 512
Joined: Mon Mar 10, 2008 9:12 pm
Location: Southampton, UK

Unread post by laughingbuddha »

Ah, cheers.

What config actions do I need to take if any?
Galactic Zero
Forum Regular
Forum Regular
Posts: 471
Joined: Mon Dec 06, 2004 10:43 pm

Unread post by Galactic Zero »

Set your spam score, configure bayes if you are going to use it, delete, bounce etc... Most of that is in the qmail-scanner.ini with comments as to what each does. Set your score and rewrite subject message, bayes info if you are going to use it in the local.cf file.

make sure you run qmail-scanner-reconfigure after you modify the qmail-scanner.ini file and restart spamassassin if you modify the local.cf.

You would also want to setup sa-update as a cron as well as setting a cron for freshclam to autostart on server boots. Freshclam drops a file in the /etc/cron.daily so all you have to do is add it to the crontab. Searchs on this forum will answer most of your config questions. I know I've asked a lot here and have found alot of answers here also from searching.
Franklyn Halamka
Still learning my way around Linux Security.
http://www.galacticzero.net
laughingbuddha
Forum Regular
Forum Regular
Posts: 512
Joined: Mon Mar 10, 2008 9:12 pm
Location: Southampton, UK

Unread post by laughingbuddha »

Wicked, thanks.

I'm going to chuck together a test box to do a test install this week prior to installing my live server.

Just noticed that pesk do all but the unlimited plesk plus as monthly licences.....buggers.
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

You shouldnt have to manipulate freshclam, /etc/cron.daily means it gets run daily.
Galactic Zero
Forum Regular
Forum Regular
Posts: 471
Joined: Mon Dec 06, 2004 10:43 pm

Unread post by Galactic Zero »

hum.. my freshclam was in there but wasn't starting automatically on reboot of server....
Franklyn Halamka
Still learning my way around Linux Security.
http://www.galacticzero.net
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

It doesnt run as a daemon, its configured to update every 24 hours as a client.
Galactic Zero
Forum Regular
Forum Regular
Posts: 471
Joined: Mon Dec 06, 2004 10:43 pm

Unread post by Galactic Zero »

Ok, that makes sense now...

what are the advantages and disadvantages to running it as a daemon?

One advantage is faster updates of the DB.
Overhead the disadvantage?
Franklyn Halamka
Still learning my way around Linux Security.
http://www.galacticzero.net
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

I was told by the clam folks that they only make at most 2 updates a day (that might have changed). So I was trying to design in being a "good-neighbor" to their bandwidth.
laughingbuddha
Forum Regular
Forum Regular
Posts: 512
Joined: Mon Mar 10, 2008 9:12 pm
Location: Southampton, UK

Unread post by laughingbuddha »

Good idea
Post Reply