|
|
Adding Aliases (addalias.exe)
Addalias.exe is a utility for adding batches of aliases stored in a text file, or for modifying or deleting aliases on the IMail Server system. If you invoke addalias with no command line options (by typing only addalias at the MS-DOS prompt), you can manually input command lines, pressing Enter after each line. If you do this, press CTRL-Z to exit the utility when you are done.
Basic Command Syntax
addalias [-h hostname] [-cX] [-{a|d|m}] alias[=destination]Adding an Alias to the Primary Host
The following examples add an alias of newalias to the default (primary) host which resolves to e-mail.
addalias -c: -a newalias:email addalias -a newalias=email addalias -c: newalias:email addalias newalias=email addalias newalias emailAdding an Alias to a Specific Host
The following example adds an alias of newalias to the host named secondhost.com and resolves to email.
addalias -h secondhost.com -a newalias emailDeleting an Alias
The following examples delete an alias.
addalias -d oldalias addalias -h another.net -d alias1Importing a Windows NT Group as a Group Alias
The following example converts an existing NT group into an alias.
addalias -h NThost.com -i groupnameThis feature is only intended to work for local and global groups. It is not intended to work with Microsoft Active Directory Services (ADS) "Universal" Groups.
Note: This option is only for hosts using the Windows NT database. Global groups will be ignored if the server is not a primary domain controller (PDC). Return Codes
Addalias returns 1 if it performed at least one of the requested operations; it returns 0 if it failed.
Using a Text File
Instead of entering commands at the MS-DOS prompt, you can use a text file to input multiple commands for one execution. You can use this technique to add aliases to your IMail Server system from another mail system if the other mail program can create a delimited text file of aliases.
For example, you could create a text file named test.txt that contains the following lines.
test1=me test2=test1 test3=test2 -h virtual001 test1=me test3=me -m test2=him -d test3At the MS-DOS prompt, you enter:
addalias < test.txtThe < symbol tells addalias to use test.txt as input.
You then get the following messages:
current host is mail1.ipswitch.com added [mail1.ipswitch.com] test1 -> me added [mail1.ipswitch.com] test2 -> test1 added [mail1.ipswitch.com] test3 -> test2 current host is virtual001 alias exists [virtual001] test1 -> someone added [virtual001] test3 -> me modified [virtual001] test2 -> him deleted [virtual001] test3 -> me
![]() Ipswitch, Inc. http://www.ipswitch.com |
| ©Ipswitch 2004 | |||