Email does not work; Net::SMTPAuthenticationError

I’d wager DISCOURSE_SMTP_USER_NAME is incorrect - mail is probably not enough for mailgun to authenticate you. It should probably be mail@mg.mydomain.com

I’d guess you think DISCOURSE_SMTP_DOMAIN is the domain of the user? It’s not - it’s the EHLO domain. You almost definitely don’t need to set it.

1 Like