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?
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' ]);
This seems to be related to sshfs mount issues. More about those in here... https://www.howtoforge.com/community/threads/vmail-on-network-drive.79865/