Topic: Amavisd-new and a
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hi.
Required:
-IredMail 0.9.7
-Centos7
-LDAP backend
-Apache
-no IredAdmin-pro
Question:
IredMail 0.9.7
Recently a i have migrated to it from IredMail 0.8.7.
Problem is: I whant to block some attachments with some extensions. For example *.js.
I take /etc/amavisd/amavisd.conf and add js into ---> qr'.\.(pif|scr|exe|js|vbs|jar|ws|bat)$'i, # banned extensions
Save, then restart postfix,amavisd.
Try to send js content under zip archive. And what i see:
Aug 1 09:38:17 mail amavis[17207]: (17207-06) Passed BANNED (.asc,2305doc.js)
Why passed? If default action for Banned is:
# Banned
$final_banned_destiny = D_DISCARD;
The 2305doc.js is real js virus. How can i discard this type of attachments?
Thank to you for answer.
Best regards
Denis Kirin
p.s.
[root@mail install]# rpm -q amavisd-new
amavisd-new-2.11.0-3.el7.noarch
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.