Tag: mailbox

Office 365 Send on Behalf

Recently we had a client whom wanted to switch over to Office 365, but had a very unique way of wanting their e-mail to work. They had three e-mail addresses, which for the sake of explaining; I will call a@domain1.com, b@domain2.com and c@domain3.com. They want mail from b@domain2.com and c@domain3.com to go into their a@domain1.com and when an email is send from a@domain1.com it shows up as coming from b@domain2.com.

Still with me? Good.

So at first I tried the simple solution by making the connected accounts which does the e-mail forwarding. This also allowed for me to change the sending address in outlook and the web app outlook which made my day at the time. However the client frequently sends e-mails from her iPhone and the exchange service on the iPhone doesn’t have that “send from” field so this option had to be scrapped.

So after many hours on the phone with Microsoft Office 365 Tech support with some excellent and some not quite as excellent service I came up with nothing. I then found information through searching google and tried the following and it worked:

CAUTION FOLLOW THESE INSTRUCTIONS WORD FOR WORD AND DO NOT, I REPEAT DO NOT SKIP OR OVER DO ANY STEP. I AM NOT LIABLE FOR ANY DAMAGES YOU CAUSE TO YOUR SERVICE!

  1. Firstly you have to add the domain you want to show up in the reply field and here is where my big warning above comes into play. DON’T MOVE ANYTHING OVER!You simple want to go about the same way you would add a domain. Please ensure you have administrative privileges before continuing
    • Log into your Office 365 portal and go to Domains under Management.
    • Click Add a domain.
    • Type in the domain you want to show as the reply ex domain2.com
    • Once that brings you to the next page follow the steps and then Verify
    • DO NOT GO ANY FURTHER! DO NOT CLICK NEXT! CANCEL OUT AFTER IF VERIFIES!
    • Now that we have added the domain and NOT bring over anything we have to fire up powershell and run it as administrator. You will need to activate redirecting if you have not already done so by typing this command in first:

→ Set-ExecutionPolicy Unrestricted

And then say yes to the following prompt.

  1. Now that you are allowed to redirect you now have to follow through with these commands:
  2. →$LiveCred = Get-Credential
  3. →$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri -Credential $LiveCred -Authentication Basic –  AllowRedirection
  4. → Import-PSSession $Session
  5. →Set-Mailbox  <insert primary e-mail here> -EmailAddresses SMTP:<Insert reply as email here>         (This is an Ex.  Set-Mailbox a@domain1.com –EmailAddresses SMTP: b@domain2.com)
  6. Now, if all goes well, you go back into you 365 portal, go to Outlook and then once in there go to Options, then select in the drop down See all Options… when that loads you are going to want to select Manage my Organization, then on the left side click on Mail Control and go to Domains & Protection. In here you select the domain you want as the Reply As and click Details and the when the pop up window come up switch from Hosted to Shared.
  7. Voilà! You are now done and everything should work nicely.