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 email@example.com, firstname.lastname@example.org and email@example.com. They want mail from firstname.lastname@example.org and email@example.com to go into their firstname.lastname@example.org and when an email is send from email@example.com it shows up as coming from firstname.lastname@example.org.
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!
- 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.
- Now that you are allowed to redirect you now have to follow through with these commands:
- →$LiveCred = Get-Credential
- →$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://pod51013psh.outlook.com/PowerShell-LiveID?PSVersion=2.0 -Credential $LiveCred -Authentication Basic – AllowRedirection
- → Import-PSSession $Session
- →Set-Mailbox <insert primary e-mail here> -EmailAddresses SMTP:<Insert reply as email here> (This is an Ex. Set-Mailbox email@example.com –EmailAddresses SMTP: firstname.lastname@example.org)
- 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.
- Voilà! You are now done and everything should work nicely.