Topic: Banned file type checking ignored for outgoing emails
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.4.0
- Deployed with iRedMail Easy or the downloadable installer?downloadable installer
- Linux/BSD distribution name and version: Centos 7.9
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MYSQL
- Web server (Apache or Nginx):Nginx
- Manage mail accounts with iRedAdmin-Pro?Yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hello.
I'm trying to define per user policy for specific mailbox.
When I uncheck "Enable banned file type checking" in iRedAdmin-pro, it has no effect for outgoing emails. The emails are still "Blocked BANNED" by amavis.
It seems that it works only for incoming emails.
How do I prevent banned file type checking also for outgoing emails for specific mailbox?
ORIGINATING section in amavis:
# Postfix will re-route mail from authenticated users to this port.
$interface_policy{'10026'} = 'ORIGINATING';
$policy_bank{'ORIGINATING'} = {
originating => 1, # declare that mail was submitted by our smtp client
allow_disclaimers => 1, # enables disclaimer insertion if available
enable_dkim_signing => 1,
# notify administrator of locally originating malware
spam_admin_maps => ["root\@$mydomain"],
# notify administrator of locally originating malware
virus_admin_maps => ["root\@$mydomain"],
spam_admin_maps => ["root\@$mydomain"],
bad_header_admin_maps => ["root\@$mydomain"],
banned_admin_maps => ["root\@$mydomain"],
warnbadhsender => 0,
warnbannedsender => 0,
# force MTA conversion to 7-bit (e.g. before DKIM signing)
smtpd_discard_ehlo_keywords => ['8BITMIME'],
terminate_dsn_on_notify_success => 0, # don't remove NOTIFY=SUCCESS option
# Bypass checks
#bypass_spam_checks_maps => [1], # don't check spam
#bypass_virus_checks_maps => [1], # don't check virus
#bypass_banned_checks_maps => [1], # don't check banned file names and types
#bypass_header_checks_maps => [1], # don't check bad header
};
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.