1

Topic: Amavis blocking .docx files

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):
- Deployed with iRedMail Easy or the downloadable installer?
- 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.
====

version 1.3.1 with v 1.0(LDAP), Centos 7

My wife emailed a file with a .docx which was rejected.

My system has no trouble with macro enabled .xlsm files, so I'm not sure why this was rejected.

The maillog file shows this (sanitized):

Apr 18 10:15:46 mail amavis[23684]: (23684-20) Blocked BANNED (.exe,.exe-ms,0002.dat) {DiscardedInbound,Quarantined}, [A.B.C.E]:47260 [A.B.C.E] ESMTP/ESMTP <thewife@gmail.com> -> <myemail@1.com>, (ESMTPS://[209.85.21$
Apr 18 10:15:46 mail amavis[23684]: (23684-20) ...l.document,T=zip,N=TITLE OF THE BLOCKED DOC.docx | P=p013,L=1/2/8,T=exe,T=exe-ms,N=0001.dat, ..., dkim_i=@gmail.com, dkim_sd=20230601:gmail$
Apr 18 10:15:46 mail amavis[23684]: (23684-20) Blocked BANNED (.exe,.exe-ms,0002.dat), <thewife@gmail.com> -> , Hits: -, tag=2, tag2=6.2, kill=6.9, L/0/0/0
Apr 18 10:15:46 mail postfix/amavis/smtp[9286]: 4ZfGy90gJ6zB16: to=<myemail@1.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=1.3, delays=0.22/0/0.01/1.1, dsn=2.7.0, status=sent (250 2.7.0 Ok, discarded, id=23684-20 - BANNED: .exe,.exe-ms,0002.$
Apr 18 10:15:46 mail postfix/qmgr[1730]: 4ZfGy90gJ6zB16: removed


What do I need to adjust to let .docx and other MS Office files filter through?  I may not open files from strangers (although I'll take their candy), but I do want the option to see the email.


Andrew

----

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

2

Re: Amavis blocking .docx files

Things to try:

• Send a .docx file with no contents (create a new file, save it without adding any content, email the new blank document.

If that doesn't work, you've got problems. But, if it does work, then try:

• Copy the contents from the old .docx file into the new (blank) .docx file, and try sending that file.

If that works, then it was likely a corrupt .docx file - probably quarantine the old version.

Good luck!

3

Re: Amavis blocking .docx files

AndyInNYC wrote:

Blocked BANNED (.exe,.exe-ms,0002.dat)

Amavisd is configured by iRedMail to block ".exe" file extension by default, you can remove it from /etc/amavisd/amavisd.conf.

AndyInNYC wrote:

version 1.3.1 with v 1.0(LDAP), Centos 7

CentOS 7 is toooooo old, better upgrade to new OS release as soon as possible.