How to fix error ‘421 Too many concurrent SMTP connections’ in cPanel and DirectAdmin servers
Managing and troubleshooting mail servers forms a vital part of the Outsourced Web Hosting Support services we provide to shared server owners.
Among the common mail server errors, 421 is a common one that happens due to ‘too many concurrent SMTP connections’. This error usually denotes a high-traffic recipient mail server.
What causes ‘Too many concurrent SMTP connections’ error?
Senders sending mails to a high traffic mail server can end up getting bounce mails. The error message in the bounce mail would usually be ‘421 Too many concurrent SMTP connections; please try again later.’
The error message denotes that the connections to the recipient mail server have exceeded the limit. This high traffic can sometimes be a temporary problem due to a spike in the connections.
But there maybe some other situations where the traffic is dangerous and expert intervention is required. For instance, spammers can hack email accounts and send bulk mails.
There could be some websites that have mass mailing scripts such as newsletters. Virus or malware in the server can enable the attackers to abuse the email server for spamming.
All these issues lead to a high mail server traffic and can end up bouncing mails coming to it. The solution for the error would depend on what caused the high traffic.
‘Too many concurrent SMTP connections’ error in Exim mail server for cPanel and DirectAdmin
cPanel and DirectAdmin are the two commonly used control panels in web hosting industry. The default mail server they use is the Exim.
In Exim mail server, there are many parameters to ensure ‘Resource control’. Resource control is crucial in a shared server where multiple users share the resources.
Without proper resource limits in place, one user or application can take up the entire memory for that process and cause the mail server to crash.
Some important resource control parameters used to manage Exim in cPanel and DirectAdmin servers are:
One of the commonly used setting to limit Exim resources is the ‘smtp_accept_max‘ parameter. It specifies the maximum number of simultaneous incoming SMTP connections that Exim will accept.
If the ‘smtp_accept_max‘ limit has been reached for Exim connections, due to the high traffic, further connections to the mail server are rejected.
For instance, in this server, the limit is set to 100.
root@host [~]# cat /etc/exim.conf |grep smtp_accept_max smtp_accept_max = 100
The rejected mails in such situations would bounce back to the sender, with the error message ‘421 Too many concurrent SMTP connections; please try again later.‘
[ Need help resolving email errors in your sites? Get assistance from our server experts to fix your website for just $45. ]