First, thanks for this great script, configuring a server for email is a real hard task …
I’ve managed to install succesfully the script here but I’m not reciving any of the mails sent from there. I have no problem to receive any kind of email, but sending doesn’t work at all.
The installation is done at a digitalocean’s droplet.
So you are attempting to send mail from Roundcube, and it’s telling you
Message sent successfully.
But the email never makes it to the destination?
It might be stuck in the mail queue on the server. SSH into the server and run:
postqueue -p
If the output is Mail queue is empty, then the problem is elsewhere. But if the output looks like:
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
3347720828 673 Sat Jul 12 09:17:26 someone@example.com
(Host or domain name not found. Name service error for name=gmail.com type=MX: Host not found, try again)
You might get some clues as to why sending isn’t working.
Your box is not able to connect out to the internet on TCP port 25. It could be a routing issue or a firewall issue. Can you post the output of both these commands?