Hello, A new Ubuntu & ISP installation. I can't send mail outside. I get emails. Everything works on the same server (inside). It’s not just only ability to send emails outside. Where to look for solutions? Code: /// Mail Queue EA8EEE1178 2139 Tue Oct 26 11:54:00 [email protected] (connect to msn-com.olc.protection.outlook.com[104.47.1.33]:25: Connection timed out) [email protected] 7A2D5E11BA 987 Tue Oct 26 11:46:18 [email protected] (connect to ASPmx2.GOOGLEMAIL.com[173.194.202.27]:25: Connection timed out) [email protected] /// telnet alt2.gmail-smtp-in.l.google.com 25 Trying 2607:f8b0:4023:c0b::1a... Trying 142.250.141.26... telnet: Unable to connect to remote host: Connection timed out /// traceroute to alt4.gmail-smtp-in.l.google.com (64.233.171.26), 30 hops max, 60 byte packets 1 169.254.0.1 (169.254.0.1) 0.086 ms 0.058 ms 0.049 ms 2 * * * 3 * * * 30 *** /// UFW To Action From -- ------ ---- [ 3] 25/tcp ALLOW IN Anywhere [ 6] 110/tcp ALLOW IN Anywhere [ 9] 465/tcp ALLOW IN Anywhere [10] 587/tcp ALLOW IN Anywhere [11] 993/tcp ALLOW IN Anywhere [12] 995/tcp ALLOW IN Anywhere [22] 25/tcp (v6) ALLOW IN Anywhere (v6) [25] 110/tcp (v6) ALLOW IN Anywhere (v6) [28] 465/tcp (v6) ALLOW IN Anywhere (v6) [29] 587/tcp (v6) ALLOW IN Anywhere (v6) [30] 993/tcp (v6) ALLOW IN Anywhere (v6) [31] 995/tcp (v6) ALLOW IN Anywhere (v6)
Most likely port 25 is blocked by the ISP where you get the internet connection from. This is quite common if you don't host the system in a data center as most ISP's don't ant that their customers run mail servers on a DSL or cable line. Also some cloud providers like AWS block port 25 as well. The options are: Host your server in a data center or use a cloud provider that allows you to run a mail server or use a smart host to send your outgoing emails through.
Then your datacenter blocks port 25, some datacenters are doing that. Contact your data center and request that they open port 25 outgoing for your server.
Hard to believe, but (data center) ISP has blocked 25. Now everything is OK. Four days of working around :/ Thanks for company! Clicks on a way