• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Resolved 100MB mail Limit when creating hosting account via API

jakubeq420

New Pleskian
Server operating system version
Ubuntu 22.04.5 LTS
Plesk version and microupdate number
Obsidian 18.0.71
Hello,
When i create hosting via API (FOSSBilling and my custom WP plugin) - there is one problem. The limit on the mail accounts is only 100MB per account. I was searching the option to incerase this, but i cant find any setting. How can i change this?

Plesk Web pro edition

Thank you for all help,

Jakub
 
If no custom mailbox size limit has been set on the API call a mailbox gets created with limit defined in the service plan. Is the mailbox size limit for the service plan something different?
 
Im retarded af, i looked about 2 hours and this was simple solution. Thank you very very much man u saved me :)
 
If someone have problem with this in future:|

login to SSH
sudo nano /root/update_mail_quota.sh
paste:
#!/bin/bash

# Plesk przekazuje nazwę nowej domeny w zmiennej NEW_DOMAIN_NAME
DOMAIN="$NEW_DOMAIN_NAME"

# Jeśli zmienna jest pusta (np. event inny niż oczekiwany) — wyjdź
[ -z "$DOMAIN" ] && exit 0

# Ustaw quota skrzynek pocztowych na "bez limitu"
plesk bin subscription_settings --update "$DOMAIN" -mbox_quota -1

save
sudo chmod +x /root/update_mail_quota.sh

now go to plesk
tools and settings
event manager
add event handler
choose:
Default domain (the first domain added to a subscription) created
command:
/bin/bash /root/update_mail_quota.sh

U welcome
4wB
 
Back
Top