This tutorial is available in other languages. Help translate more
Italiano /
In iRedMail, Amavisd provides below features:
If you want to disable virus and spam scanning, but keep DKIM signing and disclaimer, please try this:
Keep content_filter = smtp-amavis:[127.0.0.1]:10024
in Postfix config file /etc/postfix/main.cf
.
Find below lines in Amavisd config file:
/etc/amavisd/amavisd.conf
/etc/amavis/conf.d/50-user
/usr/local/etc/amavisd.conf
/etc/amavisd.conf
# @bypass_virus_checks_maps = (1); # controls running of anti-virus code
# @bypass_spam_checks_maps = (1); # controls running of anti-spam code
Uncomment above lines (removing "# " at the beginning of each line), and restart Amavisd service.
You may want to stop and disable ClamAV service, then remove clamav packages since it's not called by Amavisd or other programs anymore:
Attention
On Linux system with systemd support, you can keep the packages but mask
the clamav service to prevent it started by other applications with command
below:
# CentOS
systemctl mask clamd@amavisd
# Debian/Ubuntu
systemctl mask clamav-daemon clamav-freshclam
# CentOS
systemctl disable --now clamd@amavisd
systemctl restart amavisd
yum remove clamav clamav-lib
# Debian/Ubuntu
systemctl disable --now clamav-daemon
systemctl restart amavis
apt remove clamav-base
# FreeBSD
sysrc -f /etc/rc.conf.local clamd=no
systemctl restart amavisd
pkg remove clamav
# OpenBSD
rcctl disable clamd
rcctl restart amavisd
pkg_delete clamav
If you want to completely disable spam and virus scanning services, steps:
/etc/postfix/main.cf
:content_filter = smtp-amavis:[127.0.0.1]:10024
receive_override_options = no_address_mappings # <- it's ok if you don't have this line
/etc/postfix/master.cf
, -o content_filter=smtp-amavis:[127.0.0.1]:10026
Notes: