AddDomain.exe is a utility for adding virtual domains. It can be used to simply add a single domain, but is especially useful in a batch file to add multiple domains.
Usage:
adddomain -h Hostname -i IPAddress -t TopDir
[-a Aliases -u IM | NT | External -x MaxMBXSize -s MaxMBXMsgs -r MaxUsers]
adddomain -h Hostname -m
[-t TopDir -a Aliases -x MaxMBXSize -s MaxMBXMsgs -r MaxUsers]
adddomain -h Hostname -i IPAddress -t TopDir -u External
[-e DLLFilename -o ODBC_DSN -n TableName]
adddomain -h Hostname -delete
adddomain -f Filename
Examples:
adddomain -h newhost1 -i virtual -u external
adddomain -h newhost2 -i virtual -u external -e C:\mydll.dll
adddomain -h ExistingHost -m -u external -o MyNewDSN
Note: The -e, -o, and -n commands must be used in conjunction with -u EXTERNAL.
adddomain -h ExistingHost -m -u external -o IMailSecDB;UID=MyUser;
PWD=MyPassword
adddomain -u external -t C:\IMail\newdomain_com -i virtual
-o IMailSecDB;UID=sqluser;PWD=sqlpassword -n table_name
Command |
Function |
-h |
Fully qualified host name; must match the IMail official host name |
-i |
IP address or virtual IP address for an IP-less host |
-t |
Path (full or relative) to the top directory for the domain |
-m |
Command to modify existing settings instead of creating new ones |
-a |
Alias list for a host |
-u |
User data base to use (IMail, NT, or external) |
-e |
Path to external database implementation DLL |
-o |
External database ODBC system Data Source Name (DSN ) |
-n |
External database table name |
-x |
Default max mailbox size (in kbytes). |
-s |
Default max number of messages for mailbox. |
-f |
Path to the file containing the settings to modify |
-r |
Maximum number of users allowed on this host. |
-delete |
Removes the virtual host. |
Note: AddDomain.exe does not warn when assigning already claimed IP addresses to new hosts. Assigning an already used IP address to another host will orphan the original host without warning.