Create a public folder mailbox
Before you can create a public folder, you must first create a public folder mailbox. Public folder mailboxes contain the hierarchy information plus the content for public folders. The first public folder mailbox you create will be the primary hierarchy mailbox, which contains the only writable copy of the hierarchy. Any additional public folder mailboxes you create will be secondary mailboxes, which contain a read-only copy of the hierarchy.
For more information about the storage quotas and limits for public folders, see Exchange Online Limits.
For additional management tasks related to public folders in Exchange Online, see Public folder procedures in Microsoft 365 or Office 365 and Exchange Online.
What do you need to know before you begin?
Estimated time to complete: less than 5 minutes.
Exchange Server public folders and public folders on legacy Exchange servers can't exist in the same organization. If you try to create a public folder mailbox when you still have legacy public folders, you'll receive the error An existing Public Folder deployment has been detected. To migrate existing Public Folder data, create new Public Folder mailbox using -HoldForMigration switch.
Before you can create public folders in Exchange Server, you need to migrate your legacy public folders to Exchange Server. To do this, follow the steps in Migrate Public Folders to Exchange 2013 From Previous Versions. These steps will show you how to create a public folder mailbox that can be used to store your migrated public folders.
You need to be assigned permissions before you can perform this procedure or procedures. To see what permissions you need, see the "Public folders" entry in the Feature permissions in Exchange Online topic.
For information about keyboard shortcuts that may apply to the procedures in this topic, see Keyboard shortcuts for the Exchange admin center.
Use the EAC to create a public folder mailbox
Navigate to Public folders > Public folder mailboxes, and then click New .
In Public Folder Mailbox, provide a name for the public folder mailbox.
Use Exchange Online PowerShell to create a public folder mailbox
This example creates the primary public folder mailbox.
New-Mailbox -PublicFolder -Name MasterHierarchy
This example creates a secondary public folder mailbox. The only difference between creating the primary hierarchy mailbox and a secondary hierarchy mailbox is that the primary mailbox is the first one created in the organization. You can create additional public folder mailboxes for load balancing purposes.
New-Mailbox -PublicFolder -Name Istanbul
For detailed syntax and parameter information, see new-Mailbox.
How do you know this worked?
To verify that you have successfully created the primary public folder mailbox, run the following command in Exchange Online PowerShell:
Get-OrganizationConfig | Format-List RootPublicFolderMailbox
For detailed syntax and parameter information, see get-OrganizationConfig.