Sometimes an organization security policies will demand to prevent email users from sending messages to certain external domain names. This can be achieved with Exchange Server 2016 using a Transport Rule.
Open the Exchange Management Console and navigate to Organization Config/Hub Transport.
Start a New Transport Rule. Give an appropriate name and description to the rule.