When trying to send an e-mail from Roundcube Webmail in Hestiacp, the following error appears. SMTP Error (): Connection to server failed.
Please attach the error log and related text!
The /var/log directory has a detailed Roundcube error log
how i can solve it please ??
Port 25 for outgoing email open?
yes is open
provide related logs then, without its impossible to guess. How did you ensured port 25 is open?
i execute this : root@hestia1:~# telnet smtp.gm ail.com 25
Trying 2a00:1450:4013:c02::6c…
Connected to smt p. gma il.com.
Escape character is ‘^]’.
220 smtp.g mail. com ESMTP a640c23a62f3a-ace6ed701eesm831074966b.140 - gsmtp…
The problem is that Roundcube can’t connect to localhost
on port 587
, I suppose it’s because localhost
resolves to ::1
(IPv6) but Exim is only listening on IPv4 .
Edit file /etc/localhost
and comment this line:
::1 localhost ip6-localhost ip6-loopback
so it will look like this:
#::1 localhost ip6-localhost ip6-loopback
Save the file and try again.
Show the output of these commands:
ping -c1 localhost
telnet localhost 587
Do you know that you are using Postfix? If you are using Hestia you should have Exim.
lsof -Pn +c0 -i:25,465,587 -sTCP:LISTEN
Okay, what should I do because my WordPress websites are unable to send emails, and SMTP is not working?
Well, you are not using Exim, you are using Postfix so that means that you are not using Hestia or you are using some mixed conf not supported by Hestia.
i am using hetsia may be confiraguration is not good
can you tell me what should i do please to use exim
Then you have a Frankenstein. I have no idea how you got into that situation, so I can’t help you here.