After : Modern public folder migration -> Office 365

Borut Puhar 66 Reputation points
2020-11-25T15:14:36.317+00:00

Hi,
I have migrate public fodders to O365.
Problem that I have is with mail enabled public folders.
My mail flow is from on prem to O365.
I have deleted public folder mailboxes on premise.
Mail enabled Public folder “Mailbox“ objects still exist on premise and pointing to deleted Public folder mailbox.
Question is how to delete those object and not brake mail-flow from on prem to Cloud mail enabled public folders ?
I was unable to find documentation, what to do after all public folders are migrated to O365. And you do not nee public folder mailboxes on perm?
Thank you.

Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,519 questions
Microsoft Exchange Hybrid Management
Microsoft Exchange Hybrid Management
Microsoft Exchange: Microsoft messaging and collaboration software.Hybrid Management: Organizing, handling, directing or controlling hybrid deployments.
2,097 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Lydia Zhou - MSFT 2,376 Reputation points Microsoft Employee
    2020-11-26T07:26:41.5+00:00

    @Borut Puhar

    Is your on-premises Exchange hybrid configured with O365?
    Can messages sent to public folders in Exchange Online be delivered successfully?

    The official document mentions that we can remove public folder mailboxes from Exchange on-premises environment. However, it doesn't mention that mail-enabled objects for public folder should be deleted as well. For your reference: Remove public folder mailboxes from your Exchange on-premises environment.
    If the mail flow for public folders works well, we can keep those objects. It's not suggested to remove the mail-enabled public folder objects from AD directly for your hybrid environment.


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. Borut Puhar 66 Reputation points
    2020-11-26T09:18:52.903+00:00

    Hi,
    If I run on premises Exchange Server Get-MailPublicFolder public folder is under : ContentMailbox : ****/Deleted Objects/***/DEL:c45566bc-2545-4678-f26c-38707e01c123

    And when i send an email, you can also see in event log, that object point to deleted object…
    I was thinking to set it to $null. But there is no documentation.

    Mail flow is working.

    I have only few mail public folder mailboxes that they ware not stamp with … ExternalEmailAddress : expf:******

    I was thinking to disabled effected mail enabled public fodders that have issue and enabled it again. Delete on premise object and then run Sync-ModernMailPublicFolders.ps1.
    Temporary I have add in O365 mail Public folder relay address ****.mail.onmiclrosoft.com and set on premises public folder object ExternalEmailAddress to point to ****.mail.onmiclrosoft.com

    Br,
    Borut


  3. Lydia Zhou - MSFT 2,376 Reputation points Microsoft Employee
    2020-12-11T06:40:43.79+00:00

    @Borut Puhar

    Sorry for ignoring that we have to use Remove-Mailbox to delete the pf mailbox directly after migrating to O365. I test on my on-premises Exchange, it can be reproduced that msExchPublicFolderMailbox points to a deleted object:
    47272-632.png

    This should be normal. Based on my knowledge, the added ExternalEmailAddress works for messages sent to pf in the queue. For new messages sent to pf after the migration, they should be delivered to Exchange Online directly according to MX record. So the mail-enabled pf object won't affect new messages sent to the pf in O365, you can leave the mail-enabled object alone. You also can delete it if you make sure no pf messages in the queue on on-premises Exchange.


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.