Topic: Many errors MySQL server has gone away
==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.5-1
- Linux/BSD distribution name and version: centos 7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? NO
- Related log if you're reporting an issue:
====
Server have 30 mail per day not more... But have many SQL erors.
I check passwords and evrything is OKay
amavisd.conf
$max_servers = 2;
$max_requests = 2;
or
$max_servers = 20;
$max_requests = 20;
and this same result
This errors is for all plugins:
2016-08-01 16:46:15 ERROR <!> Error while applying plugin "greylisting": (_mysql_exceptions.OperationalError) (2006, 'MySQL server has gone
2016-08-01 16:46:15 ERROR <!> Error while applying plugin "amavisd_wblist": (_mysql_exceptions.OperationalError) (2006, 'MySQL server has
2016-08-01 17:00:51 ERROR <!> Error while applying plugin "reject_sender_login_mismatch": (_mysql_exceptions.OperationalError) (2006,
2016-08-01 17:00:51 ERROR <!> Error while applying plugin "greylisting": (_mysql_exceptions.OperationalError) (2006, 'MySQL server has gone
2016-08-01 17:00:51 ERROR <!> Error while applying plugin "amavisd_wblist": (_mysql_exceptions.OperationalError) (2006, 'MySQL server has
2016-08-01 17:00:51 DEBUG --> Apply plugin: amavisd_wblist
2016-08-01 17:00:51 DEBUG Possible policy senders: ['@.', 'ulxuyvq@barak.int.net', '@barak.int.net', '@.barak.int.net', '@int.net', '@.int.net', '@net', '@.net', 'ulxuyvq@*', '69.47.101.192', '69.47.*.192', '*.*.101.192', '69.47.*.*', '*.47.101.192', '69.*.*.*', '*.*.*.192', '69.47.101.*', '69.*.101.192', '*.*.*.*', '69.*.*.192']
2016-08-01 17:00:51 DEBUG Possible policy recipients: ['@.', 'mail@pella.pl', '@pella.pl', '@.pella.pl', '@pl', '@.pl']
2016-08-01 17:00:51 DEBUG Apply wblist for inbound message.
2016-08-01 17:00:51 DEBUG [SQL] Query local addresses:
SELECT id, email
FROM users
WHERE email IN ('@.', 'mail@pella.pl', '@pella.pl', '@.pella.pl', '@pl', '@.pl')
ORDER BY priority DESC
2016-08-01 17:00:51 ERROR <!> Error while applying plugin "amavisd_wblist": (_mysql_exceptions.OperationalError) (2006, 'MySQL server has gone away') [SQL: "SELECT id, email\n FROM users\n WHERE email IN ('@.', 'mail@pella.pl', '@pella.pl', '@.pella.pl', '@pl', '@.pl')\n ORDER BY priority DESC"]
2016-08-01 17:00:51 DEBUG Session ended
2016-08-01 17:00:51 INFO [69.47.101.192] RCPT, ulxuyvq@barak.int.net -> mail@pella.pl, DUNNO
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.