Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: SMTP Error (-1): Connection to server failed  (Read 7033 times)

0 Members and 1 Guest are viewing this topic.

Vinil

  • Guest
SMTP Error (-1): Connection to server failed
« on: November 05, 2013, 07:07:37 am »
Often we may find issues in sending mails from your cpanel domains even after trying to send mails using Webmail.

We will be receiving following error:-

SMTP Error (-1): Connection to server failed

In such cases, there is nothing to be panic. We can easily fix this issue within a short span of time.

1). First of all, check the exim status.

# service exim status
exim dead but subsys locked

If you see this error check for a file located in  /etc/eximdisable. If you found the file then do the following steps and you are all done.

root@server [/]# mv eximdisable eximdisable.bak
root@server [/]# /etc/init.d/exim restart



2). If the above steps didn't come to your help, then try the following steps.

Sometimes this error may also cause due to a setting in the CSF firewall or another firewall. It might be caused by having the following set:

SMTP_BLOCK = 1
SMTP_ALLOWLOCAL = 0


You would need to change SMTP_ALLOWLOCAL to 1 to enable Webmail to function.


3). One more tip:-

If the above two didn't come to your help, then the below steps indeed help you.


mv /etc/exim.conf /etc/exim.conf_bak    ------ (take a backup)

/scripts/rebuildeximbsd
/scripts/eximconfgen
/scripts/eximup –force
/etc/init.d/exim restart


Now the exim service will be working fine.  :)

« Last Edit: December 30, 2013, 06:08:54 pm by Vinil »