I want my user for company domain can only use of mail app.how?

I am using nextcloud for my company employe only. Than how to secure for the specified domain user?
I dont want gmail, yahoo or other user.
Thanks

open the admin settings and go to groupware. configure the domain there.