Postal services are up but can't access it through web #3236
Unanswered
nithinkumarmav
asked this question in
Help with using Postal
Replies: 2 comments 18 replies
-
You would normally use caddy or nginx or similar rather than accessing port 5000 directly, I expect that is the issue here as newer Postal/ruby on rails is a bit more sensitive to the domains accessing it. |
Beta Was this translation helpful? Give feedback.
17 replies
-
Hi, just following up on my question about setting up Postal on a VPS and ensuring good email deliverability. Would appreciate any advice. Thanks |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Postal seems to have installed correctly and is up and running:
postal status
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
postal-smtp-1 ghcr.io/postalserver/postal:3.3.4 "/docker-entrypoint.…" smtp 21 minutes ago Up 17 minutes
postal-web-1 ghcr.io/postalserver/postal:3.3.4 "/docker-entrypoint.…" web 21 minutes ago Up 17 minutes
postal-worker-1 ghcr.io/postalserver/postal:3.3.4 "/docker-entrypoint.…" worker 21 minutes ago Up 17 minutes
ufw is also set to allow incoming traffic to port 5000
ufw status
Status: active
To Action From
5000 ALLOW Anywhere
80/tcp ALLOW Anywhere
443/tcp ALLOW Anywhere
25/tcp ALLOW Anywhere
2525/tcp ALLOW Anywhere
587/tcp ALLOW Anywhere
25,80,443,587,993/tcp ALLOW Anywhere
OpenSSH ALLOW Anywhere
5000 (v6) ALLOW Anywhere (v6)
80/tcp (v6) ALLOW Anywhere (v6)
443/tcp (v6) ALLOW Anywhere (v6)
25/tcp (v6) ALLOW Anywhere (v6)
2525/tcp (v6) ALLOW Anywhere (v6)
587/tcp (v6) ALLOW Anywhere (v6)
25,80,443,587,993/tcp (v6) ALLOW Anywhere (v6)
OpenSSH (v6) ALLOW Anywhere (v6)
seems to be actually listening port 5000,but can't access it through web. here's the netstat output:
netstat -tulnp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:5000 0.0.0.0:* LISTEN 9901/puma 6.4.2 (tc
tcp 0 0 127.0.0.54:53 0.0.0.0:* LISTEN 459/systemd-resolve
tcp 0 0 127.0.0.1:9090 0.0.0.0:* LISTEN 9884/ruby
tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 459/systemd-resolve
tcp 0 0 127.0.0.1:9091 0.0.0.0:* LISTEN 9900/ruby
tcp 0 0 127.0.0.1:2019 0.0.0.0:* LISTEN 4515/caddy
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1/init
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 3570/docker-proxy
tcp6 0 0 :::443 :::* LISTEN 4515/caddy
tcp6 0 0 :::25 :::* LISTEN 9900/ruby
tcp6 0 0 :::22 :::* LISTEN 1/init
tcp6 0 0 :::80 :::* LISTEN 4515/caddy
udp 0 0 127.0.0.54:53 0.0.0.0:* 459/systemd-resolve
udp 0 0 127.0.0.53:53 0.0.0.0:* 459/systemd-resolve
udp6 0 0 :::443 :::* 4515/caddy
Here's the docker situation:
docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
5be4abab2f36 ghcr.io/postalserver/postal:3.3.4 "/docker-entrypoint.…" 32 minutes ago Up 28 minutes postal-smtp-1
b9b88f393cc1 ghcr.io/postalserver/postal:3.3.4 "/docker-entrypoint.…" 32 minutes ago Up 28 minutes postal-worker-1
bd50559d7d7e ghcr.io/postalserver/postal:3.3.4 "/docker-entrypoint.…" 32 minutes ago Up 28 minutes postal-web-1
045a210f5667 caddy "caddy run --config …" 2 hours ago Up 2 hours postal-caddy
c6e5606568bd mariadb "docker-entrypoint.s…" 2 hours ago Up 2 hours 127.0.0.1:3306->3306/tcp postal-mariadb
It is showing the html when i command curl -v http://mysubdomain.mydomain.com:5000
< HTTP/1.1 200 OK
but I am not able to get to postal through http://mysubdomain.mydomain.com:5000/ through my browser.
And I just can't figure out what's wrong here, any pointers?
Beta Was this translation helpful? Give feedback.
All reactions