You can actually create a custom.yaml
file in /home/user-data/www/
mydomain:
redirects:
^/$: $scheme://mydomain/mail
Then you need to go into mailinabox/management and do sudo ./dns_update.py
to refresh the dns
This solution does not get overwritten during upgrades.