1

Topic: iREdMail DB error when accessing the mail account

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

Hi,

We are getting an error when starting the iRedMail through following command:
for srv in iptables syslog  mysqld httpd postfix policyd dovecot clamd amavisd fail2ban crond freshclam iredapd; do /etc/init.d/${srv} restart; done

The error is as follows:
Sep 26 18:01:01 localhost policyd-cleanup: connecting to mysql database: 127.0.0.1
Sep 26 18:01:01 localhost policyd-cleanup: mysql_real_connect(): Access denied for user 'policyd'@'localhost' (using password: YES)
Sep 26 18:01:01 localhost policyd-cleanup: expiring validated records older than 7 days (1348057861)
Sep 26 20:01:01 localhost policyd-cleanup: clean up process starting: policyd v1.82
Sep 26 20:01:01 localhost policyd-cleanup: connecting to mysql database: 127.0.0.1
Sep 26 20:01:01 localhost policyd-cleanup: clean up process starting: policyd v1.82
Sep 26 20:01:01 localhost policyd-cleanup: connecting to mysql database: 127.0.0.1
Sep 26 20:01:01 localhost policyd-cleanup: mysql_real_connect(): Access denied for user 'policyd'@'localhost' (using password: YES)
Sep 26 20:01:01 localhost policyd-cleanup: expiring throttlesender records older than 31 days (1345991461)
Sep 26 20:01:01 localhost policyd-cleanup: mysql_real_connect(): Access denied for user 'policyd'@'localhost' (using password: YES)
Sep 26 20:01:01 localhost policyd-cleanup: expiring validated records older than 7 days (1348065061)

And then when i try to access the URL "httpS://<server-ip>/mail/" in browser, the following error comes up:

DATABASE ERROR: CONNECTION FAILED!
Unable to connect to the database!
Please contact your server-administrator.

Has anybody faced such an issue before
Or can anybody provide a solution for this.


Regards,
Hemang

----

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

2

Re: iREdMail DB error when accessing the mail account

I suggest rebooting your server to enable all mail services.

Also, please use the latest stable release: iRedMail-0.8.2. Download it here: http://www.iredmail.org/download.html