Topic: Too many connections
Hello.
I found the mail service down today with errors in maillog:
Oct 13 13:51:35 mx2 postfix/master[2975]: warning: process /usr/libexec/postfix/trivial-rewrite pid 16373 exit status 1
Oct 13 13:51:35 mx2 postfix/smtpd[14931]: warning: problem talking to service rewrite: Success
Oct 13 13:51:35 mx2 postfix/master[2975]: warning: process /usr/libexec/postfix/trivial-rewrite pid 16374 exit status 1
Oct 13 13:51:35 mx2 postfix/smtpd[14932]: warning: problem talking to service rewrite: Success
[........]
Oct 13 13:52:36 mx2 postfix/trivial-rewrite[16477]: warning: connect to mysql server 127.0.0.1: Too many connections
Oct 13 13:52:36 mx2 postfix/trivial-rewrite[16477]: warning: connect to mysql server 127.0.0.1: Too many connections
Oct 13 13:52:36 mx2 postfix/trivial-rewrite[16477]: fatal: mysql:/etc/postfix/mysql_virtual_alias_maps.cf(0,lock|fold_fix): table lookup problem
Oct 13 13:52:36 mx2 postfix/trivial-rewrite[16478]: warning: connect to mysql server 127.0.0.1: Too many connections
Oct 13 13:52:36 mx2 postfix/trivial-rewrite[16478]: warning: connect to mysql server 127.0.0.1: Too many connections
Oct 13 13:52:36 mx2 postfix/trivial-rewrite[16478]: fatal: mysql:/etc/postfix/mysql_virtual_alias_maps.cf(0,lock|fold_fix): table lookup problem
[..............]
I guess these are from max_connections in my.cnf right? I set the limit to 1000, but I'm wondering why it crashed so soon already. There are not many mailboxes right now, just about 200 (and around 1000 more to import from the old server...). Should I check something?
Also, googling around, I saw "proxymap" might be a solution to this. Would it work with iRedOS?
Thanks.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.