Deleting public folders from hybrid environment

%3CLINGO-SUB%20id%3D%22lingo-sub-1298270%22%20slang%3D%22en-US%22%3EDeleting%20public%20folders%20from%20hybrid%20environment%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1298270%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20an%20hybrid%20Exchange%20environment%20everything%20is%20running%20ok%2C%20but%20now%20I%20am%20starting%20to%20take%20on%20the%20task%20of%20eliminating%20the%20public%20folders%20which%20are%20in%20the%20on-prem%20Exchange%20server%20(2010)%20and%20recreate%20them%20in%20O365%20or%20delete%20them.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20I%20have%20a%20mail%20enabled%20public%20folder%20in%20my%20on-prem%20environment.%26nbsp%3B%20I%20went%20ahead%20and%20from%20the%20on-prem%20Exchange%20console%2C%20I%20changed%20the%20folder%20to%20%22Mail%20Disabled%22.%26nbsp%3B%20I%20then%20ran%20Azure%20sync.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20problem%20is%20that%20I%20cannot%20create%20a%20shared%20mailbox%20on%20O365%20with%20the%20same%20SMTP%20address%20because%20I%20get%20the%20following%20error%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CDIV%20class%3D%22ModalDlg%20msgbx%22%3E%3CDIV%3E%3CDIV%20class%3D%22MsgCtrl%22%3E%3CDIV%3E%3CDIV%20class%3D%22bdy%22%3E%3CDIV%20class%3D%22msgbox%22%3E%3CDIV%20class%3D%22hw100%20msgboxDiv%22%3E%3CDIV%20class%3D%22paddv%22%3E%3CDIV%3E%3CDIV%3E%3CEM%3E%3CSPAN%20class%3D%22dspBlock%20breakWord%20Error%22%3EThe%20proxy%20address%20%22SMTP%3Auser%40domain.com%22%20is%20already%20being%20used%20by%20the%20proxy%20addresses%20or%20LegacyExchangeDN%20of%20%22PublicMailboxName%22.%20Please%20choose%20another%20proxy%20address.(%20The%20%22PublicFolder%22%20with%20display%20name%20%22PublicMailboxName%22%20is%20already%20setup%20and%20using%20the%20same%20address.)%3C%2FSPAN%3E%3C%2FEM%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20I%20do%20the%20Azure%20sync%20I%20don't%20even%20see%20where%20it%20is%20replicating%20the%20fact%20that%20I%20removed%20this%20SMTP%20locally.%26nbsp%3B%20Any%20suggestions%20on%20what%20I%20can%20do%20to%20make%20this%20happen%3F%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1298270%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdmin%20center%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExchange%20Online%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EHybrid%20O365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1298440%22%20slang%3D%22en-US%22%3ERe%3A%20Deleting%20public%20folders%20from%20hybrid%20environment%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1298440%22%20slang%3D%22en-US%22%3E%3CP%3ESo%20there%20are%20two%20things%20in%20play%20here.%20First%2C%20newer%20versions%20of%20AAD%20Connect%20have%20the%20%22sync%20public%20folders%22%20feature%2C%20but%20that%20only%20pertains%20to%20mail%20flow%20(enabling%20said%20addresses%20to%20receive%20messages%20when%20DBEB%20is%20enabled).%20In%20such%20scenarios%2C%20you%20can%20simply%20remove%20the%20address%20on-premises%2C%20wait%20for%20sync%20to%20happen.%20Details%20are%20here%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fexchange-team-blog%2Foffice-365-directory-based-edge-blocking-support-for-on-premises%2Fba-p%2F606740%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fexchange-team-blog%2Foffice-365-directory-based-edge-blocking-support-for-on-premises%2Fba-p%2F606740%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAnother%20scenario%20is%20when%20you%20have%20configured%20%22co-existence%22%20for%20PFs%20and%20are%20running%20a%20script%20to%20%22manually%22%20synchronize%20them.%20In%20this%20scenario%2C%20it's%20a%20matter%20or%20rerunning%20the%20script.%20Details%20are%20here%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fexchange%2Fcollaboration-exo%2Fpublic-folders%2Fset-up-modern-hybrid-public-folders%23step-2-configure-directory-synchronization%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fexchange%2Fcollaboration-exo%2Fpublic-folders%2Fset-up-modern-hybrid-public-folders%23step-2-configure-directory-synchronization%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1298499%22%20slang%3D%22en-US%22%3ERe%3A%20Deleting%20public%20folders%20from%20hybrid%20environment%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1298499%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F58%22%20target%3D%22_blank%22%3E%40Vasil%20Michev%3C%2FA%3E%26nbsp%3BSo%20we%20have%20no%20public%20folders%20in%20Exchange%20Online%20at%20all%2C%20nor%20do%20they%20show%20up%20in%20the%20UI.%26nbsp%3B%20Our%20public%20folders%20only%20reside%20on-prem.%26nbsp%3B%20So%20I%20assume%20we%20aren't%20doing%20the%20script%20in%20the%20second%20option.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20checked%20our%20Azure%20Sync%2C%20and%20the%20%22Exchange%20Mail%20Public%20Folders%22%20option%20is%20unchecked.%26nbsp%3B%20Are%20you%20basically%20saying%20now%20that%20I%20have%20mail%20disabled%20on%20that%20public%20folder%2C%20I%20should%20enable%20that%20option%20in%20Azure%20Sync%20and%20do%20a%20full%20sync%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1299972%22%20slang%3D%22en-US%22%3ERe%3A%20Deleting%20public%20folders%20from%20hybrid%20environment%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1299972%22%20slang%3D%22en-US%22%3E%3CP%3ENone%20of%20the%20methods%20I%20mentioned%20will%20actually%20result%20in%20creating%20PFs%20in%20Exchange%20Online.%20What%20they%20do%20is%20create%20a%20%22representation%22%20of%20the%20PF%20object%2C%20so%20that%20ExO%20can%20handle%20mail%20flow%20for%20it.%20This%20usually%20takes%20the%20form%20of%20a%20mail%20user%2C%20but%20if%20you've%20played%20with%20things%20manually%20can%20be%20other%20recipient%20types%20as%20well.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThere's%20no%20need%20to%20enable%20said%20option%20on%20your%20AAD%20Connect%20install%2C%20if%20it's%20unchecked%20it%20simply%20means%20you%20are%20not%20using%20that%20method.%20Check%20with%20your%20peers%20whether%20the%20other%20method%20(running%20a%20PS%20script%2Fscheduled%20task)%20is%20used.%20And%20run%20the%20following%20in%20ExO%20to%20give%20you%20an%20idea%20what%20kind%20of%20object%20you%20have%20for%20said%20address%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EGet-recipient%20email%40domain.com%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Hello,

 

I have an hybrid Exchange environment everything is running ok, but now I am starting to take on the task of eliminating the public folders which are in the on-prem Exchange server (2010) and recreate them in O365 or delete them.

 

So I have a mail enabled public folder in my on-prem environment.  I went ahead and from the on-prem Exchange console, I changed the folder to "Mail Disabled".  I then ran Azure sync.

 

The problem is that I cannot create a shared mailbox on O365 with the same SMTP address because I get the following error:

 

The proxy address "SMTP:user@domain.com" is already being used by the proxy addresses or LegacyExchangeDN of "PublicMailboxName". Please choose another proxy address.( The "PublicFolder" with display name "PublicMailboxName" is already setup and using the same address.)

 

When I do the Azure sync I don't even see where it is replicating the fact that I removed this SMTP locally.  Any suggestions on what I can do to make this happen??

3 Replies

So there are two things in play here. First, newer versions of AAD Connect have the "sync public folders" feature, but that only pertains to mail flow (enabling said addresses to receive messages when DBEB is enabled). In such scenarios, you can simply remove the address on-premises, wait for sync to happen. Details are here: https://techcommunity.microsoft.com/t5/exchange-team-blog/office-365-directory-based-edge-blocking-s...

 

Another scenario is when you have configured "co-existence" for PFs and are running a script to "manually" synchronize them. In this scenario, it's a matter or rerunning the script. Details are here: https://docs.microsoft.com/en-us/exchange/collaboration-exo/public-folders/set-up-modern-hybrid-publ...

 

@Vasil Michev So we have no public folders in Exchange Online at all, nor do they show up in the UI.  Our public folders only reside on-prem.  So I assume we aren't doing the script in the second option.

 

I checked our Azure Sync, and the "Exchange Mail Public Folders" option is unchecked.  Are you basically saying now that I have mail disabled on that public folder, I should enable that option in Azure Sync and do a full sync?

None of the methods I mentioned will actually result in creating PFs in Exchange Online. What they do is create a "representation" of the PF object, so that ExO can handle mail flow for it. This usually takes the form of a mail user, but if you've played with things manually can be other recipient types as well.

 

There's no need to enable said option on your AAD Connect install, if it's unchecked it simply means you are not using that method. Check with your peers whether the other method (running a PS script/scheduled task) is used. And run the following in ExO to give you an idea what kind of object you have for said address:

 

Get-recipient email@domain.com