How do I make MiaB use my new IPv6 address?

I did all the above some time in the past, but recently discovered that the configuration had at some point reverted to Linode’s SLAAC IPv6 address for my Linode instance (when my email started getting rejected as spam again). After several tries, the following procedure seems to have resulted in a persistent change to the new IPv6 address:

  1. Edit /etc/systemd/network/05-eth0.network as described in this specific answer: IPv6 setup trouble | Linode Questions
    In particular, I could not get this to work without the [IPv6AcceptRA] section at the bottom.

  2. Edit /etc/mailinabox.conf and change both the public and private IPv6 addresses listed therein to the new one.

  3. Reboot the instance.

  4. Run the usual curl -s https://mailinabox.email/setup.sh | sudo -E bash MiaB setup. Watch carefully that in fact it now reports your new IPv6 address.

  5. Reboot the instance one more time to get the DNS server running on the new IPv6 address.

That should do it. Hope this turns out to be helpful for others.

1 Like