• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

Issue 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?
 
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