On a Hetzner VPS with a /64 IPv6 subnet, the interface address is <prefix>::1 but mox quickstart writes <prefix>:: (the subnet base) to mox.conf under the public listener IPs. This causes a fatal error on startup:
l=fatal m="smtp: listen for smtp" err="listen tcp6 [<prefix>::]:25: bind: cannot assign requested address"
It looks like quickstart is picking up the subnet prefix from DNS or routing tables rather than the actual address assigned to the interface (ip -6 addr show scope global).
Steps to reproduce:
- Hetzner VPS with a /64 IPv6 subnet (e.g.
2001:db8:abcd:1234::/64), interface configured with 2001:db8:abcd:1234::1
- Run
mox quickstart -existing-webserver -hostname mail.example.com postmaster@example.com
- Inspect generated
config/mox.conf — public listener IPs section has 2001:db8:abcd:1234:: instead of 2001:db8:abcd:1234::1
mox serve fails with bind: cannot assign requested address
Workaround: Manually edit mox.conf to use the actual interface address.
Environment: Ubuntu 24.04, mox v0.0.15 built with Go 1.24.2.
On a Hetzner VPS with a /64 IPv6 subnet, the interface address is
<prefix>::1butmox quickstartwrites<prefix>::(the subnet base) tomox.confunder the public listener IPs. This causes a fatal error on startup:It looks like quickstart is picking up the subnet prefix from DNS or routing tables rather than the actual address assigned to the interface (
ip -6 addr show scope global).Steps to reproduce:
2001:db8:abcd:1234::/64), interface configured with2001:db8:abcd:1234::1mox quickstart -existing-webserver -hostname mail.example.com postmaster@example.comconfig/mox.conf— public listener IPs section has2001:db8:abcd:1234::instead of2001:db8:abcd:1234::1mox servefails withbind: cannot assign requested addressWorkaround: Manually edit
mox.confto use the actual interface address.Environment: Ubuntu 24.04, mox v0.0.15 built with Go 1.24.2.