please tell me how massively can I switch axigen accounts from the “Premium” status to the “Basic” status?
Hi @Vit,
You can achieve this by using the python scripts cli2.py, list-accounts.py and set-bulk-accounts.py. They’re available to download here: Download Mail Server Scripts | Axigen
Place them all in a directory and then use them as following:
- Obtain a list of premium accounts using the list-accounts.py script and the following commands:
-
extract all accounts and account types:
$python list-accounts.py file=all_accounts.txt info=1 at=1 -
extract only premium accounts from that file
$grep -B1 “premium” all_accounts.txt | grep @ > premium_accounts.txt
Please note that at this step you can choose which premium users will be switched to basic users just by editing the premium_accounts.txt file. If you don’t edit the list, this will change ALL premium accounts to basic.
- Bulk change the account type from premium to basic (accounts within the previously generated list) using the following command:
$python set-bulk-accounts.py file=premium_accounts.txt :accountType=basic
Thank you very much, everything worked out