![]() |
How to disable Clamav or Spamassassin check in amavis?
Hi everyone, I have a necessity to disable antivirus checks in amavis but I saw /etc/amavis/conf.d files but without success.
Can anyone help me? Thanks |
Uninstall clamav and restart amavisd.
|
Hi Till
By the way. You wrote a great howto last year about this subject. http://www.faqforge.com/linux/contro...n-ispconfig-3/ Thank you it's been very useful indeed, but I have always wondered if there is any reason why you do not disable spamassasin aswell ? Regards |
ISPConfig uses amavis (which internally uses the spamassassin libraries) and not spamassassin, so disabling amavis as described in the FAQ disables the spamfilter and antivirus filter.
|
Hi Till
Thanks for your answer. After following the FAQ, I do still have spamassassin running in the background. Code:
server:~# ps aux | grep spamdIf it is not going to be used, I guess it should be safe to stop in order to save some resources. Code:
/etc/init.d/spamassassin stop |
Quote:
|
Thanks for the answer.
Disabling spamassasin seems to free up to 44 MB of ram in my server. Regards |
I use Amavis and was looking to disable ClamAV, but not SpamAssassin.
First, I tried stopping the ClamAV service, but the following messages appeared in /var/log/mail.log: Code:
amavis[3188]: (03188-16) (!)ClamAV-clamd: Can't connect to UNIX socket /var/run/clamav/clamd.ctl: 2, retrying (2)So, I tried this approach next: Quote:
Code:
amavis[14163]: (14163-01) (!)ClamAV-clamd: Can't connect to UNIX socket /var/run/clamav/clamd.ctl: 2, retrying (2)Quote:
Code:
#@bypass_virus_checks_maps = (Code:
service amavis restartSo, as a last resort, I commented-out the following lines (the lines with ##) in /etc/amavis/conf.d/15-av_scanners: Code:
### http://www.clamav.net/I was shocked to find the following in the log, still: Code:
amavis[17441]: (17441-01) (!!)WARN: all primary virus scanners failed, considering backups |
Well, after making the changes mentioned in my previous post, email ceased to be delivered all together (the mail queue began to fill-up).
Upon further investigation, I realized that I had misread the Amavis documentation: it states that antivirus is disabled by default and that to enable it, un-comment Code:
# @bypass_virus_checks_maps = (...Why, then, with the above line commented, am I seeing the following in /var/log/mail.log? Code:
amavis[25694]: (25694-01) (!)ClamAV-clamd: Can't connect to UNIX socket /var/run/clamav/clamd.ctl: 2, retrying (2) |
Thanks to this post ( http://www.howtoforge.com/forums/showthread.php?t=44443 ), I realized my error: the change has to be made in /etc/amavis/conf.d/50-user, instead, as this file overrides 15-content_filter_mode.
Code:
# Place your configuration directives here. They will override those inCode:
# service amavis restartCase closed. :D |
| All times are GMT +2. The time now is 11:46. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.