1

Topic: Access denied for user 'policyd'@'localhost' to database 'policyd

==== Required information ====
- iRedMail version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Linux/BSD distribution name and version:
- Related log if you're reporting an issue:
====
<class '_mysql_exceptions.OperationalError'> at /profile/user/general/thong@cbr.la
(1044, "Access denied for user 'policyd'@'localhost' to database 'policyd'")

Python    /usr/lib64/python2.6/site-packages/MySQLdb/connections.py in __init__, line 186
Web    GET https://192.168.100.118/iredadmin/profi … ong@cbr.la
Traceback (innermost first)

/usr/lib64/python2.6/site-packages/MySQLdb/connections.py in __init__
        super(Connection, self).__init__(*args, **kwargs2) ...
▶ Local vars
/usr/lib64/python2.6/site-packages/MySQLdb/__init__.py in Connect
    return Connection(*args, **kwargs) ...
▶ Local vars
/usr/lib/python2.6/site-packages/web/db.py in _connect
        return self.db_module.connect(**keywords) ...
▶ Local vars
/usr/lib/python2.6/site-packages/web/db.py in _load_context
            ctx.db = self._connect(self.keywords) ...
▶ Local vars
/usr/lib/python2.6/site-packages/web/db.py in _getctx
            self._load_context(self._ctx) ...
▶ Local vars
/usr/lib/python2.6/site-packages/web/db.py in _db_cursor
        return self.ctx.db.cursor() ...
▶ Local vars
/usr/lib/python2.6/site-packages/web/db.py in query
        db_cursor = self._db_cursor() ...
▶ Local vars
/usr/lib/python2.6/site-packages/web/db.py in select
        return self.query(qout, processed=True) ...
▶ Local vars
/var/www/iredadmin/libs/policyd/throttle.py in getThrottling
                limit=1, ...
▶ Local vars
/var/www/iredadmin/controllers/mysql/user.py in GET
            result_throttle = throttleLib.getThrottling(sender=self.mail, recipient=self.mail) ...
▶ Local vars
/var/www/iredadmin/controllers/decorators.py in proxyfunc
            return func(self, *args, **kw) ...
▶ Local vars
/usr/lib/python2.6/site-packages/web/application.py in handle_class
            return tocall(*args) ...
▶ Local vars
/usr/lib/python2.6/site-packages/web/application.py in _delegate
            return handle_class(cls) ...
▶ Local vars
/usr/lib/python2.6/site-packages/web/application.py in handle
        return self._delegate(fn, self.fvars, args) ...
▶ Local vars
/usr/lib/python2.6/site-packages/web/application.py in process
                    return self.handle() ...
▶ Local vars

----

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

2

Re: Access denied for user 'policyd'@'localhost' to database 'policyd

I am first install iredmail and iredAdmin-pro

3

Re: Access denied for user 'policyd'@'localhost' to database 'policyd

Please update iRedAdmin-Pro config file /var/www/iredadmin/settings.py to use the correct SQL password for SQL user 'policyd'.