• 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
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff 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