1

Topic: Hotfix for iRedAdmin-Pro-1.3.0: Don't drop enabled services.

Abstract

After saving changes in user profile page, 'Advanced' tab, iRedAdmin-Pro-1.3.0 will drop two enabled service: sieve, sievesecured. If you're using dovecot-1.2, your users will not be able to use mail filter in Roundcube Webmail.

Credits

Thanks moleksinski for his/her feedback. smile

How to fix it

Here's a patch to fix this bug in iRedAdmin-Pro-1.3.0, you can apply it with below steps:

* Open a terminal, change current directory to iRedAdmin-Pro installation root directory.

# ---- RHEL/CentOS ----
# cd /var/www/iRedAdmin-Pro-1.3.0/

# ---- Debian/Ubuntu ----
# cd /usr/share/apache2/iRedAdmin-Pro-1.3.0/

# ---- FreeBSD ----
# cd /usr/local/www/iRedAdmin-Pro-1.3.0/

* Download patch:

# wget http://iredmail.org/patches/iredadmin/pro/1.3/missing_managesieve.patch

* TRY to patch it, if you didn't get the SAME terminal output message, please do NOT try further steps.

# patch -p0 --dry-run < missing_managesieve.patch
patching file libs/ldaplib/user.py

* If no error message in previous step, apply it now:

# patch -p0 < missing_managesieve.patch

* Restart apache is recommended.

----

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

2

Re: Hotfix for iRedAdmin-Pro-1.3.0: Don't drop enabled services.

Mine says can't find file to patch at input line 4.
How to use the patch ?


# patch -p0 --dry-run < missing_managesieve.patch
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -r ef7c042aec71 -r 835a0ad2f297 libs/ldaplib/user.py
|--- libs/ldaplib/user.py    Fri Dec 17 21:01:16 2010 +0800
|+++ libs/ldaplib/user.py    Mon Dec 20 11:33:57 2010 +0800
--------------------------
File to patch:
Skip this patch? [y] y
Skipping patch.
1 out of 1 hunk ignored
[root@mail3 temp]# patch -p0 < missing_managesieve.patch
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -r ef7c042aec71 -r 835a0ad2f297 libs/ldaplib/user.py
|--- libs/ldaplib/user.py    Fri Dec 17 21:01:16 2010 +0800
|+++ libs/ldaplib/user.py    Mon Dec 20 11:33:57 2010 +0800
--------------------------
File to patch:
Skip this patch? [y] y
Skipping patch.
1 out of 1 hunk ignored
#

3

Re: Hotfix for iRedAdmin-Pro-1.3.0: Don't drop enabled services.

Are you using iRedAdmin-Pro-1.3.0? This patch is for 1.3.0.

4

Re: Hotfix for iRedAdmin-Pro-1.3.0: Don't drop enabled services.

Yes, here's the message from dashboard.

System info
                     iRedAdmin-Pro version   1.3.0

5

Re: Hotfix for iRedAdmin-Pro-1.3.0: Don't drop enabled services.

Guess I didn't execute it in iredadmin/ folder.

6

Re: Hotfix for iRedAdmin-Pro-1.3.0: Don't drop enabled services.

Is that all iredadmin 1.3 should apply or only dovecot 1.2 needs this patch.  As I am using


dovecot-1.1.20-1_98.el5
dovecot-sieve-1.1.6-9.el5

at the moment.  Thanks.

7

Re: Hotfix for iRedAdmin-Pro-1.3.0: Don't drop enabled services.

If you're still using dovecot-1.1.x, you don't need to apply it.
But it's strong recommended to apply it, otherwise you have to waiting for new iRedAdmin-Pro release before upgrading dovecot to 1.2.x.