Disabling email for specific domain


(Kuon) #1

I’m setting up a forum for a gaming community on EvE online. And I’d like to give the players the possibility to not provide their email.

So, what I’d like to do, it to tell them to use playername@ouralliance.com as registration email. I use a modified version of GitHub - discourse/discourse-oauth2-basic: A basic OAuth2 plugin for use with Discourse to automatically validate account that register with emails ending in ourallianace.com. As I use EvE online oauth as source of truth for account and disabled all other registration and login method, I know that each account is a valid EvE player.

But now, I’d like to tell discourse to not send any email to the domain ouralliance.com but I’d like to keep global emails enabled for people who wanna put their real email in.

What would be the best way to achieve that?