From 2fcb3ec10f7639ed6fd4fb74a856e16589da6e45 Mon Sep 17 00:00:00 2001
From: Zhang Huangbin
Date: Sun, 8 Jan 2017 22:53:36 +0800
Subject: [PATCH] Update iRedMail upgrade tutorial.
---
.../upgrade/0-upgrade.iredmail.0.9.2-0.9.3.md | 2 +-
.../0-upgrade.iredmail.0.9.5.1-0.9.6.md | 49 +++++++++++++++++-
html/upgrade.iredmail.0.9.2-0.9.3.html | 2 +-
html/upgrade.iredmail.0.9.5.1-0.9.6.html | 50 ++++++++++++++++++-
4 files changed, 98 insertions(+), 5 deletions(-)
diff --git a/en_US/upgrade/0-upgrade.iredmail.0.9.2-0.9.3.md b/en_US/upgrade/0-upgrade.iredmail.0.9.2-0.9.3.md
index 0c797f8f..c655eca9 100644
--- a/en_US/upgrade/0-upgrade.iredmail.0.9.2-0.9.3.md
+++ b/en_US/upgrade/0-upgrade.iredmail.0.9.2-0.9.3.md
@@ -288,7 +288,7 @@ Please edit `root`'s cron job with command below:
# crontab -e -u root
```
-Then add cron job below:
+Then add cron job like below:
* RHEL/CentOS:
diff --git a/en_US/upgrade/0-upgrade.iredmail.0.9.5.1-0.9.6.md b/en_US/upgrade/0-upgrade.iredmail.0.9.5.1-0.9.6.md
index 1eee9c36..a8caf51a 100644
--- a/en_US/upgrade/0-upgrade.iredmail.0.9.5.1-0.9.6.md
+++ b/en_US/upgrade/0-upgrade.iredmail.0.9.5.1-0.9.6.md
@@ -17,6 +17,7 @@
## ChangeLog
+* Jan 8, 2016: Fixed: missing cron job used to clean up old Roundcube temporary files.
* Dec 27, 2016: Add more banned file types/extensions in Amavisd.
* Dec 12, 2016: Improve Fail2ban filter regular expression to catch more POP3/IMAP spams
* Nov 9, 2016: Fixed: Memcached listens on all available IP addresses instead of `127.0.0.1`
@@ -56,7 +57,7 @@ Please follow this tutorial to upgrade iRedAdmin open source edition to the
latest stable release:
[Upgrade iRedAdmin to the latest stable release](./migrate.or.upgrade.iredadmin.html)
-### Upgrade Roundcube webmail to the latest stable release (1.2.0)
+### Upgrade Roundcube webmail to the latest stable release (1.2.3)
Please follow Roundcube official tutorial to upgrade Roundcube webmail to the
latest stable release immediately: [How to upgrade Roundcube](https://github.com/roundcube/roundcubemail/wiki/Upgrade).
@@ -203,6 +204,52 @@ chown www:www /var/www/roundcubemail/plugins/password/config.inc.php
chmod 0400 /var/www/roundcubemail/plugins/password/config.inc.php
```
+### Fixed: missing cron job used to clean up old Roundcube temporary files
+
+iRedMail didn't run script `roundcubemail/bin/gc.sh` to clean up old files
+under `roundcubemail/temp/` directory regularly, this directory will grow
+larger and larger with temporary files.
+
+Please edit `root`'s cron job with command below:
+
+```
+# crontab -e -u root
+```
+
+Then add cron job like below:
+
+* RHEL/CentOS:
+
+```
+# Roundcube: Cleanup old temp files (defaults to keep for 2 days)
+2 2 * * * php /var/www/roundcubemail/bin/gc.sh >/dev/null
+```
+
+* Debian/Ubuntu:
+
+ > __WARNING__: with old iRedMail release, Roundcube directory is
+ > `/usr/share/apache2/roundcubemail`, please make sure you're using the
+ > correct one on your server.
+
+```
+# Roundcube: Cleanup old temp files (defaults to keep for 2 days)
+2 2 * * * php /opt/www/roundcubemail/bin/gc.sh >/dev/null
+```
+
+* FreeBSD:
+
+```
+# Roundcube: Cleanup old temp files (defaults to keep for 2 days)
+2 2 * * * php /usr/local/www/roundcube/bin/gc.sh >/dev/null
+```
+
+* OpenBSD:
+
+```
+# Roundcube: Cleanup old temp files (defaults to keep for 2 days)
+2 2 * * * php /var/www/roundcubemail/bin/gc.sh >/dev/null
+```
+
### Fixed: Nginx doesn't forward real client IP address to SOGo
iRedMail-0.9.5-1 and earlier releases didn't correctly configure Nginx to
diff --git a/html/upgrade.iredmail.0.9.2-0.9.3.html b/html/upgrade.iredmail.0.9.2-0.9.3.html
index 9e7b2a3e..9bbaa494 100644
--- a/html/upgrade.iredmail.0.9.2-0.9.3.html
+++ b/html/upgrade.iredmail.0.9.2-0.9.3.html
@@ -327,7 +327,7 @@ and clean, it removes all records that are marked as deleted.
# crontab -e -u root
-Then add cron job below:
+Then add cron job like below:
diff --git a/html/upgrade.iredmail.0.9.5.1-0.9.6.html b/html/upgrade.iredmail.0.9.5.1-0.9.6.html
index 64faefd0..877a2bfc 100644
--- a/html/upgrade.iredmail.0.9.5.1-0.9.6.html
+++ b/html/upgrade.iredmail.0.9.5.1-0.9.6.html
@@ -25,7 +25,7 @@
Update /etc/iredmail-release with new iRedMail version number
Upgrade iRedAPD (Postfix policy server) to the latest stable release (1.9.2)
Upgrade iRedAdmin (open source edition) to the latest stable release (0.6.3)
-Upgrade Roundcube webmail to the latest stable release (1.2.0)
+Upgrade Roundcube webmail to the latest stable release (1.2.3)
Fixed: HTTProxy vulnerability in Apache and Nginx
ChangeLog
+- Jan 8, 2016: Fixed: missing cron job used to clean up old Roundcube temporary files.
- Dec 27, 2016: Add more banned file types/extensions in Amavisd.
- Dec 12, 2016: Improve Fail2ban filter regular expression to catch more POP3/IMAP spams
- Nov 9, 2016: Fixed: Memcached listens on all available IP addresses instead of
127.0.0.1
@@ -105,7 +107,7 @@ so that you can know which version of iRedMail you're running. For example:
Please follow this tutorial to upgrade iRedAdmin open source edition to the
latest stable release:
Upgrade iRedAdmin to the latest stable release
-Upgrade Roundcube webmail to the latest stable release (1.2.0)
+Upgrade Roundcube webmail to the latest stable release (1.2.3)
Please follow Roundcube official tutorial to upgrade Roundcube webmail to the
latest stable release immediately: How to upgrade Roundcube.
Note: package rsync
must be installed on your server before upgrading.
@@ -235,6 +237,50 @@ chmod 0400 /usr/local/www/roundcubemail/plugins/password/config.inc.php
chmod 0400 /var/www/roundcubemail/plugins/password/config.inc.php
+Fixed: missing cron job used to clean up old Roundcube temporary files
+iRedMail didn't run script roundcubemail/bin/gc.sh
to clean up old files
+under roundcubemail/temp/
directory regularly, this directory will grow
+larger and larger with temporary files.
+Please edit root
's cron job with command below:
+
# crontab -e -u root
+
+
+Then add cron job like below:
+
+# Roundcube: Cleanup old temp files (defaults to keep for 2 days)
+2 2 * * * php /var/www/roundcubemail/bin/gc.sh >/dev/null
+
+
+
+-
+
Debian/Ubuntu:
+
+WARNING: with old iRedMail release, Roundcube directory is
+/usr/share/apache2/roundcubemail
, please make sure you're using the
+correct one on your server.
+
+
+
+# Roundcube: Cleanup old temp files (defaults to keep for 2 days)
+2 2 * * * php /opt/www/roundcubemail/bin/gc.sh >/dev/null
+
+
+
+# Roundcube: Cleanup old temp files (defaults to keep for 2 days)
+2 2 * * * php /usr/local/www/roundcube/bin/gc.sh >/dev/null
+
+
+
+# Roundcube: Cleanup old temp files (defaults to keep for 2 days)
+2 2 * * * php /var/www/roundcubemail/bin/gc.sh >/dev/null
+
+
Fixed: Nginx doesn't forward real client IP address to SOGo
iRedMail-0.9.5-1 and earlier releases didn't correctly configure Nginx to
forward real client IP address to SOGo, this causes Fail2ban cannot catch