IRedMail/FAQ/Completely.Disable.Amavisd.ClamAV.SpamAssassin
From iRedMail
(Difference between revisions)
(Created page with ' Steps to completely disable spam and virus scanning services: # Comment out 'content_filter = smtp-amavis:[127.0.0.1]:10024' in Postfix config file main.cf, and restart Postfix…') |
|||
| (One intermediate revision not shown) | |||
| Line 1: | Line 1: | ||
| + | __TOC__ | ||
| - | + | 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. | ||
| + | {{cfg|main.cf|<pre> | ||
| + | content_filter = smtp-amavis:[127.0.0.1]:10024 | ||
| + | </pre>}} | ||
| + | |||
| + | * Find below lines in /etc/amavisd/amavisd.conf: | ||
| + | |||
| + | {{cfg|amavisd.conf|<pre> | ||
| + | # @bypass_virus_checks_maps = (1); # controls running of anti-virus code | ||
| + | # @bypass_spam_checks_maps = (1); # controls running of anti-spam code | ||
| + | # $bypass_decode_parts = 1; # controls running of decoders&dearchivers | ||
| + | </pre>}} | ||
| + | |||
| + | 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: | ||
# Comment out 'content_filter = smtp-amavis:[127.0.0.1]:10024' in Postfix config file main.cf, and restart Postfix service. | # Comment out 'content_filter = smtp-amavis:[127.0.0.1]:10024' in Postfix config file main.cf, and restart Postfix service. | ||
| Line 9: | Line 40: | ||
* ClamAV and SpamAssassin will be invoked by Amavisd, so if you disable Amavisd, those two are disabled too. | * 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. | * SpamAssassin doesn't have daemon service running in iRedMail solution, so there's no need to stop SpamAssassin service. | ||
| + | |||
| + | [[Category: FAQ]] | ||
| + | [[Category: iRedMail/FAQ]] | ||
Revision as of 15:57, 28 August 2012
Contents |
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.
| File: main.cf |
content_filter = smtp-amavis:[127.0.0.1]:10024 |
- Find below lines in /etc/amavisd/amavisd.conf:
| File: amavisd.conf |
# @bypass_virus_checks_maps = (1); # controls running of anti-virus code # @bypass_spam_checks_maps = (1); # controls running of anti-spam code # $bypass_decode_parts = 1; # controls running of decoders&dearchivers |
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:
- Comment out 'content_filter = smtp-amavis:[127.0.0.1]:10024' in Postfix config file 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.
