1

Topic: Cannot use postmaster account after password change

==== Required information ====
- iRedMail version: 0.8.3
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: CentOS 6.3
- Related log if you're reporting an issue:
====

Hello,

I am having the same problem as in this thread: http://www.iredmail.org/forum/topic4052 … sword.html

I cannot login to Awstats even though I've created an admin account from phpmyadmin to login to redmail web interface.

I am trying to apply the patch but it's failing:

[root@mail ~]# patch -p1  < test
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- a/libs/mysql/user.py    2012-10-16 21:37:45.000000000 +0800
|+++ b/libs/mysql/user.py    2012-10-24 08:17:55.000000000 +0800
--------------------------
File to patch: /var/www/iRedAdmin-0.2/libs/mysql/user.py
patching file /var/www/iRedAdmin-0.2/libs/mysql/user.py
Hunk #1 FAILED at 306.
Hunk #2 FAILED at 315.
Hunk #3 FAILED at 597.
Hunk #4 FAILED at 615.
Hunk #5 FAILED at 657.
5 out of 5 hunks FAILED -- saving rejects to file /var/www/iRedAdmin-0.2/libs/mysql/user.py.rej

I tryed [root@mail ~]# patch -p1  < diff ,this doesn't work either.

Can someone help me with instructions on how to apply this patch please?

Regards

----

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

2

Re: Cannot use postmaster account after password change

You're running iRedAdmin open source edition, but the link in your post is for iRedAdmin-Pro.
Please try this patch for iRedAdmin-0.2 (open source edition):
https://bitbucket.org/zhb/iredadmin-ose … 87b892dc73

3 (edited by anarchist18 2013-03-11 21:42:34)

Re: Cannot use postmaster account after password change

Oh, sorry for that I am running the free version indeed.

I have replaced the 2 user.py files and restarted but it seems the problem is still there, furthermore I can't seem to be able to add new users form the iRedmail admin panel, I am getting: internal server error, which didn't happen before.

How can I update or change the password for this postmaster user? I don't see it in vmail - admins table, maybe I deleted it by mistake.

Thanks for you help

4

Re: Cannot use postmaster account after password change

Hi anarchist18,

You should apply the patch, not replace two files. Because those two files contains other changes.
Well, you can consider upgrade from iRedAdmin-0.2 to the upcoming 0.2.1 directly to solve this issue. Upgrade tutorial is here:
http://www.iredmail.org/wiki/index.php? … ce.Edition

You can download iRedAdmin-0.2.1 here: http://www.iredmail.org/yum/misc/

5

Re: Cannot use postmaster account after password change

Hi ZhangHuangbin,

Thanks for your help, I have upgraded to 0.2.1 and I can now login with postmaster and create new users.
Only one thing: I don't seem to have any Global Admins, can you tell me how can I set postmaster as global admin?

Regards

6

Re: Cannot use postmaster account after password change

With iRedAdmin open source edition, you have only one admin type, that's global admin. smile

7

Re: Cannot use postmaster account after password change

Hm, it could be, I was asking because in iRedmail Admin panel the global admin led is greyed out on my admin users.