How to enable access to the Customer Panel for all mailboxes on a server via CLI?
To enable access to the Customer Panel for all mailboxes on a server use below command:
- Create a file with a list of all mailboxes on the server:
# plesk bin mail -l | sed 's/Mail name[[:space:]]//g' >> /root/mailboxes.txt
- Execute the following command to activate access to the customer panel for all mailboxes on the list:
# for mailbox in `cat /root/mailboxes.txt`; do plesk bin mail -u $mailbox -cp-access true -mailbox true; done
Access to customer panel will be available using the mailbox as a user and a password will be the same as for the mailbox.