• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

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