#Can't setup mail server

46 messages · Page 1 of 1 (latest)

rich glacier
#

https://reintech.io/blog/setting-up-mail-server-postfix-almalinux-9
Hello! I have fallowed this tutorial for setting up a mailserver with postfix
The mailserver seems to be working, as I can receive and send e-mails, but I can not set it up in the panel due to stream_socket_client() error.
My SMTP server is hosted on a different host than the panel.
Also, do you need to put your ssh user's creds on the user and password fields?(may be a stupid question but im learning)
Should I make any more changes to Postfix server, any more thats on that tutorial?
Thank you.

rich glacier
#

if I do # telnet [mydomain.tld] 25
I get:
Connecting To [mydomain.tld]...Could not open connection to the host, on port 25: Connect failed
Maybe is something on /etc/postfix/main.cf that I should change? if so, what exactly?
As a reminder, I can send and receive e-mails

vivid veldt
#

You can send and receive from where?

rich glacier
vivid veldt
#

Right, so that just means postfix is working

But your panel machine can't reach your mail server for whatever reason
Timeouts are usually firewall or routing related. Some providers even block SMTP connections

rich glacier
vivid veldt
#

Who is your panel provider?

rich glacier
#

its home-self hosted

rich glacier
vivid veldt
#

Right, then look into your VPN being misconfigured
The connection is timing out. So something somewhere is blocking the connection

rich glacier
rich glacier
vivid veldt
#

From your mail server is irrelevant
You need to be doing things from your PANEL machine. That's what is giving you the error

rich glacier
#

I tried enabling the submission port but I havent gotten me anywhere

bitter patio
vivid veldt
#

As you've shown, and I've confirmed, postfix is publicly accessible - at least to TCP ping. Your PANEL machine can't reach your mail server. Troubleshoot THAT connection

bitter patio
rich glacier
bitter patio
#

That isn't going to help you

#

You need to do your own tests from your own panel server

vivid veldt
#

No I'm not going to telnet some random address

rich glacier
#

just wonderiing if its something from me..

bitter patio
#

You've already shown its open to public

#

This is entirely an issue between your panel server and mail server

#

As you've been told multiple times

rich glacier
bitter patio
#

So actually troubleshoot your connection BETWEEN the panel and mail server

rich glacier
#

any hint how..?

rich glacier
bitter patio
#

Its your network. You need to know how to manage it

#

It's nothing Pterodactyl specific

bitter patio
rich glacier
#

ah, so its something else apart from server's users

vivid veldt
#

Auth doesnt come into anything here
Your connection isn't even reaching your mail server. Let alone even getting to the point of checking auth

rich glacier
#

I tried from 2 different ips to reach the server..nothing ;/

rich glacier
bitter patio
#

Your testing against gmail....

rich glacier
#

i just tried to confirm port 25 isnt blocked, as for example, I cant reach it with my own IP address

vivid veldt
#

As I said, some providers outright block SMTP.
But if your connection is via a VPN, such would not apply

rich glacier
#

yep

bitter patio
#

As you've been told now multiple times. You need to troubleshoot your network issue between your panel server and mail server.
We can't help you with that here.