2014-09-20 05:50:50 -05:00
# Disable spam virus scanning for outgoing mails
2014-09-16 08:19:42 -05:00
To disable spam/virus scanning for outgoing mails, you can add bypass settings in Amavisd config file: `/etc/amavisd/amavisd.conf` (RHEL/CentOS/Scientific Linux) or `/etc/amavis/conf.d/50-user` (Debian/Ubuntu) or `/usr/local/etc/amavisd.conf` (FreeBSD).
2014-09-16 05:31:46 -05:00
* bypass_spam_checks_maps
* bypass_virus_checks_maps
* bypass_header_checks_maps
* bypass_banned_checks_maps
2014-09-16 08:19:42 -05:00
These settings can be added in setting block `$policy_bank{'MYUSERS'}` :
2014-09-16 05:31:46 -05:00
2014-09-16 08:19:42 -05:00
```perl
2014-09-16 05:31:46 -05:00
$policy_bank{'MYUSERS'} = {
[...OMIT OTHER SETTINGS HERE...]
# don't perform spam/virus/header check.
bypass_spam_checks_maps => [1],
bypass_virus_checks_maps => [1],
bypass_header_checks_maps => [1],
# allow sending any file names and types
bypass_banned_checks_maps => [1],
}
2014-09-16 08:19:42 -05:00
```
2014-09-16 05:31:46 -05:00
Restarting Amavisd service is required after changing settings.