Remote API - virtual mailbox table

Discussion in 'Installation/Configuration' started by SamTzu, Aug 30, 2018.

  1. SamTzu

    SamTzu Active Member

    I'm testing the ISPconfig Remote API for mailbox remote creation and everything seems to work fine.
    I can see the mailbox being created to /var/vmail/domain.com/username/
    I can login using webmail but when I try to send anything to that new email address I get this error message
    Recipient address rejected: User unknown in virtual mailbox table.

    I can see these two folders created in /var/vmail/domain.com/ folder.
    username
    [email protected]

    It seams that sieve files are missing from the user folder.

    Any idea what I'm missing in the Remote User creation?
     
    Last edited: Aug 30, 2018
  2. SamTzu

    SamTzu Active Member

    I'm thinking it's this part of the code in the Remote script:
    Code:
          try {
              $user->newSubscription('main', $plan)->create($ccToken, [
                  'email' => $user->email
              ]);
    
    $domain=$cp->mailUserAdd(1,
              [
              'server_id'=>1,
              'email'=>$email,
              'login'=>$email,
              'password'=>$pass,
              'maildir' => '/var/vmail/domain.com/'.$user->username,
              'homedir' => '/var/vmail',
              'name'=>$user->username,
              'quota' => 1073741824,
              'move_junk' => 'y',
              'custom_mailfilter' => 'spam',
              'access' => 'y',
              'postfix'=>'y',
              'disableimap' => 'n',
              'disablepop3' => 'n',
              'disabledeliver' => 'n',
              'disablesmtp' => 'n'
              ]);
    
     
  3. SamTzu

    SamTzu Active Member

Share This Page