Settiing up mail setup globally with database dependencies

Thanks @sid, that is valuable input too. I’ll be trying both options in the next few days.
I’ve create a bug report here.