How to change all subscriptions mailbox size to unlimited using CLI?

Refers to:

  • Plesk 11.5 for Windows
  • Plesk 11.5 for Linux
  • Plesk 12.0 for Windows
  • Plesk 12.0 for Linux

Created:

2016-11-16 13:13:27 UTC

Modified:

2016-12-21 20:13:49 UTC

0

Was this article helpful?


Have more questions?

Submit a request

How to change all subscriptions mailbox size to unlimited using CLI?

Question

How to change all subscriptions mailbox size to unlimited using command line?

Answer

  1. Create psa database backup according to article KB213904125

  2. Execute this query:

    For Windows

    FOR /F "usebackq" %a IN (\\`"%plesk_dir%"\\mysql\\bin\\mysql.exe -uadmin -ppassword- P8306 psa -Ne"select name from domains where parentDomainId=0 and webspace_id=0"\\`) DO "%plesk_cli%"\\subscription_settings.exe -u %a -mbox_quota -1

For Linux

    #  mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa -Ne "select name from domains where parentDomainId=0 and webspace_id=0" | while read a; do /usr/local/psa/bin/subscription_settings -u $a -mbox_quota -1; done
Have more questions? Submit a request
Please sign in to leave a comment.