How to disable spamfilter- and antivirus functions in ISPConfig 3
If you use a mailserver wil very low ram (< 500 MB) and a slow CPU then it might be nescessary to disable the spam- and antivirus filter functions in ISPConfig 3 as amavisd and clamav might be too heavy for your server hardware. The steps to disable clamav and amavisd are:
Edit postfix main.cf file
vi /etc/postfix/main.cf
and comment out these lines by adding a “#” in front of them:
# content_filter = amavis:[127.0.0.1]:10024
# receive_override_options = no_address_mappings
Then restart postfix:
/etc/init.d/postfix restart
Now stop and disable the services. The following commands are for Debian and Ubuntu, the commands for other Linux distributions may vary
/etc/init.d/clamav-daemon stop
/etc/init.d/clamav-freshclam stop
/etc/init.d/amavis stop
update-rc.d -f clamav-daemon remove
update-rc.d -f clamav-freshclam remove
update-rc.d -f amavis remove
P The normal mail receive and send functions will still work after this modification. But please be aware that disabling amavisd and clamav will disable all spam- and antivirus filtering so that the spamfiltering options that can be configured in the ispconfig interface will have any effect on mail delivery and no spam and viruses will get filtered.
The changes in postfix main.cf will get overwitten by a ispconfig software update when you select to reconfigure services during upadte, so you should comment out the lines again after you install a ispconfig update.
And because it disables all spamfiltering it is safe to stop spamassissin too right?
ISPConfig does not use spamassassin, it uses amavisd. Spamassassin has not be be started on a ispconfig server.
That’s not true!
“The ISPConfig comes with SpamAssassin, but without the Perl modules needed by. SpamAssassin.”
http://www.ispconfig.org/ispconfig-2/installation-instructions-for-ispconfig-2/
The above article is absoluteley correct. This thread is about ISPConfig 3 and you post a link to ISPConfig 2. ISPConfig 2 is a completely different software then ISPConfig 3.
I am trying to turn off all spam filter and antivirus because I am using another filter service. There are no lines in my postfix file to comment out like you have listed. I did all the rest of the steps, but I am still getting emails bounced back from the ispconfig 3 server. Any ideas.
If ISPConfig 3 is installed on your server, then these lines muts be in main.cf. Please check again. If the lines are missing, then ISPConfig 3 is not installed properly and you should run the update.php script again and choose to reconfigure services.
How do you reverse this, mostly the commands for this part:
update-rc.d -f clamav-daemon remove
update-rc.d -f clamav-freshclam remove
update-rc.d -f amavis remove
Execute:
update-rc.d clamav-daemon defaults
update-rc.d clamav-freshclam defaults
update-rc.d amavis defaults
to add the start links again.