Hi
Thanks for reporting back the solution. Not everybody does that.
The error you reported was the typical log in error. Good to know that not allowed domains send the same error. The full hand-shake, like what the plug-in https://moodle.org/plugins/local_mailtest throws, would have helped.