I’ve moved my mailinabox to a new server with help of the tutorial.
An error came up when it was handling owncloud, but running the setup again fixed it.
After checking everything, only one thing was not converted: /home/user-data/owncloud/config.php
The old domain was still in the config file.