| Migration | << | >> | 
|---|
To create and change distribution lists, use the Directory Import command.
For each new distribution list, you should define at least four fields in the directory import file:
Obj-Class   Must be the first field in the header. Each data line has this value set to DL.
Display Name   Not strictly required, unless you are trying to maintain a naming convention.
Directory Name   You can use the key word common name. The directory name must be unique in the Recipients container.
Members Lists each member by their directory names. If you have multiple Recipients containers, you should also include the Recipients containers' names.
Other fields can also be added. Here are some sample directory import files for creating distribution lists:
Obj-Class, Display Name, Directory Name, Membersdl,zSales,Sales,Recipients/cn=BillL%Recipients/cn=BrentJ%Recipients/cn=PaulBormObj-Class, Display Name, Common-Name, Membersdl,DL-Social-Sports Fans,DLSOCSP,BillL%BrentJ%PaulBormdl,DL-Org Network Ops,DLorgNO,ShannonB%BrentJObj-Class, Display Name, Directory Name, Members,Owner,Hide From ABdl,DL-Org Network Ops,DLorgNO,ShannonB%BrentJ,BrentJ,0dl,Presidents Group,pg,PaulBorm%BillL,,1
You can create distribution lists with directory information. There are many reasons to use this option, for example:
For example, you can create distribution lists based on directory attributes such as manager name, department name, office location, or title.
   To create distribution lists from manager name information
obj-class,common-name,department,reports,display-name,manager
You may want to add or remove members of a distribution list. You can either change the distribution list, or you can change the recipient by adding a distribution list to the recipient. This section discusses adding or removing members by changing the distribution list.
   To change a distribution list
The following are sample directory import files for adding members to distribution lists:
Obj-Class,Mode,Directory Name, Membersdl,modify,Sales,Recipients/cn=ShannonB%Recipients/cn=DFunkObj-Class, Mode, Directory Name, Membersdl,modify,DLSOCSP,ShannonBdl,modify,DLorgNO,BillL%DFunkObj-Class, Mode, Common-Name, Members,dl,modify,DLorgNO,DFunkdl,modify,pg,DFunk
For example, the following import file adds the new mailbox DFunk to the distribution lists LorgNO and PG:
obj-class,mode,common-name,membersmailbox,modify,DFunk,LorgNO%PG
You can also use this format to add mailboxes, distribution lists, and custom recipients to distribution lists as they are created:
obj-class,mode,common-name,target-address,membersremote,create,HOWARDS,PROFS:SANFRAN(HOWARDS),LorgNO%PG
To remove recipients from distribution lists, you can modify the distribution lists, or you can modify the recipients.
   To remove members by modifying distribution lists
obj-class,mode,common-name,members
obj-class,mode,common-name,membersdl,,LorgNO,DFunk%Howards%BillLdl,,pg,DFunk%Howards%BillL%BrentJ
obj-class,mode,common-name,membersdl,modify,LorgNO,DFunk%Howardsdl,modify,pg,DFunk%Howards%BrentJ
   To remove members by modifying the recipients
obj-class,mode,common-name,members
obj-class,mode,common-name,membersmailbox,,DFunk,LorgNO%PGremote,,Howards,PG%Sales
obj-class,mode,common-name,membersmailbox,mode,DFunk,LorgNOremote,mode,Howard,Sales