commdirmig can migrate a single domain, a list of domains, or all the domains in the LDAP directory. By default, commdirmig migrates all domains in the LDAP directory.
Use one of the following options to specify the domains to be migrated:
-d Domain [, Domain]... [, Domain] specifies individual domain names. You can specify a single domain or a comma-separated list of domains.
-d “*” specifies all domains in the LDAP directory. You must enclose the asterisk in quotes or use the Escape character before the asterisk.
-f DomainFile specifies an ASCII text file that contains a blank-line separated list of domain names. The commdirmig utility migrates the domains named in the file.
In a DomainFile, you also can specify a preferred mail host associated with a specified domain. This option is used as the mail host when mail service is added to users and groups in the domain.
Formatting the Domain File
For each domain to be specified in the DomainFile, type the option letter d, then a space, then the domain name.
To specify an associated mail host, start a new line and type the option letter H, then a space, then the mail host name.
Separate each specified domain with a blank line.
Do not type a dash (-) before the option letters.
In the following example, a DomainFile named domainnames.txt specifies three domains to be migrated and their associated mail hosts to be used for new mail services:
d Domain1 H host1.siroe.com
d Domain2 H host2.sesta.com
d Domain3 H host3.siroe.com
commdirmig -d sesta.com, siroe.com, varrius.org
commdirmig -d *
commdirmig -f /home/user/domainnames.txt