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.
I use Google Apps for all of my domains, so I do not need to scan mail, but still require an outgoing server for web apps. I use this simple script after each update to disable main scanning:
#!/bin/sh
# this script removes spam filtering from ispconfig 3
sed -i ‘/^content_filter*/ s/^/#/’ /etc/postfix/main.cf
sed -i ‘/^no_address_mappings*/ s/^/#/’ /etc/postfix/main.cf
/etc/init.d/postfix restart
/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
Uncomment freshclam if you don’t want it running. I use the scanner, so I need to keep it up-to-date.
What about if I want to have amavis running, but not clamav?
I tried running:
/etc/init.d/clamav-daemon stop
/etc/init.d/clamav-freshclam stop
update-rc.d -f clamav-daemon remove
update-rc.d -f clamav-freshclam remove
But then i keep getting these errors every 20 min. in the log:
amavis[29867]: (29867-06) (!)ClamAV-clamd av-scanner FAILED: run_av error: Too many retries to talk to /var/run/clamav/clamd.ctl (Can’t connect to UNIX socket /var/run/clamav/clamd.ctl: No such file or directory) at (eval 117) line 375.\n
amavis[29867]: (29867-06) (!!)WARN: all primary virus scanners failed, considering backups
amavis[30191]: (30191-06) (!)ClamAV-clamd: Can’t connect to UNIX socket /var/run/clamav/clamd.ctl: No such file or directory, retrying (2)
Btw, running Ubuntu 11.04.
And could you tell me how to set child processe in amavis?
@en
I was wondering the same (how one leaves Amavis running but disables all antivirus checks). Till provided the answer at http://www.howtoforge.com/forums/showthread.php?p=290537 .
Is this still relevant with ISPConfig Version: 3.0.5.1? I stopped receiving mail after upgrading and found I had to start amavis.
This information here is for all ispconfig 3 versions. spam filtering is on by default, if you turned if´t off manually by editing the postfix config files, then you might have to redo that after an update.
My bad.. not enough memory with too high consumption resulted in terminating amavis at times.
Till, I followed the above information as stated. I upgraded and rechecked. No other changes have been made. But without amavisd running email dosn’t work..