Question

Postfix does not receive messages

Hi. I setup postfix on my Ubuntu 18.0.4 by some tutorials. It sends mails to other boxes(like my email on gmail). I already get certificate and configurate tls. But I can not receive any email. Postfix is listening 25 port.

master     9680            root   13u  IPv4 250327773      0t0  TCP localhost:25 (LISTEN)
master     9680            root   14u  IPv6 250327774      0t0  TCP ip6-localhost:25 (LISTEN)
master     9680            root   18u  IPv4 250327779      0t0  TCP localhost:587 (LISTEN)
master     9680            root   19u  IPv6 250327780      0t0  TCP ip6-localhost:587 (LISTEN)

also my ufw status :

ufw status
Status: inactive

But when I scan my 25 port by scan service like this https://www.ipvoid.com/port-scan/ or from my home PC - it teels :

WARNING: TCP connect to (myipaddress : 25) failed  

Can anybody help me with my problem? /var/log/mail.log tells nothing about incoming messages. Thanks!

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi there,

By default SMTP port 25 is blocked on all Droplets for some new accounts to prevent spam and other abuses of our platform.

To send mail on these accounts, use a dedicated email deliverability platform (such as Sendgrid and Mailgun), which are better at handling deliverability factors like IP reputation.

For more information you could check the official documentation here:

https://docs.digitalocean.com/support/why-is-smtp-blocked/

Alternatively, you could use port 465 or 587 rather than 25.

Best, Bobby