I'm not entirely sure how this should work, but this is what I'm seeing:
- On a fresh dev server, enter an email on the setup page. Save
- Load Administer > Configuration > Notifications. The email recipients for Error messages, etc. should all match what was entered in step 1. This seems fine to me.
- Change the site admin email under Site Setup, and log out and back in.
- Return to the Notifications page. All of the emails now match the newly entered email.
I think this is happening because the values in the siteConfig for things like notifications.emailRecipientErrorMessages are empty until you actually save that tab, so it simply displays a default value of the admin email. It seems correct to initially fill these values with the site admin, but if you change the site admin address, you probably don't want to nuke these notification emails. So, a possible fix would be instead of defaulting to the site admin, to explicitly set the value for these notifications emails to the site admin email in the site init process.