Configuration of the IBM i SMTP Client to Relay Email to Office365 and Gmail

How do you configure the IBM i SMTP Client to relay email to Microsoft Office365 and Google Mail (Gmail)?
Verified by MonsterInsights