• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue API to update mail quota not working

MicheleP

Basic Pleskian
Version 18.0.38 - The API to change mailbox quota does not work. The response is "ok" but the size doesn't change. Tested on three different servers
 
This is the code. I've multiple servers, with Obsidian it not work anymore, does not change the quota, while with a server running Onyx 17.8.11 it works fine, so the problem is with Obsidian 18.0.38

$request = <<<EOF
<packet>
<mail>
<update>
<set>
<filter>
<site-id>$id_server_site</site-id>
<mailname>
<name>$account_name</name>
<mailbox>
<enabled>true</enabled>
<quota>$new_quota</quota>
</mailbox>
</mailname>
</filter>
</set>
</update>
</mail>
</packet>
EOF;

$response = $client->request($request);
 
Back
Top