• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Please beaware of a breaking change in the REST API on the next Plesk release (18.0.62).
    Starting from Plesk Obsidian 18.0.62, requests to REST API containing the Content-Type header with a media-type directive other than “application/json” will result in the HTTP “415 Unsupported Media Type” client error response code. Read more here

Set all mailbox quotas under a domain

theywill

Basic Pleskian
Plesk 12.x
CentOS 6.6, 64-bit

Is there a way to set the mailbox quotas for all of the mailboxes on a domain, at once? When I set the default, it doesn't change the quotas for existing mailboxes.

Thank you!

James
 
Hello James,

Bulk management of mailbox properties is not yet possible with Plesk 12.
 
Try to use following script:

# for i in `mysql -uadmin -p\`cat /etc/psa/.psa.shadow\` psa -Ns -e "select concat(mail.mail_name,\"@\",domains.name) as address from mail,domains,accounts where mail.dom_id=domains.id and mail.account_id=accounts.id and domains.name='domain.com' order by address"`; do /usr/local/psa/bin/mail -u $i -mbox_quota 10M; done

Just specify highlighted domain name and quota size. Quota for all mailboxes of this domain will be applied according to specified size.
 
Thank you, Igor. That was the magic-sauce I was looking for. I figured it would take a shell script.

Best regards,
James
 
Back
Top