Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Thu Dec 26, 2013 7:30 am 
Offline
Senior Newbie

Joined: Sun Dec 22, 2013 8:09 am
Posts: 5
Hi,
I'm currently running an ISPConfig3 setup on a linode with 1.5GB RAM, and it's working pretty good.
However, I'd like to optimise it with an aim of running it on a 1GB linode.
I only have about half a dozen websites with associated email accounts, etc. The websites are mainly Wordpress ones.

If I reboot the node and leave it for a few minutes to settle down, it takes about 1GB RAM, but this often rises to around 1.3 - 1.4GB in use.

Looking at the memory usage, the greediest one seems to be ClamAV running with Amavis-new for scanning email: they seem to eat up to around 400MB between them which seems rather excessivee to me!
Code:
Name        Count   CPU     Memory
amavis      3       0%      280 MB
clamd       1       0%      245 MB
apache2     11      0.01%   152 MB
mysqld      1       0.14%   48 MB

So I'm trying to decide what my options are and would really appreciate your thoughts / recommendations.
Do I:
- Remove all av / amavis packages to free up the ram (but take a risk on virused an wormed emails?
- Keep what I have but "tune" it. If so, are there many parameters to reduce RAM usage?
- Change from ClamAV to something else, if so which AV? BTW, ClamAV is currently running as the daemon (clamavd)
- Something else?

So any ideas on where to go from here?

Thanks in advance,
Xav


Top
   
PostPosted: Thu Dec 26, 2013 3:27 pm 
Offline
Senior Member
User avatar

Joined: Sun Jan 18, 2009 2:41 pm
Posts: 830
I presume you need to handle incoming e-mail? If not (or if you can outsource this to Gmail or someone), then you have no reason to run AV at all. If you do, the best way to avoid content scanning consuming resources is not to do it.

If you are running Postfix, my personal generic recommendation is to set up configuration options (reject_non_fqdn_helo_hostname, reject_invalid_helo_hostname, reject_non_fqdn_sender, reject_unknown_sender_domain, reject_unauth_pipelining, reject_non_fqdn_recipient, reject_unknown_recipient_domain, reject_unauth_destination, and reject_unlisted_recipient) first, then greylisting.

If that's not sufficient, next I would use a DNS block list (DNSBL), probably zen.spamhaus.org: make sure you read its terms of use first!

Employing content scanning like ClamAV/Amavis/SpamAssassin would be my last step. The fact that most spam is already dealt with by the other measures should reduce the load by itself.

See this thread for a bit more explanation of the above.


Top
   
PostPosted: Thu Dec 26, 2013 3:53 pm 
Offline
Senior Member
User avatar

Joined: Sun Dec 27, 2009 11:12 pm
Posts: 1038
Location: Colorado, USA
Do a quick google on ClamAV detection rates - and you'll be dropping that useless memory hog in a heartbeat.

Assuming you have anything at all AV-wise running at the client level, you won't be increasing your risk factor at all.

_________________
Either provide enough details for people to help, or sit back and listen to the crickets chirp.
Security thru obscurity is a myth - and really really annoying.


Top
   
PostPosted: Thu Dec 26, 2013 6:45 pm 
Offline
Senior Newbie

Joined: Sun Dec 22, 2013 8:09 am
Posts: 5
Thanks Vance and vonskippy.
After doing a little bit of research, it looks like clamav isn't that effective, or certainly doesn't give you value for memory!
I think amavis will go too as there's no point of having amavis if you don't have some form of AV.
Oh and to answer your questions, yes, the server is a mail server as well as a web server.
Will continue reading, but thanks again for your input. :)


Top
   
PostPosted: Sat Jan 04, 2014 10:06 am 
Offline
Senior Newbie

Joined: Sun Dec 22, 2013 8:09 am
Posts: 5
Just a quick update: I've now removed it and have implemented stronger checks on postfix. I can now run it all on my 1GB Linode and swap file is rather small, so will stick to that for the time being.
Thanks again and happy new year :)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group