Roundcube: SMTP Error (-1): Connection to server failed.


Enter Your Query:
Use '%' for wildcards and quotes for "exact phrases"


Top Level » Email » Webmail Clients » RoundCube

Roundcube: SMTP Error (-1): Connection to server failed.Last Modified: Sep 19, 2016, 9:17 pm
If you're getting the following error when sending an email in roundcube:

SMTP Error (-1): Connection to server failed.

possible causes could be that.

1) Your disable_functions list in your php.ini is too strict. Try removing some functions, or use custombuild function:

./build secure_php

instead.
Known errors caused by a disable_functions list which is too strict:

Invalid request! No data was saved


2) Perhaps exim is not running.  Check to ensure that it's running, and that port 587 is open.


3) Check your /etc/hosts file to ensure you see:

127.0.0.1    localhost

as the config connects to "localhost", so if that is missing, roundcube may end up connecting to other IPs, depending on what the nameserver returns.


4) One report of CSF requiring the setting:

SMTP_BLOCK = 1
SMTP_ALLOWLOCAL = 1


© 2018 JBMC Software, Suite 173  3-11 Bellerose Drive, St Albert, AB  T8N 1P7  Canada.  Mon-Fri 9AM-5PM MST