Cpanel: SMTP: Failed to write to socket: not connected (code: -1, response: )
Error:
I am getting below error message when i try to send email via horde (or) roundcube (or) squirrelMail
Failed to set sender: info@emailaddress.com [SMTP: Failed to write to socket: not connected (code: -1, response: )]
Solution:1
Try to find csf firewall is installed on whm. If yes follow the below steps if not skip to Solution:2
1. Login to WHM
2.WHM > Plugins > ConfigServer Security&Firewall > Firewall Configuration
3.In that file, ensure that “SMTP_ALLOWLOCAL” has a 1 next to it. If it does not, change to 1 and click the “Change” button
4. Restart CSF
Solution:2
Try to find mail service is running
1. Login to server via ssh
2. Service exim status. If stopped execute the below command
3. Service exim restart.
Hope the above solutions might fix the issue.