1

Topic: amavis connection to MySQL server error

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.8.2
- Deployed with iRedMail Easy or the downloadable installer? downloadable installer
- Linux/BSD distribution name and version: Ubuntu 24.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx):nginx
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

2026-06-22T07:07:32.576925+00:00 mail postfix/smtpd[388043]: connect from bg1.exmail.qq.com[114.132.73.137]
2026-06-22T07:07:32.620463+00:00 mail postfix/smtpd[388043]: discarding EHLO keywords: CHUNKING
2026-06-22T07:07:32.819446+00:00 mail postfix/smtpd[388043]: Anonymous TLS connection established from bg1.exmail.qq.com[114.132.73.137]: TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)
2026-06-22T07:07:32.967670+00:00 mail postfix/smtpd[388043]: discarding EHLO keywords: CHUNKING
2026-06-22T07:07:33.409815+00:00 mail postfix/smtpd[388043]: 4gkK5d2rXVzWg98: client=bg1.exmail.qq.com[114.132.73.137]
2026-06-22T07:07:33.547703+00:00 mail postfix/cleanup[388066]: 4gkK5d2rXVzWg98: message-id=<mis_33F71FEF4DF9EA35360F6619@exmail.weixin.qq.com>
2026-06-22T07:07:33.553916+00:00 mail postfix/qmgr[278081]: 4gkK5d2rXVzWg98: from=<10000@exmail.weixin.qq.com>, size=17755, nrcpt=1 (queue active)
2026-06-22T07:07:33.582693+00:00 mail postfix/smtpd[388043]: disconnect from bg1.exmail.qq.com[114.132.73.137] ehlo=2 starttls=1 mail=1 rcpt=1 data=1 quit=1 commands=7
2026-06-22T07:07:33.600267+00:00 mail amavis[2470]: (02470-02) NOTICE: reconnecting in response to: err=2013, HY000, DBD::mysql::st execute failed: Lost connection to MySQL server during query at /usr/share/perl5/Amavis/Out/SQL/Connection.pm line 175.

----

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

2

Re: amavis connection to MySQL server error

It's safe to ignore this "NOTICE" message.

Is this a low traffic server? it's normal that established sql connection timed out, and amavisd re-establish a new connection after logged this warning message.

3

Re: amavis connection to MySQL server error

ZhangHuangbin wrote:

It's safe to ignore this "NOTICE" message.

Is this a low traffic server? it's normal that established sql connection timed out, and amavisd re-establish a new connection after logged this warning message.

Yes. Because after merging the QQ enterprise email previously used into enterprise WeChat, it is very troublesome to bind the phone number and enterprise WeChat; I set up my own email server using a small rack in the broadband intranet, and all I need to do is send and receive emails from QQ, WeChat, 163, and Alibaba series.