-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Description
Description of problem
I'm trying to host an email server (using Haraka).
I followed this guide https://dokku.com/docs/networking/port-management/ and disabled nginx proxy and zero-downtime deployment.
I've also added the container exposed ports using docker-options dokku docker-options:add server deploy "-p 25:25/tcp".
Everything looks like it should be working:
sudo docker inspect --format '{{ .NetworkSettings.Ports }}' 2d7f7b39d353
map[25/tcp:[{0.0.0.0 25} {:: 25}]]
However, the port 25 is still no available when I'm trying for example to run a telnet command against it
Do you have any idea ?
Steps to reproduce
dokku apps:create mail-server
dokku proxy:disable mail-server
dokku checks:disable mail-server
dokku docker-options:add mail-server deploy "-p 25:25/tcp"
dokku report $APP_NAME
-----> uname: Linux vps-4f2a569f 6.1.0-9-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.27-1 (2023-05-08) x86_64 GNU/Linux
-----> memory:
total used free shared buff/cache available
Mem: 3835 962 314 0 2845 2872
Swap: 0 0 0
-----> docker version:
Client: Docker Engine - Community
Version: 24.0.5
API version: 1.43
Go version: go1.20.6
Git commit: ced0996
Built: Fri Jul 21 20:35:35 2023
OS/Arch: linux/amd64
Context: default
Server: Docker Engine - Community
Engine:
Version: 24.0.5
API version: 1.43 (minimum version 1.12)
Go version: go1.20.6
Git commit: a61e2b4
Built: Fri Jul 21 20:35:35 2023
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.22
GitCommit: 8165feabfdfe38c65b599c4993d227328c231fca
runc:
Version: 1.1.8
GitCommit: v1.1.8-0-g82f18fe
docker-init:
Version: 0.19.0
GitCommit: de40ad0
-----> docker daemon info:
Client: Docker Engine - Community
Version: 24.0.5
Context: default
Debug Mode: true
Plugins:
buildx: Docker Buildx (Docker Inc.)
Version: v0.11.2
Path: /usr/libexec/docker/cli-plugins/docker-buildx
compose: Docker Compose (Docker Inc.)
Version: v2.20.2
Path: /usr/libexec/docker/cli-plugins/docker-compose
Server:
Containers: 3
Running: 3
Paused: 0
Stopped: 0
Images: 8
Server Version: 24.0.5
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Using metacopy: false
Native Overlay Diff: true
userxattr: false
Logging Driver: json-file
Cgroup Driver: systemd
Cgroup Version: 2
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: io.containerd.runc.v2 runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 8165feabfdfe38c65b599c4993d227328c231fca
runc version: v1.1.8-0-g82f18fe
init version: de40ad0
Security Options:
apparmor
seccomp
Profile: builtin
cgroupns
Kernel Version: 6.1.0-9-cloud-amd64
Operating System: Debian GNU/Linux 12 (bookworm)
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 3.746GiB
Name: vps-4f2a569f
ID: 6696f4c4-2161-46ae-81a8-cfd622b028d4
Docker Root Dir: /var/lib/docker
Debug Mode: false
File Descriptors: 41
Goroutines: 57
System Time: 2023-08-29T19:50:59.624558406Z
EventsListeners: 0
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
-----> git version: git version 2.39.2
-----> sigil version: 0.10.1build+e443be0
-----> herokuish version:
herokuish: v0.7.0
buildpacks:
heroku-buildpack-multi v1.2.0
heroku-buildpack-ruby v256
heroku-buildpack-nodejs v218
heroku-buildpack-clojure v90
heroku-buildpack-python v234
heroku-buildpack-java v72
heroku-buildpack-gradle v39
heroku-buildpack-scala v96
heroku-buildpack-play v26
heroku-buildpack-php v237
heroku-buildpack-go v177
heroku-buildpack-nginx v23
buildpack-null v3
-----> dokku version: dokku version 0.31.1
-----> plugn version: plugn: 0.13.0build+fd5297a
-----> dokku plugins:
00_dokku-standard 0.31.1 enabled dokku core standard plugin
20_events 0.31.1 enabled dokku core events logging plugin
app-json 0.31.1 enabled dokku core app-json plugin
apps 0.31.1 enabled dokku core apps plugin
builder 0.31.1 enabled dokku core builder plugin
builder-dockerfile 0.31.1 enabled dokku core builder-dockerfile plugin
builder-herokuish 0.31.1 enabled dokku core builder-herokuish plugin
builder-lambda 0.31.1 enabled dokku core builder-lambda plugin
builder-null 0.31.1 enabled dokku core builder-null plugin
builder-pack 0.31.1 enabled dokku core builder-pack plugin
buildpacks 0.31.1 enabled dokku core buildpacks plugin
caddy-vhosts 0.31.1 enabled dokku core caddy-vhosts plugin
certs 0.31.1 enabled dokku core certificate management plugin
checks 0.31.1 enabled dokku core checks plugin
common 0.31.1 enabled dokku core common plugin
config 0.31.1 enabled dokku core config plugin
cron 0.31.1 enabled dokku core cron plugin
docker-options 0.31.1 enabled dokku core docker-options plugin
domains 0.31.1 enabled dokku core domains plugin
enter 0.31.1 enabled dokku core enter plugin
git 0.31.1 enabled dokku core git plugin
haproxy-vhosts 0.31.1 enabled dokku core haproxy-vhosts plugin
logs 0.31.1 enabled dokku core logs plugin
mongo 1.35.0 enabled dokku mongo service plugin
network 0.31.1 enabled dokku core network plugin
nginx-vhosts 0.31.1 enabled dokku core nginx-vhosts plugin
openresty-vhosts 0.31.1 enabled dokku core openresty-vhosts plugin
plugin 0.31.1 enabled dokku core plugin plugin
ports 0.31.1 enabled dokku core ports plugin
proxy 0.31.1 enabled dokku core proxy plugin
ps 0.31.1 enabled dokku core ps plugin
registry 0.31.1 enabled dokku core registry plugin
repo 0.31.1 enabled dokku core repo plugin
resource 0.31.1 enabled dokku core resource plugin
run 0.31.1 enabled dokku core run plugin
scheduler 0.31.1 enabled dokku core scheduler plugin
scheduler-docker-local 0.31.1 enabled dokku core scheduler-docker-local plugin
scheduler-null 0.31.1 enabled dokku core scheduler-null plugin
shell 0.31.1 enabled dokku core shell plugin
ssh-keys 0.31.1 enabled dokku core ssh-keys plugin
storage 0.31.1 enabled dokku core storage plugin
trace 0.31.1 enabled dokku core trace plugin
traefik-vhosts 0.31.1 enabled dokku core traefik-vhosts plugin
=====> mail-server app-json information
App json computed selected: app.json
App json global selected: app.json
App json selected:
=====> mail-server app information
App created at: 1693165021
App deploy source: git-push
App deploy source metadata: 5cfb102c7c54faad31ca223b0f534a166d6aec40
App dir: /home/dokku/mail-server
App locked: false
=====> mail-server builder information
Builder build dir:
Builder computed build dir:
Builder computed selected:
Builder global build dir:
Builder global selected:
Builder selected:
=====> mail-server builder-dockerfile information
Builder dockerfile computed dockerfile path: apps/haraka/Dockerfile
Builder dockerfile global dockerfile path: Dockerfile
Builder dockerfile dockerfile path: apps/haraka/Dockerfile
=====> mail-server builder-herokuish information
Builder herokuish computed allowed: true
Builder herokuish global allowed: true
Builder herokuish allowed:
=====> mail-server builder-lambda information
Builder lambda computed lambdayml path: lambda.yml
Builder lambda global lambdayml path: lambda.yml
Builder lambda lambdayml path:
=====> mail-server builder-pack information
Builder pack computed projecttoml path: project.toml
Builder pack global projecttoml path: project.toml
Builder pack projecttoml path:
=====> mail-server buildpacks information
Buildpacks computed stack: gliderlabs/herokuish:latest-22
Buildpacks global stack:
Buildpacks list:
Buildpacks stack:
=====> mail-server caddy information
Caddy image: lucaslorentz/caddy-docker-proxy:2.8
Caddy letsencrypt email:
Caddy letsencrypt server: https://acme-v02.api.letsencrypt.org/directory
Caddy log level: ERROR
Caddy polling interval: 5s
Caddy tls internal: false
=====> mail-server ssl information
Ssl dir: /home/dokku/mail-server/tls
Ssl enabled: false
Ssl hostnames:
Ssl expires at:
Ssl issuer:
Ssl starts at:
Ssl subject:
Ssl verified:
=====> mail-server checks information
Checks disabled list: all
Checks skipped list: none
Checks computed wait to retire: 60
Checks global wait to retire: 60
Checks wait to retire:
=====> mail-server docker options information
Docker options build: --build-arg EMAIL --build-arg DOMAIN --build-arg CF_Token --build-arg CF_Zone_ID --build-arg CF_Account_ID --build-arg LOGTAIL_API_KEY --link dokku.mongo.ghostlymail:dokku-mongo-ghostlymail
Docker options deploy: --link dokku.mongo.ghostlymail:dokku-mongo-ghostlymail --restart=on-failure:10 -p 25:25/tcp
Docker options run: --link dokku.mongo.ghostlymail:dokku-mongo-ghostlymail
=====> mail-server domains information
Domains app enabled: false
Domains app vhosts: mail-server.ghostlymail.com
Domains global enabled: true
Domains global vhosts: ghostlymail.com
=====> mail-server git information
Git deploy branch: main
Git global deploy branch: master
Git keep git dir: false
Git rev env var: GIT_REV
Git sha:
Git source image:
Git last updated at: 1693337651
=====> mail-server haproxy information
Haproxy image: byjg/easy-haproxy:4.3.0
Haproxy letsencrypt email:
Haproxy letsencrypt server: https://acme-v02.api.letsencrypt.org/directory
Haproxy log level: ERROR
=====> mail-server logs information
Logs computed max size: 10m
Logs global max size: 10m
Logs global vector sink:
Logs max size:
Logs vector sink:
=====> mail-server network information
Network attach post create:
Network attach post deploy:
Network bind all interfaces: false
Network computed attach post create:
Network computed attach post deploy:
Network computed bind all interfaces: false
Network computed initial network:
Network computed tld:
Network global attach post create:
Network global attach post deploy:
Network global bind all interfaces: false
Network global initial network:
Network global tld:
Network initial network:
Network static web listener:
Network tld:
Network web listeners: 172.17.0.4:25
=====> mail-server nginx information
Nginx access log format:
Nginx access log path: /var/log/nginx/mail-server-access.log
Nginx bind address ipv4:
Nginx bind address ipv6: ::
Nginx client max body size:
Nginx disable custom config: false
Nginx error log path: /var/log/nginx/mail-server-error.log
Nginx global hsts: true
Nginx computed hsts: true
Nginx hsts:
Nginx hsts include subdomains: true
Nginx hsts max age: 15724800
Nginx hsts preload: false
Nginx computed nginx conf sigil path: nginx.conf.sigil
Nginx global nginx conf sigil path: nginx.conf.sigil
Nginx nginx conf sigil path:
Nginx proxy buffer size: 4096
Nginx proxy buffering: on
Nginx proxy buffers: 8 4096
Nginx proxy busy buffers size: 8192
Nginx proxy read timeout: 60s
Nginx last visited at:
Nginx x forwarded for value: $remote_addr
Nginx x forwarded port value: $server_port
Nginx x forwarded proto value: $scheme
Nginx x forwarded ssl:
=====> mail-server openresty information
Openresty access log format:
Openresty access log path: /var/log/nginx/mail-server-access.log
Openresty bind address ipv4:
Openresty bind address ipv6: ::
Openresty client max body size:
Openresty error log path: /var/log/nginx/mail-server-error.log
Openresty global hsts: true
Openresty computed hsts: true
Openresty hsts:
Openresty hsts include subdomains: true
Openresty hsts max age: 15724800
Openresty hsts preload: false
Openresty image: dokku/openresty-docker-proxy:0.5.6
Openresty letsencrypt email:
Openresty letsencrypt server: https://acme-v02.api.letsencrypt.org/directory
Openresty proxy buffer size: 4096
Openresty proxy buffering: on
Openresty proxy buffers: 8 4096
Openresty proxy busy buffers size: 8192
Openresty proxy read timeout: 60s
Openresty x forwarded for value: $remote_addr
Openresty x forwarded port value: $server_port
Openresty x forwarded proto value: $scheme
Openresty x forwarded ssl:
=====> mail-server ports information
Ports map:
Ports map detected: http:25:25
=====> mail-server proxy information
Proxy enabled: false
Proxy type: nginx
=====> mail-server ps information
Deployed: true
Processes: 1
Ps can scale: true
Ps computed procfile path: Procfile
Ps global procfile path: Procfile
Ps procfile path:
Ps restart policy: on-failure:10
Restore: true
Running: true
Status web 1: running (CID: 2d7f7b39d35)
=====> mail-server registry information
Registry computed image repo: dokku/mail-server
Registry computed push on release: false
Registry computed server:
Registry global push on release:
Registry global server:
Registry image repo:
Registry push on release:
Registry server:
Registry tag version:
=====> mail-server resource information
=====> mail-server scheduler information
Scheduler computed selected: docker-local
Scheduler global selected: docker-local
Scheduler selected:
=====> mail-server scheduler-docker-local information
Scheduler docker local disable chown:
Scheduler docker local init process: true
Scheduler docker local parallel schedule count:
=====> mail-server storage information
Storage build mounts:
Storage deploy mounts:
Storage run mounts:
=====> mail-server traefik information
Traefik api enabled: false
Traefik api vhost: traefik.dokku.me
Traefik basic auth password:
Traefik basic auth username:
Traefik dashboard enabled: false
Traefik image: traefik:v2.10
Traefik letsencrypt email:
Traefik letsencrypt server: https://acme-v02.api.letsencrypt.org/directory
Traefik log level: ERROR
Traefik priority:
Additional information
No response
Output of failing commands after running: dokku trace:off
No response
Output of failing commands after running: dokku trace:on
No response