From dd47c3b02a0202f18782c67ea78fd5aa30f8ad2d Mon Sep 17 00:00:00 2001 From: Virtuworks Date: Thu, 15 Nov 2012 19:12:51 -0500 Subject: [PATCH] FIXED Wsp-10046 Changed Exchange Domain to Internal Relay if Organization has 0 Allocated Mailbox --- .../Code/HostedSolution/OrganizationController.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/Code/HostedSolution/OrganizationController.cs b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/Code/HostedSolution/OrganizationController.cs index d61b08a8..829a4fa0 100644 --- a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/Code/HostedSolution/OrganizationController.cs +++ b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/Code/HostedSolution/OrganizationController.cs @@ -1123,6 +1123,12 @@ namespace WebsitePanel.EnterpriseServer if (!string.IsNullOrEmpty(org.GlobalAddressList)) { ExchangeServerController.AddAuthoritativeDomain(itemId, domain.DomainId); + + if (orgStats.AllocatedMailboxes == 0) + { + ExchangeAcceptedDomainType newDomainType = ExchangeAcceptedDomainType.InternalRelay; + ChangeOrganizationDomainType(itemId, domain.DomainId, newDomainType); + } } if (org.IsOCSOrganization)