Resolved SMTP Error (-1): Connection to server failed in RoundCube

kumkumsharma

Administrator
Staff member
If you are getting this error then you just have to follow below steps:

Method 1

First check your exim is running or not, you can check this after login into SSH you have to run below command in terminal..

Code:
# service exim status
If exim is showing disabled then you will get below output.

You have to run below command to start exim service.

Code:
# service exim start
Method 2

We have now checked that exim is running but still we are getting error then we have to follow few more steps to resolve this error.

First run below command to open CSF firewall.

Code:
# vi /etc/csf/csf.conf
Most probably you are getting this issue due to below code.

Code:
SMTP_BLOCK = 1
SMTP_ALLOWLOCAL = 0
Now you have to change the value of SMTP_ALLOWLOCAL to 1.

And restart CSF firewall to reflect the changes. You can check below command:

Code:
# csf –r
Now you can see the changes and find your exim mail server is working fine.
 
Top