1

Topic: Amavis db connection error

==== Required information ====
- iRedMail version (check /etc/iredmail-release):
- Linux/BSD distribution name and version: ubuntu 16
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): mysql
- Web server (Apache or Nginx): apache
- Manage mail accounts with iRedAdmin-Pro? no
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hello everyone,
i have iredmail server with external mysql database.
everything works fine.
in postfix log (mail.log) i see that every couple of minutes i get this error:

amavis[25294]: (25294-13) NOTICE: reconnecting in response to: err=2013, HY000, DBD::mysql::st execute failed: Lost connection to MySQL server during query at (eval 99) line 172, <GEN36> line 24538.

please share with me the solution

Thank you very much!

Raz

----

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

2

Re: Amavis db connection error

If mail traffic is very low, established SQL connections maintained by Amavisd time out, then AMavisd re-connects.
It's safe to ignore this message.