Я новичок в Exhange, и у меня есть задача по программированию для создания групп рассылки.
Я использую метод
public GroupPrincipal CreateDistributionGroup(string groupName, string displayName, string description, GroupScope groupScope,
string emailAddress, string exchangeDN)
{
GroupPrincipal distGrp = this.CreateGroup(groupName, description, groupScope, false);
this.SetGroupAttribute(distGrp, GroupAttribute.MailNickName, groupName);
this.SetGroupAttribute(distGrp, GroupAttribute.DisplayName, displayName);
this.SetGroupAttribute(distGrp, GroupAttribute.ReportToOriginator, true);
this.SetGroupAttribute(distGrp, GroupAttribute.Mail, emailAddress);
this.SetGroupArrayAttribute(distGrp, GroupAttribute.ProxyAddresses, "SMTP:" + emailAddress);
this.SetGroupAttribute(distGrp, GroupAttribute.LegacyExchangeDN, exchangeDN);
this.SetGroupAttribute(distGrp, GroupAttribute.MsExchRecipientDisplayType, 1);
return distGrp;
}
Обратите внимание, что одним из устанавливаемых атрибутов является LegacyExchangeDN. Могу ли я игнорировать это в Exchange 2007, или это все еще требуется?
LegacyExchangeDN используется клиентами Outlook2000 (IIRC) и другими клиентами Outlook, которые кэшировали группу. до того, как Exch 2007 был на месте. То есть, если у вас нет запущенного 11-летнего Outlook, вам не нужно устанавливать это для новых групп.