1

Topic: Attachment blocking

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.4
- Linux/BSD distribution name and version: Dedian 8.2
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):MySql
- Web server (Apache or Nginx):apache
- Manage mail accounts with iRedAdmin-Pro?no
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hi.
Configured attachment blocking amavis. But this limit also applies to incoming and outgoing messages. Can this restriction to apply only to inbound messages and for outbound to allow. Thank you.

----

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

2

Re: Attachment blocking

here might be an answer to your question :

https://serverfault.com/questions/65810 … ng-postfix

3

Re: Attachment blocking

depcadastre wrote:

Can this restriction to apply only to inbound messages and for outbound to allow.

Sure.

In Amavisd, find policy bank 'ORIGINATING', comment out 'bypass_banned_checks_maps' like below:

$policy_bank{'ORIGINATING'} = {
    ...
    bypass_banned_checks_maps => [1],  # don't check banned file names and types
    ...
};

Restart Amavisd service is required.