Salesforce email relay to Office 365

Posted on 2016-08-25
Last Modified: 2016-09-24
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.
Question by:Minot
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
LVL 16

Expert Comment

ID: 41770403
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 Comment

ID: 41781684
Is there any other way besides creating contacts?  We are talking potentially thousands of contacts.  Thanks
LVL 16

Expert Comment

ID: 41781698
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.
Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

LVL 16

Expert Comment

ID: 41781702

Accepted Solution

Minot earned 0 total points
ID: 41805450
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.

Author Closing Comment

ID: 41813569
The link provided was the answer.

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Check out this step-by-step guide for using the newly updated Experts Exchange mobile app—released on May 30.
Microsoft Office 365 is a subscriptions based service which includes services like Exchange Online and Skype for business Online. These services integrate with Microsoft's online version of Active Directory called Azure Active Directory.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA.…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit If you want to manage em…

632 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question