Can send email to self, but not to elsewhere

SYSTEM INFORMATION
OS type and version Ubuntu 20.04.4 LTS
Virtualmin version 6.17-3

So, complete noob question here.

I’ve been using Virtualmin on my servers for a while now, and things usually work out of the box. But right now I have an weird problem.

I can receive email just fine, and I can send email between accounts on my domain. But email sent elsewhere never reaches the destiny.

I have no idea what it might be…

Excerpt from /var/log/mail.log:

Feb 23 20:33:13 server postfix/qmgr[2169]: 7AF14BDEC4: from=<ct7alw@portaldoradioamador.pt>, size=303218, nrcpt=1 (queue active)
Feb 23 20:33:13 server postfix/qmgr[2169]: BE67EBDF22: from=<ct7alw@portaldoradioamador.pt>, size=280580, nrcpt=1 (queue active)
Feb 23 20:33:14 server postfix/smtpd[8859]: warning: hostname a88-157-14-95.static.cpe.netcabo.pt does not resolve to address 88.157.14.95: Name or service not known
Feb 23 20:33:14 server postfix/smtpd[8859]: connect from unknown[88.157.14.95]
Feb 23 20:33:17 server postfix/smtpd[8859]: warning: SASL authentication failure: Password verification failed
Feb 23 20:33:17 server postfix/smtpd[8859]: warning: unknown[88.157.14.95]: SASL PLAIN authentication failed: authentication failure
Feb 23 20:33:19 server postfix/smtpd[8859]: warning: unknown[88.157.14.95]: SASL LOGIN authentication failed: authentication failure
Feb 23 20:33:29 server postfix/smtpd[8859]: 07064BDF23: client=unknown[88.157.14.95], sasl_method=PLAIN, sasl_username=admin@portaldoradioamador.pt
Feb 23 20:33:29 server postfix/cleanup[8861]: 07064BDF23: message-id=<a8792374-2c57-4272-8f53-de602e85cce2@portaldoradioamador.pt>
Feb 23 20:33:29 server postfix/qmgr[2169]: 07064BDF23: from=<admin@portaldoradioamador.pt>, size=292049, nrcpt=1 (queue active)
Feb 23 20:33:29 server postfix/smtpd[8859]: disconnect from unknown[88.157.14.95] ehlo=2 starttls=1 auth=1/3 mail=1 rcpt=1 data=1 quit=1 commands=8/10
Feb 23 20:33:30 server dovecot: imap(admin@portaldoradioamador.pt)<6814><9fz0PLXYUD1YnQ5f>: Connection closed (IDLE running for 0.001 + waiting input for 0.001 secs, 2 B in + 10+10 B out, state=wait-input) in=292152 out=1607 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Feb 23 20:33:40 server dovecot: imap-login: Login: user=<admin@portaldoradioamador.pt>, method=PLAIN, rip=88.157.14.95, lip=135.181.100.131, mpid=8892, TLS, session=<0g6NYbXYFgRYnQ5f>
Feb 23 20:33:43 server postfix/smtp[8872]: connect to hotmail-com.olc.protection.outlook.com[104.47.55.33]:25: Connection timed out
Feb 23 20:33:43 server postfix/smtp[8871]: connect to mx.ptmail.sapo.pt[212.55.154.36]:25: Connection timed out
Feb 23 20:33:43 server postfix/smtp[8871]: 7AF14BDEC4: to=<ruilvo@sapo.pt>, relay=none, delay=600, delays=570/0.02/30/0, dsn=4.4.1, status=deferred (connect to mx.ptmail.sapo.pt[212.55.154.36]:25: Connection timed out)
Feb 23 20:33:59 server postfix/smtp[8889]: connect to mx.ptmail.sapo.pt[212.55.154.36]:25: Connection timed out
Feb 23 20:33:59 server postfix/smtp[8889]: 07064BDF23: to=<ruilvo@sapo.pt>, relay=none, delay=31, delays=0.64/0.01/30/0, dsn=4.4.1, status=deferred (connect to mx.ptmail.sapo.pt[212.55.154.36]:25: Connection timed out)

What else can I show you that would help?

Thanks!

Looks like you don’t have port 25.

What do you mean I don’t have port 25?

See Free smarthost / mail relay to work around port 25 block by VPS host

Thanks for pointing me out in the right direction.
Turns out Hetzner does block these ports, but it’s very well deep in the documentation.
It’s solved! Thanks!

There are topics in these forums which discuss how to get the vps hosting service to unblock port 25. You could search for those if you wish.

Thanks, but as I linked in the answer, I found the place in the docs where that’s documented.

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.