MilesWeb Hosting Forum

Web Hosting Technical Support => Errors and Solutions => Topic started by: Dipak Bhoi on July 06, 2015, 02:28:30 PM

Title: SMTP Error (-1): Connection to server failed
Post by: Dipak Bhoi on July 06, 2015, 02:28:30 PM
Hello folks,

One of our client was facing an issue while sending an emails from his VPS. He was receiving below error:

QuoteSMTP Error (-1): Connection to server failed

There are multiple possibilities for this error. To resolve this follow below instruction.

1. First check the exim status.

Quote# service exim status
exim dead but subsys locked

If you received this status then restart or start the exim service.

Quote#service exim start

2. If the above steps didn't work 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:

QuoteSMTP_BLOCK = 1
SMTP_ALLOWLOCAL = 0
You would need to change SMTP_ALLOWLOCAL to 1 to enable Webmail to function.

That's all, enjoy !! :) ;)