Page 1 of 1
ART Anti Spam+Virus on a VPS
Posted: Thu Oct 09, 2008 8:40 am
by laughingbuddha
Hi,
I've just moved as a temp measure to a GeekStorage VPS in the US from webfusion whilst I'm sorting out my server. They are happy for me to use YUM and the ART channel and have installed my Plesk 8.6 VPS on CentOS 5.x
It's all up and running with 3 IPs 2 of which are nameservers.
I'm not willing to pay Plesk an extra $24 a month for a poorly maintained Anti-Spam solution, so I'm wondering how to install and configure the ART solutions.
I would like Anti-Virus and Anti-Spam support, but I'm no Linux guru and still feeling my way around YUM's, Repos and Linux OS. Could someone help me out with some pointers?
Thanks,
Matt
Posted: Thu Oct 09, 2008 9:26 am
by scott
Sure, its pretty easy. First I'd make sure psa-spamassassin and drweb arent installed. Then just set up the atomic channel,
wget -q -O -
http://www.atomicorp.com/installers/atomic |sh
Install clamd:
yum install clamd
and install qmail-scanner
yum install qmail-scanner
Posted: Thu Oct 09, 2008 12:36 pm
by laughingbuddha
Scott your a legend. Thanks!
What things do I need to know about configuring and logs and such, or is it ready to run after installation?
Thanks again,
Matt
Posted: Thu Oct 09, 2008 12:40 pm
by scott
there is a config file here: /etc/qmail-scanner.ini, and a utility to update qmail-scanner, qmail-scanner-reconfigure
You can check the qmail-scanner website for other info if you want to get into more nitty gritty settings.
Posted: Tue Nov 11, 2008 6:55 pm
by laughingbuddha
Hi Scott,
I've just got around to doing the instructions above, and now I'm getting a Plesk diagnostics screen telling me "The SMTP server service is switched off".
HELP!
Posted: Wed Nov 12, 2008 2:43 pm
by scott
Is it really off? Plesk cant always tell accurately. Id check by telnetting to the SMTP port
Posted: Wed Nov 12, 2008 2:55 pm
by laughingbuddha
Ok Telnet. Now you got me.
It doesn't matter what screen you try to access in the Plesk interface, it still flags up the issue. Kinda stuck now.
Geek Storage techs have said there going to remove qmail and clamd, but that really defeats the point and I'm not convinced there causing the issue as I had no errors on the installs, and nothing in the logs. It's a virgin VPS box. All I have done is run yum updates.
Dam I wish I knew what I was doing on Linux like I do on Windows servers.
Matt
Posted: Wed Nov 12, 2008 5:09 pm
by faris
no, its OK. I have several systems with qmail-scanner installed and plesk says smtp is down. Just ignore it.
The key is to do a:
tail -f /usr/local/psa/var/log/maillog
and you'll see email coming in, going out, and so on.
Faris.
Posted: Wed Nov 12, 2008 8:25 pm
by laughingbuddha
Humm, issue solved. This is Geek Storage tech's reply:
"As for the error that was coming up with SMTP in plesk, this should be fixed now, port 8880 needed opened on the firewall."
So nothing to do with Plesk, Qmail or clamd, simply there firewall.
Oh well that's fixed now.
Next issue is the SSL certificate I did have working, but isn't now.
Any ideas for plesk server management?
Thanks guys, your all starz.
Matt
Posted: Thu Nov 13, 2008 10:46 am
by scott
I cant see how port 8880 could have done that. Its just the unencrypted plesk httpsd port.
Posted: Thu Nov 13, 2008 7:10 pm
by laughingbuddha
Yeah, sounds strange but that's what they said.
There going to re-install the VPS due to the SSL cert getting screwed up. Again, no idea why that happened but it has. So it means I gotta go through it all again on Monday once the install is finished.
Hopefully it'll go a little more smothly this time.
Thanks for your support guys.
Matt
Posted: Thu Nov 20, 2008 2:46 pm
by laughingbuddha
Hi,
I install clamd and qmail-scanner on the box, but I've just had a bit of spam come through.
I read the header info of the email and I don't see an indication of spam score like with spamassassin.
If it really working?
Matt
Posted: Fri Nov 21, 2008 10:56 am
by scott
Doesnt sound like it, make sure spamd is running and run qmail-scanner-reconfigure
Posted: Fri Nov 21, 2008 11:48 am
by laughingbuddha
Yeah I didn't realise that, being a newbie with Linux and all.
So this is the steps I followed to fo this. I first remove drweb first which I did using this command from
this post:
# yum remove drweb-qmail drweb
I then check psa-spamassassin was uninstalled using:
# yum remove psa-spamassassin
And installed qmail scanner, clamd, and spamassassin using:
# yum install clamd
# yum install qmail-scanner
Even though I read on another site that you can run # chkconfig spamassassin on I didn't use that command as I didn't think I would need to using your repo. I then ran the the qmail reconfigure using:
# qmail-scanner-reconfigure
And finaly setup ClamAV to update it's virus database twice a day using:
# freshclam -d -c 2
Does Spamassassin update itself automaticly, or do I need to do that. Is there a command if I do?
I tried using the command mentioned by faris to view the mail log, but since using qmail it just hangs there and nothing comes on the screen. Why?
Matt