How to change the nextcloud domain mentioned in notification mails?

I have a Nextcloud installation which is accessable through two Domains. Lets say and In former Times it was only accessable with Most of my friends access trough today. Therefore my friends are some how confusend when they receive mail notifications where at the top of the mail only is stated.

I already changed the order in the file config/config.php to:

array (
0 => '',
1 => '',

What’s the value of your overwrite.cli.url ? Try changing it to the new domain like this:

'overwrite.cli.url' => '',

Thanks for your reply @inX, I have seen the value of overwrite.cli.url yesterday and changed it to but today I received mail notifications with as domain again therefore it did not solve my problem.

Did you restart your webserver after making the changes?

Sorry for my late reply. I did a restart of the webserver and it is still the domain in the mails. At the moment I am using NC 13.