I’m on a fresh Ubuntu 22.04 machine by racknerd and I keep getting this HTTP 500 error after entering my password the 2nd time. It would not be an issue except that the install script terminated and is incomplete, no idea exactly what is missing, but the an admin user account is definitely 1 of them
I ran sudo journalctl -u mailinabox -n 25 and it seems that not having IPv6 is the problem:
It’s difficult. There are a number of more or less vague issues with this on the forum. Sometimes it helps to enable ipv6, sometimes it helps to disable ipv6.
For the specific case, we need to look into the exact issue you run into.
Also a little less radical solution to disable ipv6:
Edit /etc/sysctl.d/90-disable_ipv6.conf
net.ipv6.conf.all.disable_ipv6 = 1
Then reload
sudo systctl -p /etc/sysctl.d/90-disable_ipv6.conf
First question, to check your end-goal: you want to install and use Mail-in-a-Box without an ipv6 address, correct?
Do you want to start from scratch? Then it’s easy, rebuild the VPS image and try to install Mail-in-a-Box. You’ll encounter an error, and we’ll look at sudo journalctl -u nsd to see what it reports.
If you want to start working with the installation you have now:
Disable ipv6 (you said earlier you enabled it, how did you do that? Undo it)
Disable ipv6 using the sysctl method I outlined above, because it seems easiest.
Edit /etc/mailinabox.conf and clear the variables defining IPv6 addresses