1

Topic: Banned contents RAR/ZIP archive

==== Required information ====
- iRedMail version (check /etc/iredmail-release): iRedMail-0.9.6
- Linux/BSD distribution name and version: Ubuntu 14.04 Server
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Good day!
There was a problem. iRedMail 0.9.6 banned archive RAR/ZIP.
In the message attach RAR/ZIP archive. The mail send to any mailbox. But...mail don't arrive.
No viruses were found.

Banned name: application/x-rar-compressed,.rar,02g.rar
Content type: Banned
Internal reference code for the message is 04781-07/t3ROBdFW9AVR

First upstream SMTP client IP address: [127.0.0.1] mail.XXX.com
According to a 'Received:' trace, the message apparently originated at:
  [127.0.0.1], _ mail.XXX.com [127.0.0.1]

Return-Path: <postmaster@XXX.com>
From: postmaster@XXX.com
Message-ID: <0a0b8026396918d52fb7b95495b9031e@XXX.com>
Subject: hntes
Not quarantined.

The message WAS NOT relayed to:
<YYY@yandex.ru>:
   554 5.7.0 Bounce, id=04781-07 - BANNED: application/x-rar-compressed,.rar,02g.rar

----

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

2

Re: Banned contents RAR/ZIP archive

Hello!

Look at this:

http://www.iredmail.org/docs/upgrade.ir … in-amavisd

I think if you want to allow rar file type you need to remove it from amavisd configuration file:

$banned_namepath_re = new_RE(
    #[qr'T=(rar|arc|arj|zoo|gz|bz2)(,|\t)'xmi => 'DISCARD'],     # Compressed file types
    [qr'T=x-(msdownload|msdos-program|msmetafile)(,|\t)'xmi => 'DISCARD'],
    [qr'T=(hta)(,|\t)'xmi => 'DISCARD'],

3

Re: Banned contents RAR/ZIP archive

Thank you!