Exclude certain email sub-domains from automatic group membership

I think the intention is that there would be multiple groups, each one associated with a different domain. All users who match a specific domain would be allocated to that group.

A use case would be to automatically create groups associated with a specific organisation (and knowing that the group members are exclusively from that organisation). This would be useful in my community.