View Full Version : disable SpamAssassin and ClamAV and amavis
darkhoros
25th September 2009, 05:15
Hi,
I have already read the other posts related to same issue and googled enough, but no clear and direct how to, and I just got my ispconfig 3 installed on a vps and I am so afraid to miss things up.
So as title says how to disable all 3 services( SpamAssassin and ClamAV and amavis), as I only need the apache and mysql service on this vps for a high traffic web site, no email options is needed, and when ever things change i can re-enable what I need of them.
Help is apriciated alot.
Thank you all.
damir
25th September 2009, 14:29
Disable the mail module in ispconfig3 under System/Edit Server and than shutdown the services on the server.
darkhoros
25th September 2009, 14:40
Hi,
first of all thank you for your kind reply, but I only need to disable these 3 services, I need the mail module running, just in case, I only need to free up the ram that these 3 services consume as they run.
Thank you.
robertlouwen
26th September 2009, 13:52
Hello Darkhoros,
I am a Linux noob but I think when you use :
"chkconfig --levels 235 amavisd on"
"chkconfig --levels 235 clamd.amavisd on"
to start ClamAV and Amavis at bootup
and:
"/etc/init.d/amavisd start"
"/etc/init.d/clamd.amavisd start"
to start ClamAV and Amavis again when manualy stopped.
You can use:
"chkconfig --levels 235 amavisd off"
"chkconfig --levels 235 clamd.amavisd off"
to prevent ClamAV and Amavis starting at bootup.
darkhoros
27th September 2009, 03:42
Hi,
Thank you for your reply, it gave me some light.
ok I used this to stop current running services.
server# /etc/init.d/amavis stop
server# /etc/init.d/clamav-daemon stop
server# /etc/init.d/spamassassin stop
they stopped and free about 150 MB of ram, very nice, I then editied the apache2.conf file and raise its resources, things went much better from there.
I think using your way to exclude them from start up on boot will work once I change the services name, but I will try this later once I make sure that every thing is stable with my setup.
Again thank you for lighting the way for me.:D
mdjhomes
7th October 2009, 10:16
Thanks for the info, I appreciate it.
phor
12th December 2009, 10:09
Isn't there a way to deactivate these 3 services and leave mail function working? When I simply stop the services, mails are deferred or rather aren't delivered.
I want to use Mail but have no need for spam and virus checking.
bnight
19th December 2009, 13:15
Hi phor,
I have the same problem as you have and I make some tests about howto disable Amavis on ISPConfig 3.
Here is what you have to do to achieve this:
Edit: /etc/postfix/main.cf
Coment this two lines:
content_filter = amavis:[127.0.0.1]:10024
receive_override_options = no_address_mappings
Looks like this:
#content_filter = amavis:[127.0.0.1]:10024
#receive_override_options = no_address_mappings
Edit: /etc/postfix/master.cf
And comment all lines bellow:
amavis unix - - - - 2 smtp
Looks like this:
#amavis unix - - - - 2 smtp
# -o smtp_data_done_timeout=1200
# -o smtp_send_xforward_command=yes
#127.0.0.1:10025 inet n - - - - smtpd
# -o content_filter=
# -o local_recipient_maps=
# -o relay_recipient_maps=
# -o smtpd_restriction_classes=
# -o smtpd_client_restrictions=
# -o smtpd_helo_restrictions=
# -o smtpd_sender_restrictions=
# -o smtpd_recipient_restrictions=permit_mynetworks,rej ect
# -o mynetworks=127.0.0.0/8
# -o strict_rfc821_envelopes=yes
# -o receive_override_options=no_unknown_recipient_chec ks,no_header_body_checks
# -o smtpd_bind_address=127.0.0.1
Now stop amavis-new and clamd:
/etc/init.d/amavis stop
/etc/init.d/clamav-daemon stop
/etc/init.d/clamav-freshclam stop
Now disable amavis and clamd form starting on system boot:
chkconfig --levels 235 amavis off
chkconfig --levels 235 clamav-daemon off
chkconfig --levels 235 clamav-freshclam off
Now you can restart postfix:
/etc/init.d/postfix restart
And you have working postfix without Amavis and Clamd.
Good Luck.
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.