From f0f1454eb29354b4889c909939bb567d9eb52f45 Mon Sep 17 00:00:00 2001 From: Michael Chong Date: Tue, 16 Sep 2014 10:32:20 +0000 Subject: [PATCH] completely.disable.amavisd.clamav.spamassassin.md created online with Bitbucket --- ...ely.disable.amavisd.clamav.spamassassin.md | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 completely.disable.amavisd.clamav.spamassassin.md diff --git a/completely.disable.amavisd.clamav.spamassassin.md b/completely.disable.amavisd.clamav.spamassassin.md new file mode 100644 index 00000000..663100de --- /dev/null +++ b/completely.disable.amavisd.clamav.spamassassin.md @@ -0,0 +1,40 @@ + +#How to completely disable amavisd/ClamAV/SpamAssassin +In iRedMail, Amavisd provides below features: + +* content-based spam scanning (invoke SpamAssassin) +* Virus scanning (invoke ClamAV) +* DKIM singing +* DKIM verification (through SpamAssassin + Perl module) +* SPF verification (through SpamAssassin + Perl module) +* Disclaimer (throught AlterMIME) + +##Stop virus/spam scanning, keep DKIM signing/verification and Disclaimer + +If you want to disable virus and spam scanning, but keep DKIM signing and disclaimer, please try this: + +* Keep "content_filter =" setting in Postfix main.cf. +
+content_filter = smtp-amavis:[127.0.0.1]:10024
+
+ +* Find below lines in /etc/amavisd/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. + +##Completely disable all features + +If you want to completely disable spam and virus scanning services, steps: + +1. Comment out __content\_filter = smtp-amavis:[127.0.0.1]:10024__ and __receive\_override\_options = no\_address\_mappings__ in Postfix config file __/etc/postfix/main.cf__, and restart Postfix service. +* Disable network services: Amavisd, ClamAV. + +Notes: + +* ClamAV and SpamAssassin will be invoked by Amavisd, so if you disable Amavisd, those two are disabled too. +* SpamAssassin doesn't have daemon service running in iRedMail solution, so there's no need to stop SpamAssassin service.