1

Topic: Block outbound attachments for all but allow to a few

==== Required information ====
- iRedMail version (check /etc/iredmail-release):      v0.9.5-1
- Linux/BSD distribution name and version: Debian 8
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? Yes  v2.4.0 (MySQL)
- Related log if you're reporting an issue:
====

I had blocked all attachments for outbound emails by defining policies in amavis as mentioned in following thread

Block attachment for only outbound emails

It is working fine. But for a few users i would like to revoke such restriction.
Is there any whitelist or any other way to achieve it.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Block outbound attachments for all but allow to a few

You can try this amavisd setting, it's mentioned in Amavisd release notes.

  @author_to_policy_bank_maps = ( {
    'user@domain.com'      => 'NOBANNEDCHECK',
    'example.dom'   => 'NOBANNEDCHECK',
    '.ebay.com'                => 'WHITELIST',
  } );

  $policy_bank{'WHITELIST'} = {
    bypass_spam_checks_maps => [1],
    spam_lovers_maps => [1],
  };
  $policy_bank{'NOBANNEDCHECK'} = {
    bypass_banned_checks_maps => [1],
    banned_files_lovers_maps  => [1],
  };