Automatically map email domains to groups / permission sets?

This was a nice feature of Zendesk.

Don’t think there is any built in way yo do this in discourse at the moment.