Skip to content

quickstart uses IPv6 subnet base address instead of actual interface address #436

@imaitland

Description

@imaitland

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:

  1. Hetzner VPS with a /64 IPv6 subnet (e.g. 2001:db8:abcd:1234::/64), interface configured with 2001:db8:abcd:1234::1
  2. Run mox quickstart -existing-webserver -hostname mail.example.com postmaster@example.com
  3. Inspect generated config/mox.conf — public listener IPs section has 2001:db8:abcd:1234:: instead of 2001:db8:abcd:1234::1
  4. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions