Hi Gregor,
I can confirm that moving the constant define lines above the the following line:
/* That's all, stop editing! Happy publishing. */
..fixed the issue. My issue was that, all regular order related emails worked perfectly, but emails regarding new account creation and password reset resulted in authentication error.
This should definitely be mentioned in installation instructions.
Thanks for finding the issue!