HOW TO FORCE REMOVE contoso.ONMICROSOFT.COM MAIL ALIAS ?

%3CLINGO-SUB%20id%3D%22lingo-sub-2731025%22%20slang%3D%22en-US%22%3EHOW%20TO%20FORCE%20REMOVE%20contoso.ONMICROSOFT.COM%20MAIL%20ALIAS%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2731025%22%20slang%3D%22en-US%22%3E%3CP%3EHI%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHOW%20TO%20FORCE%20REMOVE%20.ONMICROSOFT.COM%20MAIL%20ALIAS%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethe%20mail%20that%20should%20remain%20is%20contoso.com%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eusers%20are%20synched%20from%20local%20AD.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2731025%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2731421%22%20slang%3D%22en-US%22%3ERe%3A%20HOW%20TO%20FORCE%20REMOVE%20contoso.ONMICROSOFT.COM%20MAIL%20ALIAS%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2731421%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F61448%22%20target%3D%22_blank%22%3E%40Marvin%20Oco%3C%2FA%3E%26nbsp%3BGenerally%20it's%20a%20bad%20idea%20to%20touch%20the%20onmicrosoft.com%20aliases%20and%20other%20references%2C%20Microsoft%20uses%20these%20under%20the%20hood%20for%20many%20different%20purposes.%20When%20you're%20using%20Azure%20AD%20Connect%2C%20it%20will%20probably%20even%20prohibit%20you%20from%20removing%20it.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20what's%20the%20exact%20use%20case%20here%3F%20If%20the%20user's%20primary%20proxy%20address%20is%20set%20to%20their%20%22%40contoso.com%22%20address%20but%20they%20have%20a%20secondary%20alias%20set%20to%20their%20onmicrosoft.com%20address%2C%20is%20this%20a%20concern%20or%20problem%3F%20Did%20something%20break%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2731594%22%20slang%3D%22en-US%22%3ERe%3A%20HOW%20TO%20FORCE%20REMOVE%20contoso.ONMICROSOFT.COM%20MAIL%20ALIAS%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2731594%22%20slang%3D%22en-US%22%3Eto%20prevent%20external%20senders%20to%20send%20to%20.onmicroft.com%20alias%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E
Super Contributor

HI,

 

HOW TO FORCE REMOVE .ONMICROSOFT.COM MAIL ALIAS?

 

the mail that should remain is contoso.com

 

users are synched from local AD.

 

thanks

3 Replies

@Marvin Oco Generally it's a bad idea to touch the onmicrosoft.com aliases and other references, Microsoft uses these under the hood for many different purposes. When you're using Azure AD Connect, it will probably even prohibit you from removing it.

 

So what's the exact use case here? If the user's primary proxy address is set to their "@contoso.com" address but they have a secondary alias set to their onmicrosoft.com address, is this a concern or problem? Did something break?

to prevent external senders to send to .onmicroft.com alias
Makes sense I guess. As mentioned, I seem to recall you cannot really remove these in a hybrid identity situation. You could leave them in place and reject all external email directly sent to the onmicrosoft.com domain as an alternative option. There’s an old article at the link below, not sure if it’s still applicable nowadays but a quick scan through it seems it should be.

https://docs.microsoft.com/en-us/archive/blogs/rrajan/how-to-block-direct-delivery-to-email-address-...