• 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.

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