SOLVED

Exchange Online - primary SMTP does not update?

%3CLINGO-SUB%20id%3D%22lingo-sub-361246%22%20slang%3D%22en-US%22%3EExchange%20Online%20-%20primary%20SMTP%20does%20not%20update%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-361246%22%20slang%3D%22en-US%22%3E%3CDIV%20class%3D%22s5mir6g-0%20ZrbTQ%22%3E%3CH2%20id%3D%22toc-hId-1678783270%22%20id%3D%22toc-hId-1730709941%22%3E%26nbsp%3B%3C%2FH2%3E%3CDIV%20class%3D%22_1hLrLjnE1G_RBCNcN9MVQf%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fwww.redditstatic.com%2Fdesktop2x%2Fimg%2FrenderTimingPixel.png%22%20border%3D%220%22%20%2F%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%20class%3D%22_3xX726aBn29LDbsDtzr_6E%20s5mir6g-6%20iBoqCE%22%3E%3CDIV%20class%3D%22fo16tt-0%20bJBAtI%22%3E%3CP%20class%3D%22s90z9tc-10%20fHRkcP%22%3EExchange%20Online%20doesn't%20seem%20to%20update%20the%20primary%20SMTP%20address%2C%20in%20contract%20to%20%3CA%20href%3D%22https%3A%2F%2Fadmin.office.com%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Eadmin.office.com%3C%2FA%3E%20(portal).%3C%2FP%3E%3CP%20class%3D%22s90z9tc-10%20fHRkcP%22%3E%26nbsp%3B%3C%2FP%3E%3CP%20class%3D%22s90z9tc-10%20fHRkcP%22%3EI'm%20using%20AADConnect.%20In%20the%20AD%2C%20I%20used%20%3CA%20href%3D%22mailto%3ASMTP%3Anewaddress%40domain.onmicrosoft.com%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3ESMTP%3Anewaddress%40domain.onmicrosoft.com%3C%2FA%3E%20in%20the%20ProxyAddresses%20attribute.%3C%2FP%3E%3CP%20class%3D%22s90z9tc-10%20fHRkcP%22%3EThe%20mail%20address%20gets%20added%2C%20but%20doesn't%20become%20primary.%20Even%20completely%20removing%20the%20'stuck'%20address%20from%20ProxyAddresses%2C%20doesn't%20change%20anything.%20A%3C%2FP%3E%3CP%20class%3D%22s90z9tc-10%20fHRkcP%22%3E%26nbsp%3B%3C%2FP%3E%3CP%20class%3D%22s90z9tc-10%20fHRkcP%22%3EWhat%20am%20I%20missing%2C%20or%20is%20it%20just%20a%20matter%20of%20a%20lot%20of%20hours%20of%20patience%3F%20Or%20a%20trick%20to%20trigger%20the%20change%3F%3CBR%20%2F%3E%3CBR%20%2F%3EAlso%2C%20when%20do%20removed%20SMTP%20addresses%20(from%20proxyAddresses)%20get%20removed%20from%20Exchange%20Online%20as%20well%3F%3C%2FP%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-361246%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExchange%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-361314%22%20slang%3D%22en-US%22%3ERe%3A%20Exchange%20Online%20-%20primary%20SMTP%20does%20not%20update%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-361314%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%2C%20the%20primary%20SMTP%20issue%20is%20solved.%20But%20I'm%20curious%20about%20%22why%22%20though.%20It%20doesn't%20seem%20to%20make%20a%20lot%20of%20sense%2C%20compared%20to%20managing%20proxyAddresses%20in%20the%20on-prem%20Active%20Directory.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-361312%22%20slang%3D%22en-US%22%3ERe%3A%20Exchange%20Online%20-%20primary%20SMTP%20does%20not%20update%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-361312%22%20slang%3D%22en-US%22%3E%3CP%3EYou%20cant%20remove%20them%2C%20unless%20you%20stop%20DirSync.%20Or%20delete%2Frecrate%20the%20object%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-361293%22%20slang%3D%22en-US%22%3ERe%3A%20Exchange%20Online%20-%20primary%20SMTP%20does%20not%20update%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-361293%22%20slang%3D%22en-US%22%3E%3CP%3EThanks.%20I%20actually%20just%20followed%20the%20logic%20for%20non-onmicrosoft.com%20addresses%3B%20what's%20the%20explanation%20for%20this%20situation%20where%20it%20shouldn't%20be%20accomplished%20with%20editing%20proxyAddresses%20when%20using%20AADConnect%20(hybrid%20situation)%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAlso%2C%20how%20to%20remove%20the%20addresses%20still%20present%20in%20Exchange%20Online%20but%20NOT%20in%20AD%20on-prem%3F%20Deleting%20them%20through%20the%20ECP%20is%20impossible%20'since%20they%20are%20synced'.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-361291%22%20slang%3D%22en-US%22%3ERe%3A%20Exchange%20Online%20-%20primary%20SMTP%20does%20not%20update%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-361291%22%20slang%3D%22en-US%22%3E%3CP%3EGenerally%20speaking%2C%20you%20shouldn't%20be%20managing%26nbsp%3B%40onmicrosoft.com%20addresses%20from%20on-premises.%20For%20the%20scenario%20at%20hand%2C%20you%20can%20%22override%22%20the%20sync%20using%20the%20following%20cmdlet%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3ESet-Mailbox%20user%40domain.com%20-WindowsEmailAddress%20user%40domain.onmicrosoft.com%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3EThis%20will%20set%26nbsp%3B%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%20box-sizing%3A%20border-box%3B%20color%3A%20%23333333%3B%20font-family%3A%20%26amp%3Bquot%3B%20segoeui%26amp%3Bquot%3B%2C%26amp%3Bquot%3Blato%26amp%3Bquot%3B%2C%26amp%3Bquot%3Bhelvetica%20neue%26amp%3Bquot%3B%2Chelvetica%2Carial%2Csans-serif%3B%20font-size%3A%2016px%3B%20font-style%3A%20normal%3B%20font-variant%3A%20normal%3B%20font-weight%3A%20300%3B%20letter-spacing%3A%20normal%3B%20orphans%3A%202%3B%20text-align%3A%20left%3B%20text-decoration%3A%20none%3B%20text-indent%3A%200px%3B%20text-transform%3A%20none%3B%20-webkit-text-stroke-width%3A%200px%3B%20white-space%3A%20normal%3B%20word-spacing%3A%200px%3B%22%3Euser%40domain.onmicrosoft.com%3C%2FFONT%3E%20as%20the%20primary%20SMTP%2C%20regardless%20whether%20the%20user%20is%20synced%20or%20not.%3C%2FFONT%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

 

Exchange Online doesn't seem to update the primary SMTP address, in contract to admin.office.com (portal).

 

I'm using AADConnect. In the AD, I used SMTP:newaddress@domain.onmicrosoft.com in the ProxyAddresses attribute.

The mail address gets added, but doesn't become primary. Even completely removing the 'stuck' address from ProxyAddresses, doesn't change anything. A

 

What am I missing, or is it just a matter of a lot of hours of patience? Or a trick to trigger the change?

Also, when do removed SMTP addresses (from proxyAddresses) get removed from Exchange Online as well?

4 Replies
Highlighted
Best Response confirmed by jbostoen (Occasional Contributor)
Solution

Generally speaking, you shouldn't be managing @onmicrosoft.com addresses from on-premises. For the scenario at hand, you can "override" the sync using the following cmdlet:

 

Set-Mailbox user@domain.com -WindowsEmailAddress user@domain.onmicrosoft.com

 

This will set user@domain.onmicrosoft.com as the primary SMTP, regardless whether the user is synced or not.

Highlighted

Thanks. I actually just followed the logic for non-onmicrosoft.com addresses; what's the explanation for this situation where it shouldn't be accomplished with editing proxyAddresses when using AADConnect (hybrid situation)?

 

Also, how to remove the addresses still present in Exchange Online but NOT in AD on-prem? Deleting them through the ECP is impossible 'since they are synced'.

Highlighted

You cant remove them, unless you stop DirSync. Or delete/recrate the object :)

Highlighted

Thanks, the primary SMTP issue is solved. But I'm curious about "why" though. It doesn't seem to make a lot of sense, compared to managing proxyAddresses in the on-prem Active Directory.