You may want to do this in the following scenarios:
- You no longer have an on-premises messaging environment, such as Microsoft Exchange Server.
- You have on-premises line-of-business (LOB) programs or devices (for example, printers, faxes).
- The LOB programs and devices must be able to send email messages to remote domains and to your migrated cloud mailboxes.
These instructions also do not apply to applications or devices that can make their own SMTP connection through an Internet connection. For example, rich clients such as Outlook can connect directly to a remote SMTP server through the Internet and do not require a local SMTP server.
Requirements
- Your on-premises domain must be added as an accepted domain in Office 365. For example, if the account that you're relaying from is bob@tailspintoys.com, you must add tailspintoys.com as an accepted domain in Office 365.
- Your on-premises account must also be either an Exchange Online-licensed user in Office 365 or an alternative email address of an Exchange Online-licensed user. For example, if the account that you're relaying from is printer@tailspintoys.com and you want to relay through bob@contoso.com (an Office 365 user), you must add printer@tailspintoys.com as an alternative address to bob@contoso.com.