Mailbox register

Discussion in 'General' started by Vynstus, Feb 13, 2017.

  1. Vynstus

    Vynstus New Member

    Good afternoon! I'm trying to register a mail box in ISPConfig, but I get the following error when I add:
    Code:
    Code:
    public function addMailBox(Server_Account $a, $new) {
            //print_r($params);
            $client     = $a->getClient();
    
            $params = array(
                'server_id' => 1,
                'email' => '[email protected]',
                'login' => '[email protected]',
                'password' => 'qwer1234',
                'name' => $new['name'],
                'uid' => 5000,
                'gid' => 5000,
                'maildir' => '/var/vmail/test.int/joe',
                'quota' => 0,
                'cc' => '',
                'homedir' => '/var/vmail',
                'autoresponder' => 'n',
                'autoresponder_start_date' => array('day' => 1,'month' => 7, 'year' => 2012, 'hour' => 0, 'minute' => 0),
                'autoresponder_end_date' => array('day' => 20,'month' => 7, 'year' => 2012, 'hour' => 0, 'minute' => 0),
                'autoresponder_text' => 'hallo',
                'move_junk' => 'n',
                'custom_mailfilter' => 'spam',
                'postfix' => 'n',
                'access' => 'n',
                'disableimap' => 'n',
                'disablepop3' => 'n',
                'disabledeliver' => 'n',
                'disablesmtp' => 'n'
                );
    
            $action = 'mail_user_add';
            $result = $this->_request($action, $params);
            return $result;
        }
    Error:
    Code:
    {"result":null,"error":{"message":"email_error_isemail<br \/>\r\nlogin_error_regex<br \/>\r\nquota_error_value<br \/>\r\n","code":9999}}
    If anyone can help, I appreciate it!!
     

Share This Page