1

Topic: find and change admin password

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

We have a company that has an IT person that has left and we do not have any of the admin account information for iRedmail server. We were able to change the Ubuntu password to get into the server, but do not know how to get into iRedMail part.

Thanks in advance.

Trigg Gayle

----

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

2

Re: find and change admin password

Hi Trigg,

Under directory /root/, can you find some directory starts with "iRedMail-"? e.g. iRedMail-0.7.4. If so, can you find this file: /root/iRedMail-0.7.4/iRedMail.tips? It stores all related URLs of web applications, usernames/passwords of all mail server related applications. Try logging in web applications with the usernames/passwords.

If you cannont find /root/iRedMail-*, then try this:

- Open /etc/ldap/slapd.conf, you can find two parameters: rootdn, rootpw. Please remember the value of rootdn (it should be "cn=Manager,dc=xxx"), and update parameter "rootpw" to a plain password. For example:

rootpw 123456

Save and restart OpenLDAP service (it should be /etc/init.d/slapd or /etc/init.d/ldap).

- You can now login to phpLDAPadmin with rootdn and password, the web URL should be: httpS://your_server/phpldapadmin/ . Username is the value of rootdn in /etc/ldap/slapd.conf, password is the value of rootpw (123456 in above example).

- After logged into phpLDAPadmin, please expand LDAP tree in left panel, you can find all admin accounts under LDAP object: o=domainAdmins,dc=xxx. For example, admin "mail=xxx@domain.ltd,o=domainAdmins,dc=xxx". You can click these admin accounts, and update their passwords.

- After changed admin passwords, you can login to iRedAdmin - the official web-based admin panel for iRedMail. The url is httpS://your_server/iredadmin/ Username is the full email address of admin accounts under LDAP object o=domainAdmins,dc=xxx. For example, xxx@domain.ltd in above example.

- After logged into iRedAdmin, you can manage mail accounts and admin accounts.

Hope it helps.

Note: After you solved this issue, do not forget to update "rootpw" in /etc/ldap/slapd.conf with an encrypted password. You can get encrypted password with below command (of course do not use "123456" as your password, just an example):

# slappasswd -h {SSHA} -s "123456"
{SSHA}IB2Sjhj7UlPFn7Zr5dY3Wjqwlt7uLbgn

Then paste "{SSHA}IB2Sjhj7UlPFn7Zr5dY3Wjqwlt7uLbgn" as value of rootpw like below:

rootpw {SSHA}IB2Sjhj7UlPFn7Zr5dY3Wjqwlt7uLbgn

Restarting OpenLDAP service is required.

3

Re: find and change admin password

Thanks for the information. I have left the location. I will try later today.

Thanks Again.