"You do not own that domain"

mmo

New member
Joined
Aug 4, 2006
Messages
4
I am trying to create a POP e-mail account with the command below but I keep getting the error message
"You do not own that domain"
PHP:
$sock = new HTTPSocket();
$sock->connect('ssl://localhost', 2222);
$sock->set_login(ADMIN_USERNAME, ADMIN_PASSWORD);	
$sock->set_method('POST');

$sock->query('/CMD_EMAIL_POP',
    array(
        'action'  => 'create',
        'domain'  => $domain,   // i.e. 'mydomain.com'
        'user'    => $username, // i.e. 'john'
        'passwd'  => $password,
        'passwd2' => $password,
        'create'  => 'Create'
    )
);
$result = $sock->fetch_body();
Does anyone know what might cause this error?
I have, off course, first created the account 'mydomain.com' so the error message makes no sense to me.

There are several posts on this forum that feature the same error message, but they did not provide a solution for this particular problem.
Any help is greatly appreciated!
 
Found solution

I have found the solution: apparently creating an e-mail account using the API cannot be done by the administrator but must be done by the user.

PHP:
$sock->set_login($username, $userpassword);
 
Back
Top