I'm extremely new to Exhange and have a programming task to create distribution groups.
The method I am using is
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;
}
Notice that one attribute that gets set is the LegacyExchangeDN. Can I safely ignore this in Exchange 2007, or is it still required?