diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution.Exchange2013/Exchange2013.cs b/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution.Exchange2013/Exchange2013.cs index e9206dc6..1eaeef42 100644 --- a/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution.Exchange2013/Exchange2013.cs +++ b/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution.Exchange2013/Exchange2013.cs @@ -4486,7 +4486,7 @@ namespace WebsitePanel.Providers.HostedSolution public string CreateOrganizationRootPublicFolder(string organizationId, string organizationDistinguishedName, string securityGroup, string organizationDomain) { - ExchangeLog.LogStart("AddOrganizationRootPublicFolder"); + ExchangeLog.LogStart("CreateOrganizationRootPublicFolder"); string res = null; @@ -4505,13 +4505,18 @@ namespace WebsitePanel.Providers.HostedSolution CheckOrganizationRootFolder(runSpace, organizationId, securityGroup, orgCanonicalName, organizationId); res = orgCanonicalName + "/" + GetPublicFolderMailboxName(organizationId); + + string rootFolder = "\\" + organizationId; + + // exchange transport needs access to create new items in order to deliver email + AddPublicFolderClientPermission(runSpace, rootFolder, "Anonymous", "CreateItems"); } finally { CloseRunspace(runSpace); } - ExchangeLog.LogEnd("AddOrganizationRootPublicFolder"); + ExchangeLog.LogEnd("CreateOrganizationRootPublicFolder"); return res; } @@ -4746,9 +4751,6 @@ namespace WebsitePanel.Providers.HostedSolution System.Threading.Thread.Sleep(5000); } - // exchange transport needs access to create new items in order to deliver email - AddPublicFolderClientPermission(runSpace, folder, "Anonymous", "CreateItems"); - } finally {