From 4d13badc83d8b68838cb202d4ccac18bb94b7854 Mon Sep 17 00:00:00 2001 From: Zhang Huangbin Date: Tue, 5 May 2020 23:59:01 +0800 Subject: [PATCH] New: upgrade.iredmail.1.2.1-1.3.html. --- en_US/upgrade/0-upgrade.iredmail.1.2.1-1.3.md | 52 ++++++++++++ html/upgrade.iredmail.1.2.1-1.3.html | 84 +++++++++++++++++++ 2 files changed, 136 insertions(+) create mode 100644 en_US/upgrade/0-upgrade.iredmail.1.2.1-1.3.md create mode 100644 html/upgrade.iredmail.1.2.1-1.3.html diff --git a/en_US/upgrade/0-upgrade.iredmail.1.2.1-1.3.md b/en_US/upgrade/0-upgrade.iredmail.1.2.1-1.3.md new file mode 100644 index 00000000..105d9ca3 --- /dev/null +++ b/en_US/upgrade/0-upgrade.iredmail.1.2.1-1.3.md @@ -0,0 +1,52 @@ +# Upgrade iRedMail from 1.2.1 to 1.3 + +[TOC] + +!!! warning + + THIS IS STILL A DRAFT DOCUMENT, DO NOT APPLY IT. + +!!! note "Paid Remote Upgrade Support" + + We offer remote upgrade support if you don't want to get your hands dirty, + check [the details](https://www.iredmail.org/support.html) and + [contact us](https://www.iredmail.org/contact.html). + +## ChangeLog + +* May XX, 2020: initial release. + +## General (All backends should apply these changes) + +### Update `/etc/iredmail-release` with new iRedMail version number + +iRedMail stores the release version in `/etc/iredmail-release` after +installation, it's recommended to update this file after you upgraded iRedMail, +so that you can know which version of iRedMail you're running. For example: + +``` +1.3 +``` + +### Fixed: inconsistent Fail2ban jail names + +!!! attention + + This is applicable to Linux and OpenBSD. + +iRedMail-1.2 and 1.2.1 introduced [SQL integration in +Fail2ban](./fail2ban.sql.html), but there're few inconsistent jail names which +caused unbanning IP from iRedAdmin-Pro doesn't work. Please run commands below +to fix them. + +``` +cd /etc/fail2ban/jail.d/ +perl -pi -e 's#dovecot-iredmail#dovecot#g' dovecot.local + +perl -pi -e 's#postfix-pregreet-iredmail#postfix-pregreet#g' postfix-pregreet.local +perl -pi -e 's#name=postfix,#name=postfix-pregreet,#g' postfix-pregreet.local + +perl -pi -e 's#postfix-iredmail#postfix#g' postfix.local +perl -pi -e 's#roundcube-iredmail#roundcube#g' roundcube.local +perl -pi -e 's#sogo-iredmail#sogo#g' sogo.local +``` diff --git a/html/upgrade.iredmail.1.2.1-1.3.html b/html/upgrade.iredmail.1.2.1-1.3.html new file mode 100644 index 00000000..a09c72d0 --- /dev/null +++ b/html/upgrade.iredmail.1.2.1-1.3.html @@ -0,0 +1,84 @@ + + + + + Upgrade iRedMail from 1.2.1 to 1.3 + + + + +

Upgrade iRedMail from 1.2.1 to 1.3

+
+ +
+
+

Warning

+

THIS IS STILL A DRAFT DOCUMENT, DO NOT APPLY IT.

+
+
+

Paid Remote Upgrade Support

+

We offer remote upgrade support if you don't want to get your hands dirty, +check the details and +contact us.

+
+

ChangeLog

+ +

General (All backends should apply these changes)

+

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

+

iRedMail stores the release version in /etc/iredmail-release after +installation, it's recommended to update this file after you upgraded iRedMail, +so that you can know which version of iRedMail you're running. For example:

+
1.3
+
+ +

Fixed: inconsistent Fail2ban jail names

+
+

Attention

+

This is applicable to Linux and OpenBSD.

+
+

iRedMail-1.2 and 1.2.1 introduced SQL integration in +Fail2ban, but there're few inconsistent jail names which +caused unbanning IP from iRedAdmin-Pro doesn't work. Please run commands below +to fix them.

+
cd /etc/fail2ban/jail.d/
+perl -pi -e 's#dovecot-iredmail#dovecot#g' dovecot.local
+
+perl -pi -e 's#postfix-pregreet-iredmail#postfix-pregreet#g' postfix-pregreet.local
+perl -pi -e 's#name=postfix,#name=postfix-pregreet,#g' postfix-pregreet.local
+
+perl -pi -e 's#postfix-iredmail#postfix#g' postfix.local
+perl -pi -e 's#roundcube-iredmail#roundcube#g' roundcube.local
+perl -pi -e 's#sogo-iredmail#sogo#g' sogo.local
+
+ + + + \ No newline at end of file