Topic: "Defanging" Banned Types with Amavisd
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.5.1
- Deployed with iRedMail Easy or the downloadable installer? Downloadable
- Linux/BSD distribution name and version: Debian 11
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): PGSQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hello,
I am having difficulty getting the "defang" feature to work in amavisd. In `/etc/amavis/conf.d/50-user` I have the following:
$defang_virus = 1; # MIME-wrap passed infected mail
$defang_banned = 1; # MIME-wrap passed mail containing banned name
# Banned
$final_banned_destiny = D_PASS;
$banned_files_quarantine_method = 'local:banned/%m';
$banned_quarantine_to = 'banned-quarantine';
Seems pretty straightforward. Yet, the banned attachment types are simply coming through as normal, e.g. not Mime Wrapped). I have previously verified that my banned filename regex was working so that should not be the issue (I was originally rejecting such emails entirely). What am I missing? Alternatively, my end goal is to strip certain attachments from the e-mail; is there another way to accomplish this with iRedMail?
Thanks.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.