I'm having a hard time setting up an email server. I decided to go with and E2C instance (specifically, with light-sail) running Ubuntu. On the server, I've put postfix on the server more or less following this guide to the letter. From postfix, I'm able to send an email (and receive it at Gmail). However, I'm not able to receive any mail when I send an email back to my server from my Gmail.
I slam my domain name for the server into mxtoolbox and it tells me "failed to connect"
So I thought to myself... either that port is closed (firewall somewhere) or there isn't a server listening on that port.
I made sure to...
sudo ufw allow Postfix
On the server I...
telnet 'mydomain' 25
Trying 'ip' ...
telnet: Unable to connect to remote host: Connection timed out
Just to see if the server is up and running...
telnet 'mydomain' 80
Trying 'ip' ...
Connected to 'mydomain'
So no new info. So I tried...
netstat -lntu
proto Recv-Q Send-Q Local address Foreign Address State
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN
tcp6 0 0 :::25 :::25 LISTEN
(other lines omitted)
So it would seem that something has opened that port and is listening to it, but... I can't figure out why no connection gets through.
Please give me some trouble shooting ideas on this. I'll add more information as it is asked for if its needed.
edit: more info & spelling