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 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!

Submit an answer

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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:

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

Best, Bobby