Score:0

Port 25 being filtered but i have opened it as far as i'm aware

et flag

For the past few days I have been trying to get my emails working, PHP mail is not sending any emails on my new Vultr install, I emailed support and they say:

Hello,

Your port 25 is showing as filtered. Have you been able to enable that port in the firewall.

---[Network]---
Ping X.X.X.X is OK

3 packets transmitted, 3 received, 0% packet loss, time 405ms
rtt min/avg/max/mdev = 0.334/0.353/0.366/0.025 ms

---[Ports]---
20/tcp    filtered ftp-data         no-response
21/tcp    open     ftp              syn-ack
22/tcp    open     ssh              syn-ack
25/tcp    filtered smtp             no-response
53/tcp    open     domain           syn-ack
80/tcp    open     http             syn-ack
143/tcp   open     imap             syn-ack
443/tcp   open     https            syn-ack
587/tcp   closed   submission       conn-refused
993/tcp   open     imaps            syn-ack
2083/tcp  filtered radsec           no-response
2087/tcp  filtered eli              no-response
3306/tcp  open     mysql            syn-ack
3389/tcp  filtered ms-wbt-server    no-response
8443/tcp  filtered https-alt        no-response
10000/tcp filtered snet-sensor-mgmt no-response

So to open a port my understanding is to do:

sudo ufw allow 25 

But I am still unable to send emails, this rule was already added it says. Is there something else I can do to open the port? any help is appreciated.

EDIT:

Trying 142.250.150.26...
Connected to alt1.gmail-smtp-in.l.google.com.
Escape character is '^]'.
220 mx.google.com ESMTP s19-20020a2e98d3000000b002462b3b53basi13636862ljj.113 -                                                                                        gsmtp

FedKad avatar
cn flag
You are trying to allow an ***inbound TCP 25 port*** connection. However, to ***send*** emails, you need an ***outbound TCP 25 port*** connection. Most Internet providers will block outbound TCP 25 connections.
colinreedy674 avatar
et flag
The thing is they say I should be able to send emails, they haven't blocked port 25 so they say. they just keep telling me it is filtered.
FedKad avatar
cn flag
Please, login to the machine you are trying to send email and test with the command `telnet alt1.gmail-smtp-in.l.google.com. 25`. Paste the command output into your original question.
colinreedy674 avatar
et flag
Just updated with the output :)
FedKad avatar
cn flag
Then you have to look at the mail logs. Typically under `/var/log/mail.log`. Your emails may be rejected because of poor `postfix` (or whatever sendmail equivalent software you are using) configuration (SPF, reverse DNS record, DKIM being only a few of them).
colinreedy674 avatar
et flag
in the logs i'm getting ```postfix/smtp[22646]: connect to gmail-smtp-in.l.google.com[2a00:1450:4013:c03::1b]:25: Network is unreachable``` and ```90A5E17BD27: to=<[email protected]>, relay=gmail-smtp-in.l.google.com[108.177.119.26]:25, delay=0.88, delays=0.02/0.01/0.25/0.6, dsn=2.0.0, status=sent (250 2.0.0 OK 1646165196 jr14-20020a170906a98e00b006ad1ac61309si8630913ejb.501 - gsmtp)``` i have even reconfigured postfix a few times, i will try again :)
FedKad avatar
cn flag
I had listed some basic mail server configuration tasks at https://www.kadifeli.com/fedon/hint.php?cloud_mailconf Make sure you check them...
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.