private static IList <SmtpSendConnectorConfig> GetEnabledSendConnectorsInSite(IConfigurationSession session, ADObjectId site, IList <SmtpSendConnectorConfig> sendConnectors)
        {
            IList <SmtpSendConnectorConfig> list = new List <SmtpSendConnectorConfig>();

            foreach (SmtpSendConnectorConfig smtpSendConnectorConfig in sendConnectors)
            {
                if (smtpSendConnectorConfig.Enabled)
                {
                    ADObjectId adobjectId = smtpSendConnectorConfig.HomeMtaServerId;
                    if (adobjectId == null && ADGlobalConfigSettings.SoftLinkEnabled)
                    {
                        adobjectId = ADGroup.GetServerIdFromHomeMta(ADObjectIdResolutionHelper.ResolveDN(smtpSendConnectorConfig.HomeMTA));
                    }
                    Server server = session.Read <Server>(adobjectId);
                    if (server != null && string.Equals(server.ServerSite.ToString(), site.ToString(), StringComparison.OrdinalIgnoreCase))
                    {
                        list.Add(smtpSendConnectorConfig);
                    }
                }
            }
            return(list);
        }