We help IT Professionals succeed at work.

Salesforce email relay to Office 365

Minot
Minot asked
on
I am hoping to get this setup without having to setup an internal IIS SMTP server.  Does anyone know the procedure for getting this setup correctly?

Currently when sending email from salesforce it is sent on behalf of the user.  All users have Office 365 mailbox.  I have configured a connector in Office 365 which allows it to work when sending email to company users but when sending to external it fails.
Comment
Watch Question

FOXActive Directory/Exchange Engineer
Top Expert 2015

Commented:
In your office 365 admin center you have to create CONTACTS for your external users with their email addresses.  Once done you will be able to send to those contacts.

Author

Commented:
Is there any other way besides creating contacts?  We are talking potentially thousands of contacts.  Thanks
FOXActive Directory/Exchange Engineer
Top Expert 2015

Commented:
Did you test with one external email set up as a contact in O365 to verify if that worked? You can do a bulk import of the contacts into o365 with powershell and a .csv file.
FOXActive Directory/Exchange Engineer
Top Expert 2015

Commented:
Commented:
Not sure what fixed this.  I had originally followed these instructions and it did not work for external users.  I went back a few weeks later and re-enabled relay without changing anything else and it worked.  So the below link may be correct.  Thanks for the help.

https://www.cirrusinsight.com/blog/setting-up-email-relay-for-salesforce-with-office-365

Author

Commented:
The link provided was the answer.