1

Topic: /iredadmin/login?msg=INVALID_CREDENTIALS

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

I trying to install the open source version of you mail server. After the installation i want to log in as admin (postmaster) to set oter account and user, but the web page do not accept the credentials that i have copy and paste from .../config. What can i do? I have tried to reinstall it a bunch of times but always i get the same error.

This is the .../config file (i have hide the domain to protect me):

export VMAIL_USER_HOME_DIR='/var/vmail'
export STORAGE_BASE_DIR='/var/vmail'
export STORAGE_MAILBOX_DIR='/var/vmail/vmail1'
export SIEVE_DIR='/var/vmail/sieve'
export BACKUP_DIR='/var/vmail/backup'
export BACKUP_SCRIPT_OPENLDAP='/var/vmail/backup/backup_openldap.sh'
export BACKUP_SCRIPT_MYSQL='/var/vmail/backup/backup_mysql.sh'
export BACKUP_SCRIPT_PGSQL='/var/vmail/backup/backup_pgsql.sh'
export BACKEND_ORIG='MYSQL'
export BACKEND='MYSQL'
export VMAIL_DB_BIND_PASSWD='YyxmID9EYg5oHmBZFjgDyqLmM8h8RI'
export VMAIL_DB_ADMIN_PASSWD='AhdOYbpVp063gxUwEvMYkC2NQey6FV'
export LDAP_BINDPW='4x7DeVGZY7o42tdkkBtgoM47hIBlNS'
export LDAP_ADMIN_PW='5kzXQmxJ0AOCfZhsy08sb2CWQXv18R'
export MYSQL_ROOT_PASSWD='-----'
export MYSQL_ROOT_USER='root'
export SQL_SERVER='127.0.0.1'
export SQL_SERVER_PORT='3306'
export FIRST_DOMAIN='-----'
export DOMAIN_ADMIN_NAME='postmaster'
export SITE_ADMIN_NAME='postmaster@----'
export DOMAIN_ADMIN_PASSWD_PLAIN='test_pass'
export DOMAIN_ADMIN_PASSWD='test_pass'
export SITE_ADMIN_PASSWD='test_pass'
export FIRST_USER='postmaster'
export FIRST_USER_PASSWD='test_pass'
export FIRST_USER_PASSWD_PLAIN='test_pass'
export ENABLE_DKIM='YES'
export USE_IREDADMIN='YES'
export USE_WEBMAIL='YES'
export USE_RCM='YES'
export REQUIRE_PHP='YES'
export USE_PHPMYADMIN='YES'
export REQUIRE_PHP='YES'
export USE_AWSTATS='YES'
export USE_FAIL2BAN='YES'
#EOF


i

2

Re: /iredadmin/login?msg=INVALID_CREDENTIALS

*) You can find account info in iRedMail-0.8.5/iRedMail.tips.
*) Did you login with 'postmaster@[your_first_domain]' or just 'postmaster'? Login username must be a full email address.

3

Re: /iredadmin/login?msg=INVALID_CREDENTIALS

thx for the replay. Unfortunately i can't solve it because i tried all combination, as i said before, in particular there is no way to login with the credentials in tips file (copy-pasted).

4

Re: /iredadmin/login?msg=INVALID_CREDENTIALS

You can try to reset its password by following below steps. Let's say the new password (in plain text) is "123456".

* Login to MySQL database as MySQL root user (or vmailadmin user).
* Update password for your postmaster account with below step:

mysql> USE vmail;
mysql> UPDATE mailbox SET password='{PLAIN}123456' WHERE username='postmaster@[your_domain]';

* Then try to login to iRedAdmin again. After logged in, please change your password immediately.

5

Re: /iredadmin/login?msg=INVALID_CREDENTIALS

Thx i fix it manually by modify the data in mailbox table. There was a space between postmaster@ and [my_domain].

An other problem now, i cant send and receive mail, in particular the log says:
Aug  1 05:03:58 vps30221 postfix/smtp[10759]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused
so i suppose that there is no connection to postfix. So what can i do?

6

Re: /iredadmin/login?msg=INVALID_CREDENTIALS

dany901 wrote:

Aug  1 05:03:58 vps30221 postfix/smtp[10759]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused

Amavisd listens on port 10024. Please start it first.

7

Re: /iredadmin/login?msg=INVALID_CREDENTIALS

Solved! Ty!