How to disable spamfilter- and antivirus functions in ISPConfig 3

Wednesday, July 14, 2010 posted by Till

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.



8 Responses to “How to disable spamfilter- and antivirus functions in ISPConfig 3”

  1. JeffryL says:

    And because it disables all spamfiltering it is safe to stop spamassissin too right?

  2. CT says:

    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.

    • Till says:

      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.

  3. Jeff says:

    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

    • Till says:

      Execute:

      update-rc.d clamav-daemon defaults
      update-rc.d clamav-freshclam defaults
      update-rc.d amavis defaults

      to add the start links again.

Leave a Reply

*