Topic: Hotfix for iRedMail-0.7.1 (MySQL backend): iRedAPD stops suddenly.
Dear all,
Some users reported that iRedAPD in iRedMail-0.7.1 (MySQL backend special) will stop suddenly, and MySQL server complains 'too many connections'.
Bug report post: http://www.iredmail.org/forum/topic1776 … eived.html
The root cause is incorrect SQL operation in iRedAPD, it won't close sql connection immediately, that makes too many sleeping sql connections.
You can fix it with below steps:
- Download these two files:
http://iredapd.iredmail.googlecode.com/ … iredapd.py
http://iredapd.iredmail.googlecode.com/ … _policy.py
- Replace /opt/iredapd/src/iredapd.py with downloaded "iredapd.py".
- Replace /opt/iredapd/src/plugins/sql_alias_access_policy.py with downloaded
"sql_alias_access_policy.py".
- Set correct file permission on these two new files:
# chown iredapd:iredapd /opt/iredapd/src/iredapd.py
# chown iredapd:iredapd /opt/iredapd/src/plugins/sql_alias_access_policy.py
# chmod 0700 /opt/iredapd/src/iredapd.py
# chmod 0700 /opt/iredapd/src/plugins/sql_alias_access_policy.py
- Restart iRedAPD service.
# /etc/init.d/iredapd restart
That's all.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.