Hi We wrote a php script to create new mailboxes and we use these commands: The first two lines to find the client_id $res = $client->mail_domain_get($session_id, array('domain' => "mydomain.tld")); $res = $client->client_get_by_groupid($session_id, $res[0]['sys_groupid']); $res = $client->mail_user_add($session_id, $res['client_id'], $aOut); But at the end, in the database is always sys_userid=1 / sys_groupid=1 What we do wrong to find the correct client_id, if only the domain is avalable? Thanks a log Ivo
...we are a step further... It's only happen, if we assign the mailbox to a reseller, but not if it's a client. Is there an option to assign it also to a reseller? Ivo
Debug things step-by-step; first, check if you get the correct sys_groupid, verify that by taking a look into the sys_group table. Then check if you get the right client_id, verify against client table if this is really the client_id of the reseller that you want to assign the mail user to.
Hi Till Thank's, I see, it's not easy to understand the structure, I have to go deeper, but I think, I found the problem now, doing some testing. Ivo