Attachment block in the mail does not work

NethServer Version: NethServer release 7.3.1611
Module: mail
I have a problem, the filtering part of Block attachments from the mail module does not work.
I have marked all three options

  • Executables (eg .exe, msi)
  • Archives
  • Custom file format list (doc and docx, for example)
    If I receive an email with a zip or an attached doc, I receive the mail and the attachment in roundcube.

Hello again,
I installed a new Nethserver and I have the same problem, it does not filter with the filter opitons I check. It has to be a bug.
Can anyone try with his/her Nethserver?
Thank you.

I just sent to myself a mail containing a zip attachment from my gmail account and it was blocked as expected.

Maillog on nethserver:

Jun 12 14:02:24 nethservice amavis[6078]: (06078-01) skip local delivery(3): <> -> <banned-quarantine>
Jun 12 14:02:24 nethservice amavis[6078]: (06078-01) Blocked BANNED (CUSTOM:.asc,test) {RejectedInbound,Quarantined}, []:34984 [] <> -> <>, Message-ID: <>, mail_id: ZMTphZyoAF5w, Hits: -, size: 3293, 43 ms
Jun 12 14:02:24 nethservice postfix/smtpd[6129]: proxy-reject: END-OF-MESSAGE: 554 5.7.0 Reject, id=06078-01 - BANNED: CUSTOM:.asc,test; from=<> to=<> proto=ESMTP helo=<>

To help you we need an address on your mailserver for some tests, maillog and mail filter configuration.


Thank you
I am migrating a Zentyal to NehtServer and I still have not pointing the MX of the domain to Nethserver. I am currently retrieving a copy of the mail using the POP3 Connector and delivering it to the user’s mailbox in Nethserver.
This is an example:

I have the same problem between 2 email accounts created on the Nethserver server.

The POP3 connector can’t block attachments.
I can’t think of a way to implement it.

1 Like

OK, in Zentyal if it worked. Anyway, I have the same problem between 2 email accounts created on the Nethserver server.