I'm trying to use the remote api for adding an email user to a domain. I have it creating the user but a few db fields in dbispconfig.mail_user don't seem to update correctly. The main one is sysgroup_id. When I create using ispc, the sysgroup_id updates to 0 which works fine. When I use remote api, it updates to 1 by default. Can someone point me to the correct parameter to set that?
ispc: 3.0.5.4p8 Here are the params being passed. Code: $params = array( "email" => $data["email"], "login" => $data["email"], "password" => $data["password"], "name" => $data["name"], "quota" => "0", "disablepop3" => "y", "server_id" => "2", "uid" => "5000", "gid" => "5000", "client_id" => "0", "maildir" => "/var/vmail/domain.com/" . $data["user"], "homedir" => "/var/vmail", "move_junk" => "Y", "postfix" => "y" //Enable Receiving ); $affected_rows = $client->mail_user_add($session_id, $client_id, $params); I decided to try and pass sys_groupid => "0" just to test , but it still stored as 1.
The variable $client_id is not a value in the params array, please see function call: $affected_rows = $client->mail_user_add($session_id, $client_id, $params);
Sorry Till, maybe I'm just not understanding it. I removed "client_id" => "0", from the params array and passed it as $client_id = 0; for the function, but it's still saving as sys_groupid = 1 in mail_user table.