Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 2nd July 2009, 16:16
MrM MrM is offline
Member
 
Join Date: Oct 2008
Location: Ljubljana, Slovenia
Posts: 58
Thanks: 6
Thanked 0 Times in 0 Posts
Default Removing amavisd-new, spamassassin, clamav

Hi,

I have recently installed ISPConfig 3.0.1.3, following the Perfect Server Guide. When done, I noticed that more than half the RAM was being used, with no load on the server at all (it only has 512M of RAM in total). After a closer inspection I found that most of the memory was used by clamav and amavisd-new.

Since most of the e-mail needs will be offloaded to Google Apps for this server, I would like to disable/remove these services. What is the easiest way to do this?

I tried running aptitude purge amavisd-new spamassassin clamav clamav-daemon clamav-docs, but I don't like the look of this:
Code:
The following packages will be REMOVED:
  amavisd-new{p} clamav{p} clamav-base{u} clamav-daemon{p} 
  clamav-docs{p} clamav-freshclam{u} libarchive-zip-perl{u} 
  libberkeleydb-perl{u} libclamav6{u} libconvert-binhex-perl{u} 
  libconvert-tnef-perl{u} libconvert-uulib-perl{u} 
  libcrypt-openssl-bignum-perl{u} libcrypt-openssl-rsa-perl{u} 
  liberror-perl{u} libio-socket-inet6-perl{u} libio-stringy-perl{u} 
  libmail-dkim-perl{u} libmail-spf-perl{u} libmime-tools-perl{u} 
  libnetaddr-ip-perl{u} libsocket6-perl{u} 
  libsys-hostname-long-perl{u} libsys-syslog-perl{u} libtommath0{u} 
  libunix-syslog-perl{u} logrotate{u} pax{u} re2c{u} spamassassin{p} 
  spamc{u} 
0 packages upgraded, 0 newly installed, 31 to remove and 0 not upgraded.
It seems like a lot of packages will be removed if I do this. Particularly, why will logrotate be removed?

Is it safe to remove all these packages? Is there a better way of disabling these services? I would much rather just disable them and not completely remove them from the system.
Reply With Quote
Sponsored Links
  #2  
Old 2nd July 2009, 17:06
Mark_NL Mark_NL is offline
Senior Member
 
Join Date: Sep 2008
Location: The Netherlands
Posts: 912
Thanks: 12
Thanked 100 Times in 96 Posts
Default

I see no problems in removing those packages.. all of them are perl modules.

the only one i don't get is "logrotate" so better install it again after you removed it.

i'd use apt-get remove amavisd-new spamassassin clamav clamav-daemon clamav-docs

if you'd rather disable them instead of uninstalling then use:

update-rc.d -f amavis remove
update-rc.d -f spamassassin remove
update-rc.d -f clamav-daemon remove
update-rc.d -f clamav-freshclam remove

this way the init scripts are not run when the server boots ..
Reply With Quote
  #3  
Old 2nd July 2009, 17:26
MrM MrM is offline
Member
 
Join Date: Oct 2008
Location: Ljubljana, Slovenia
Posts: 58
Thanks: 6
Thanked 0 Times in 0 Posts
Default

Thanks Mark!

I've disabled these services as well as courier with update-rc.d like this:
Code:
update-rc.d -f amavis remove
update-rc.d -f spamassassin remove
update-rc.d -f clamav-daemon remove
update-rc.d -f clamav-freshclam remove
update-rc.d -f courier-authdaemon remove
update-rc.d -f courier-imap remove
update-rc.d -f courier-imap-ssl remove
update-rc.d -f courier-pop remove
update-rc.d -f courier-pop-ssl remove
It seems to have done the trick. My memory usage is down to 168M now.

Just one more question. How do I re-enable these services, if I ever decide to provide e-mail services locally?
Reply With Quote
  #4  
Old 2nd July 2009, 17:39
Mark_NL Mark_NL is offline
Senior Member
 
Join Date: Sep 2008
Location: The Netherlands
Posts: 912
Thanks: 12
Thanked 100 Times in 96 Posts
Default

take a look at: update-rc.d --help (or man update-rc.d for more detailed info)

In most cases the following will be fine:
Code:
update-rc.d amavis defaults
"amavis" is the exact name of the file in /etc/init.d
Reply With Quote
  #5  
Old 2nd July 2009, 17:44
MrM MrM is offline
Member
 
Join Date: Oct 2008
Location: Ljubljana, Slovenia
Posts: 58
Thanks: 6
Thanked 0 Times in 0 Posts
Default

That's exactly what I wanted to know. Whether 'defaults' will suffice or not. I had looked at 'man update-rc.d' before, I just forgot to mention it in my post.

Thanks for your help, Mark!
Reply With Quote
  #6  
Old 3rd July 2009, 11:51
MrM MrM is offline
Member
 
Join Date: Oct 2008
Location: Ljubljana, Slovenia
Posts: 58
Thanks: 6
Thanked 0 Times in 0 Posts
Default

I think that Postfix stopped working after disabling these services. Are they necessary for Postfix to work properly?

Even though I will not provide mail services on this server, I still need Postfix for sending e-mail through scripts (e.g. PHP). How can I make Postfix work without amavisd-new, spamassassin and clamav?
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISP Config hesitation when opening web pages frankb Installation/Configuration 7 15th December 2008 13:06
Ubuntu 8.04 Spamsnake - all SA scores 0.00 Thomas_Powers HOWTO-Related Questions 23 24th June 2008 17:37
ISPconfig 2.2.21 Load Averange Very High mmiyamoto General 3 6th March 2008 13:13
Question on Clamscan and SpamAssassin AZMel Installation/Configuration 3 11th January 2007 19:56
Postfix + Amavis + SpamAssassin + ClamAV michele HOWTO-Related Questions 4 1st July 2006 14:36


All times are GMT +2. The time now is 08:46.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.