Subaccount AddDomain()
From Rackspace Email & Apps API
This function will add a domain to a subaccount and configure the Webmail.us system to accept email for that domain. Please note that this is wholly separate from the DNS process of configuring the DNS and especially MX records for a domain.
Parameters
Five strings, 3 integers
Administrative username (string), Administrative password (string), Subaccount number (string), New domain name (string), Aliases for the new domain (string, format "alias1.com, alias2.com, ...), Maximum mailbox size in MB (int, must be > 0), Maximum number of mailboxes (int, 0 means no limit and should be used cautiously), Placeholder (int, please set to 1)
Return Values
If successful, the return value of the function will be 1.
Consult the Result Code Table for a list of result codes and their meaning.