Report this

What is the reason for this report?

i cannot be able to send emails; port 25 is blocked

Posted on December 15, 2019

[root@ns1 ~]# telnet gmail-smtp-in.l.google.com 25 Trying 172.217.197.27… telnet: connect to address 172.217.197.27: Connection timed out Trying 2607:f8b0:400d:c0f::1b… telnet: connect to address 2607:f8b0:400d:c0f::1b: Network is unreachable

please help



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!

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 @eleetgeeks,

It’s possible you you need to allow outgoing TCP traffic on port 25

iptables -I INPUT -p tcp -m tcp --dport 25 -j ACCEPT

Additionally, you can further read this DigitalOcean article explaining more about Iptables and what they are - https://www.digitalocean.com/community/tutorials/iptables-essentials-common-firewall-rules-and-commands

Regards, KDSys

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.