From 184673b30ec649f0e5cc60f2c18f025b95765117 Mon Sep 17 00:00:00 2001 From: Zhang Huangbin Date: Tue, 26 Apr 2016 22:44:34 +0800 Subject: [PATCH] Update iRedMail upgrade tutorial: - Fixed: Not perform banned file types checking on RHEL/CentOS/OpenBSD/FreeBSD. --- .../upgrade/0-upgrade.iredmail.0.9.4-0.9.5.md | 46 ++++++++++++++++++- html/upgrade.iredmail.0.9.4-0.9.5.html | 44 ++++++++++++++++-- 2 files changed, 84 insertions(+), 6 deletions(-) diff --git a/en_US/upgrade/0-upgrade.iredmail.0.9.4-0.9.5.md b/en_US/upgrade/0-upgrade.iredmail.0.9.4-0.9.5.md index ec368fb5..ebc248f8 100644 --- a/en_US/upgrade/0-upgrade.iredmail.0.9.4-0.9.5.md +++ b/en_US/upgrade/0-upgrade.iredmail.0.9.4-0.9.5.md @@ -13,6 +13,7 @@ ## ChangeLog +* 2016-04-26: Fixed: Not perform banned file types checking on RHEL/CentOS/OpenBSD/FreeBSD * 2016-04-23: [OPTIONAL] Add custom Amavisd log template to always log SpamAssassin testing result * 2016-04-13: Fixed: not add ssh port number in Fail2ban config file. * 2016-03-23: [NEW] Able to enable/disable SOGo access for a single user. @@ -104,9 +105,48 @@ chmod 0773 /var/lib/php/session chmod o+t /var/lib/php/session ``` +### Fixed: Not perform banned file types checking on RHEL/CentOS/OpenBSD/FreeBSD + +!!! attention + + This is __NOT__ applicable to Debian and Ubuntu. + +There's a bug in iRedMail-0.9.3 and 0.9.4, it didn't comment out setting +`bypass_banned_checks_maps` in parameter `$policy_bank{'ORIGINATING'} = {}`, +this causes Amavisd won't perform banned file types checking for outgoing +emails sent through SMTP AUTH. Please follw steps below to fix it. + +Open Amavisd config file, find parameter `$policy_bank{'ORIGINATING'} =` like +below: +* on RHEL/CentOS: it's `/etc/amavisd/amavisd.conf` +* on FreeBSD: it's `/usr/local/etc/amavisd.conf` +* on OpenBSD: it's `/etc/amavisd.conf` + +``` +$policy_bank{'ORIGINATING'} = { + ... + bypass_banned_checks_maps => [1], + ... +}; +``` + +Comment out line `bypass_banned_checks_maps` like below: + +``` +$policy_bank{'ORIGINATING'} = { + ... + #bypass_banned_checks_maps => [1], + ... +}; +``` + +Save the change. Restarting amavisd service is required. + ### Fixed: not add alias for `virusalert` on non-Debian/Ubuntu OSes -Note: this is __NOT__ applicable to Debian and Ubuntu. +!!! attention + + This is __NOT__ applicable to Debian and Ubuntu. There's a bug in iRedMail-0.9.4, it adds alias `virusalert` on only Debian and Ubuntu, but not other OSes. Please fix it with below commands: @@ -129,7 +169,9 @@ postalias /usr/local/etc/postfix/aliases ### [OPTIONAL] Add custom Amavisd log template to always log SpamAssassin testing result -> Note: This is totally optional. +!!! attention + + Note: This step is totally optional. It's helpful if you can see SpamAssassin testing result in log file at Amavisd log_level 0. diff --git a/html/upgrade.iredmail.0.9.4-0.9.5.html b/html/upgrade.iredmail.0.9.4-0.9.5.html index 6732ae96..2953201a 100644 --- a/html/upgrade.iredmail.0.9.4-0.9.5.html +++ b/html/upgrade.iredmail.0.9.4-0.9.5.html @@ -25,6 +25,7 @@
  • [Linux] Fixed: not add ssh port number in Fail2ban config file (jail.local)
  • [RHEL/CentOS] Fixed: Not enable cron job to update SpamAssassin rules
  • [RHEL/CentOS] Fixed: Not create required directory used to store PHP session files
  • +
  • Fixed: Not perform banned file types checking on RHEL/CentOS/OpenBSD/FreeBSD
  • Fixed: not add alias for virusalert on non-Debian/Ubuntu OSes
  • [OPTIONAL] Add custom Amavisd log template to always log SpamAssassin testing result
  • @@ -81,6 +82,7 @@ check the details and co

    ChangeLog