From 1a85f085f93061e15742db6b373669b02224d693 Mon Sep 17 00:00:00 2001 From: Zhang Huangbin Date: Fri, 6 Oct 2017 08:05:42 +0800 Subject: [PATCH] Sync iRedMail upgrade tutorial. --- en_US/howto/enable.dnsbl.md | 2 +- .../upgrade/0-upgrade.iredmail.0.9.7-0.9.8.md | 58 ++++++++++++++++++- html/enable.dnsbl.html | 2 +- html/upgrade.iredmail.0.9.7-0.9.8.html | 48 ++++++++++++++- 4 files changed, 104 insertions(+), 6 deletions(-) diff --git a/en_US/howto/enable.dnsbl.md b/en_US/howto/enable.dnsbl.md index 7a9f40e4..aa912d92 100644 --- a/en_US/howto/enable.dnsbl.md +++ b/en_US/howto/enable.dnsbl.md @@ -39,7 +39,7 @@ response code. ``` postscreen_dnsbl_sites = zen.spamhaus.org=127.0.0.[2..11]*3 - b.barracudacentral.org=127.0.0.[2..11]*2 + b.barracudacentral.org=127.0.0.2*2 ``` * Restart or reload Postfix service is required. diff --git a/en_US/upgrade/0-upgrade.iredmail.0.9.7-0.9.8.md b/en_US/upgrade/0-upgrade.iredmail.0.9.7-0.9.8.md index 01280a51..7e630db3 100644 --- a/en_US/upgrade/0-upgrade.iredmail.0.9.7-0.9.8.md +++ b/en_US/upgrade/0-upgrade.iredmail.0.9.7-0.9.8.md @@ -16,8 +16,9 @@ * TODO [SQL backends] Update SQL structure: * New column: `domain.maillists` * New table: `vmail.maillists` -* TODO Update Postfix main.cf: `b.barracudacentral.org=127.0.0.[2..11]*2` -> `b.barracudacentral.org=127.0.0.2*2` -* TODO Update sogo backup script. +* Oct 6, 2017: Fixed: SOGo backup script contains 2 issues +* Oct 6, 2017: [OPTIONAL] Fix improper expected DNSBL filter for site `b.barracudacentral.org` +* Oct 6, 2017: [OPTIONAL] Log mail subject, sender, size in mail deliver log. ## General (All backends should apply these steps) @@ -36,6 +37,59 @@ so that you can know which version of iRedMail you're running. For example: Please follow below tutorial to upgrade iRedAPD to the latest stable release: [Upgrade iRedAPD to the latest stable release](./upgrade.iredapd.html) +### Fixed: SOGo backup script contains 2 issues + +SOGo backup script `/var/vmail/backup/backup_sogo.sh` shipped in iRedMail-0.9.7 +and earlier releases contains 2 issues: +- it cannot remove old backup files +- it doesn't set correct owner and permission on backup files + +To fix them, please download the latest version and override the one on your +system: + +``` +cd /var/vmail/backup/ +wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/tools/backup_sogo.sh +chown root backup_sogo.sh +chmod 0400 backup_sogo.sh +``` + +### [OPTIONAL] Fix improper expected DNSBL filter for site `b.barracudacentral.org` + +Postfix config file generated by iRedMail enables DNSBL service for postscreen +service like below: + +``` +postscreen_dnsbl_sites = + zen.spamhaus.org=127.0.0.[2..11]*3 + b.barracudacentral.org=127.0.0.[2..11]*2 +``` + +but site `b.barracudacentral.org` returns only domain `127.0.0.2` (instead of +a range from `127.0.0.2` to `127.0.0.11`), so we should change the +`b.barracudacentral.org=127.0.0.[2..11]*2` line to: + +``` +postscreen_dnsbl_sites = + zen.spamhaus.org=127.0.0.[2..11]*3 + b.barracudacentral.org=127.0.0.2*2 +``` + +Reloading or restarting Postfix is required. + +### [OPTIONAL] Log mail subject, sender, size in mail deliver log + +If you may need to get more info of (locally) delivered mail messages, +Dovecot setting `deliver_log_format` can log extra mail subject, sender, and +message size in mail deliver log. Please append this setting in Dovecot config +file `dovecot.conf`, then restart or reload Dovecot service. +* On Linux/OpenBSD, it's `/etc/dovecot/dovecot.conf` +* On FreeBSD, it's `/usr/local/etc/dovecot/dovecot.conf` + +``` +deliver_log_format = from=%{from}, envelope_sender=%{from_envelope}, subject=%{subject}, msgid=%m, size=%{size}, %$ +``` + ## MySQL/MariaDB backends ### Fixed: User under disabled domain is able to send email with smtp protocol diff --git a/html/enable.dnsbl.html b/html/enable.dnsbl.html index 0d3bd105..b73fe08b 100644 --- a/html/enable.dnsbl.html +++ b/html/enable.dnsbl.html @@ -52,7 +52,7 @@ response code.

postscreen_dnsbl_sites =
     zen.spamhaus.org=127.0.0.[2..11]*3
-    b.barracudacentral.org=127.0.0.[2..11]*2
+    b.barracudacentral.org=127.0.0.2*2
 

General (All backends should apply these steps)

Update /etc/iredmail-release with new iRedMail version number

@@ -67,6 +71,46 @@ so that you can know which version of iRedMail you're running. For example:

Upgrade iRedAPD (Postfix policy server) to the latest stable release (2.2)

Please follow below tutorial to upgrade iRedAPD to the latest stable release: Upgrade iRedAPD to the latest stable release

+

Fixed: SOGo backup script contains 2 issues

+

SOGo backup script /var/vmail/backup/backup_sogo.sh shipped in iRedMail-0.9.7 +and earlier releases contains 2 issues: +- it cannot remove old backup files +- it doesn't set correct owner and permission on backup files

+

To fix them, please download the latest version and override the one on your +system:

+
cd /var/vmail/backup/
+wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/tools/backup_sogo.sh
+chown root backup_sogo.sh
+chmod 0400 backup_sogo.sh
+
+ +

[OPTIONAL] Fix improper expected DNSBL filter for site b.barracudacentral.org

+

Postfix config file generated by iRedMail enables DNSBL service for postscreen +service like below:

+
postscreen_dnsbl_sites =
+    zen.spamhaus.org=127.0.0.[2..11]*3
+    b.barracudacentral.org=127.0.0.[2..11]*2
+
+ +

but site b.barracudacentral.org returns only domain 127.0.0.2 (instead of +a range from 127.0.0.2 to 127.0.0.11), so we should change the +b.barracudacentral.org=127.0.0.[2..11]*2 line to:

+
postscreen_dnsbl_sites =
+    zen.spamhaus.org=127.0.0.[2..11]*3
+    b.barracudacentral.org=127.0.0.2*2
+
+ +

Reloading or restarting Postfix is required.

+

[OPTIONAL] Log mail subject, sender, size in mail deliver log

+

If you may need to get more info of (locally) delivered mail messages, +Dovecot setting deliver_log_format can log extra mail subject, sender, and +message size in mail deliver log. Please append this setting in Dovecot config +file dovecot.conf, then restart or reload Dovecot service. + On Linux/OpenBSD, it's /etc/dovecot/dovecot.conf + On FreeBSD, it's /usr/local/etc/dovecot/dovecot.conf

+
deliver_log_format = from=%{from}, envelope_sender=%{from_envelope}, subject=%{subject}, msgid=%m, size=%{size}, %$
+
+

MySQL/MariaDB backends

Fixed: User under disabled domain is able to send email with smtp protocol

Dovecot is IMAP/POP3/Managesieve server, also a SASL auth server for Postfix.