![]() |
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: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. |
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 .. |
Thanks Mark!
I've disabled these services as well as courier with update-rc.d like this: Code:
update-rc.d -f amavis removeJust one more question. How do I re-enable these services, if I ever decide to provide e-mail services locally? |
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 |
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! |
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? |
at first postfix is configged to use amavis etc .. now that those are not running anymore, postfix will start throwing errors in the logs (see /var/log/mail.log)
i think with "dpkg-reconfigure postfix" you can solve this. just select the appropriate option |
Quote:
Code:
Jul 3 11:55:01 prod postfix/smtpd[17713]: connect from localhost.localdomain[127.0.0.1]Quote:
|
open up master.cf
and remove the lines that look like these (i've copied them from my own config): Code:
amavis unix - - - - 2 smtpand restart postfix :) |
I found this line in /etc/postfix/main.cf:
Code:
content_filter = amavis:[127.0.0.1]:10024 |
| All times are GMT +2. The time now is 06:22. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.