2014-09-20 05:50:50 -05:00
|
|
|
# Completely disable Amavisd + ClamAV + SpamAssassin
|
2014-09-16 08:14:07 -05:00
|
|
|
|
2015-03-01 21:29:14 -06:00
|
|
|
[TOC]
|
|
|
|
|
2014-09-16 05:32:20 -05:00
|
|
|
In iRedMail, Amavisd provides below features:
|
|
|
|
|
|
|
|
* content-based spam scanning (invoke SpamAssassin)
|
|
|
|
* Virus scanning (invoke ClamAV)
|
2016-07-28 08:08:11 -05:00
|
|
|
* DKIM signing
|
2014-09-16 05:32:20 -05:00
|
|
|
* DKIM verification (through SpamAssassin + Perl module)
|
|
|
|
* SPF verification (through SpamAssassin + Perl module)
|
|
|
|
* Disclaimer (throught AlterMIME)
|
|
|
|
|
2014-09-16 09:54:05 -05:00
|
|
|
### Stop virus/spam scanning, keep DKIM signing/verification and Disclaimer
|
2014-09-16 05:32:20 -05:00
|
|
|
|
|
|
|
If you want to disable virus and spam scanning, but keep DKIM signing and disclaimer, please try this:
|
|
|
|
|
2014-09-16 09:54:05 -05:00
|
|
|
* Keep `content_filter = smtp-amavis:[127.0.0.1]:10024` in Postfix config file `/etc/postfix/main.cf`.
|
2014-09-16 05:32:20 -05:00
|
|
|
|
2018-02-24 22:11:56 -06:00
|
|
|
* Find below lines in Amavisd config file:
|
|
|
|
- On RHEL/CentOS, it's `/etc/amavisd/amavisd.conf`
|
|
|
|
- On Debian/Ubuntu, it's `/etc/amavis/conf.d/50-user`
|
|
|
|
- On FreeBSD, it's `/usr/local/etc/amavisd.conf`
|
|
|
|
- On OpenBSD, it's `/etc/amavisd.conf`
|
|
|
|
|
2014-09-16 08:14:07 -05:00
|
|
|
```perl
|
2014-09-16 05:32:20 -05:00
|
|
|
# @bypass_virus_checks_maps = (1); # controls running of anti-virus code
|
|
|
|
# @bypass_spam_checks_maps = (1); # controls running of anti-spam code
|
2014-09-16 08:14:07 -05:00
|
|
|
```
|
2014-09-16 05:32:20 -05:00
|
|
|
|
|
|
|
Uncomment above lines (removing "# " at the beginning of each line), and restart Amavisd service.
|
|
|
|
|
2014-09-16 09:54:05 -05:00
|
|
|
### Completely disable all features
|
2014-09-16 05:32:20 -05:00
|
|
|
|
|
|
|
If you want to completely disable spam and virus scanning services, steps:
|
|
|
|
|
2016-01-05 06:34:35 -06:00
|
|
|
* Comment out below two lines in Postfix config file `/etc/postfix/main.cf`:
|
2014-09-16 08:14:07 -05:00
|
|
|
|
2016-01-05 06:34:35 -06:00
|
|
|
```cfg
|
2014-09-16 08:14:07 -05:00
|
|
|
content_filter = smtp-amavis:[127.0.0.1]:10024
|
2015-02-03 07:33:07 -06:00
|
|
|
receive_override_options = no_address_mappings # <- it's ok if you don't have this line
|
2014-09-16 09:57:24 -05:00
|
|
|
```
|
2014-09-16 08:14:07 -05:00
|
|
|
|
2016-01-05 06:34:35 -06:00
|
|
|
* Comment out below line in Postfix config file `/etc/postfix/master.cf`,
|
|
|
|
|
|
|
|
```cfg
|
|
|
|
-o content_filter=smtp-amavis:[127.0.0.1]:10026
|
|
|
|
```
|
|
|
|
|
|
|
|
* Restarting Postfix service is required.
|
2014-09-16 05:32:20 -05:00
|
|
|
* 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.
|