1

Topic: Accidentally deleted postmaster account

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

One upon a time, a so damn drunk sysadmin deleted the postmaster account via iRedAdmin. Everyone started crying and were sleepless since months until a genius had the idea to ask via the iRedMail forum, how to restore back or create a new postmaster account with global admin privileges.

thank you,

The genius.

2

Re: Accidentally deleted postmaster account

To mark an existing mail user as global domain admin:

- Login to phpLDAPadmin with LDAP root dn: cn=Manager,dc=xx,dc=xx. It's defined in "rootdn" in /etc/ldap/slapd.conf.
- Expand LDAP tree in left panel after logging into phpLDAPadmin, find the mail user you want to mark as global admin. Click it.
- In right panel of phpLDAPadmin, it will show full LDIF data of selected mail user. Please add a new attribute "domainGlobalAdmin" with value "yes" for this user.
- Save it. Then you can login to iRedAdmin (or iRedAdmin-Pro) with this account username/password.

3

Re: Accidentally deleted postmaster account

ZhangHuangbin wrote:

To mark an existing mail user as global domain admin:

- Login to phpLDAPadmin with LDAP root dn: cn=Manager,dc=xx,dc=xx. It's defined in "rootdn" in /etc/ldap/slapd.conf.
- Expand LDAP tree in left panel after logging into phpLDAPadmin, find the mail user you want to mark as global admin. Click it.
- In right panel of phpLDAPadmin, it will show full LDIF data of selected mail user. Please add a new attribute "domainGlobalAdmin" with value "yes" for this user.
- Save it. Then you can login to iRedAdmin (or iRedAdmin-Pro) with this account username/password.

This manipulation seems not working. I've market a user account as "domainGlobalAdmin", saved it and still can't login to iRedAdmin with that user account.

I've added this attribute the the following tree item :

o=domains -> domainName=domain.com -> ou=Users -> mail=user@domain.com

As you can see here : https://www.dropbox.com/s/v3glrya1qtx0a … .11.19.png

Cheers

4

Re: Accidentally deleted postmaster account

*) Does adding addition attribute/value pair "enabledService=domainadmin" for this user work for you?
*) Which version of iRedAdmin are you running?

5

Re: Accidentally deleted postmaster account

ZhangHuangbin wrote:

*) Does adding addition attribute/value pair "enabledService=domainadmin" for this user work for you?
*) Which version of iRedAdmin are you running?

Yes it worked, thank you !

iRedAdmin version is v1.8.1 (LDAP).

You should add this manipulation to the FAQ.

6

Re: Accidentally deleted postmaster account

simonbouchard wrote:

iRedAdmin version is v1.8.1 (LDAP).

Please upgrade to v2.0 as soon as possible.

simonbouchard wrote:

You should add this manipulation to the FAQ.

Done: http://iredmail.org/wiki/index.php?titl … pldapadmin