After much hunting around and reading through the Plesk Administrator Guide I finally found an easy way for creating multiple e-mail accounts in batch! This is not a MySQL hook or database related, but stems from the logic of wanting to create multiple accounts at once.
To create an e-mail account in Plesk, first login to your server via SSH.
Execute the following:
/usr/local/psa/bin/mail --create new@yourdomain.com -passwd newpassword-cp-access false
If you want to run a batch, create a script:
1 2 3 4 5 6 7 8 9 | #/bin/bash /usr/local/psa/bin/mail --create new@yourdomain.com -passwd newpassword-cp-access false /usr/local/psa/bin/mail --create new@yourdomain.com -passwd newpassword-cp-access false /usr/local/psa/bin/mail --create new@yourdomain.com -passwd newpassword-cp-access false /usr/local/psa/bin/mail --create new@yourdomain.com -passwd newpassword-cp-access false |













