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:
[cci]/usr/local/psa/bin/mail –create new@yourdomain.com -passwd newpassword-cp-access false[/cci]If you want to run a batch, create a script:
[raw]#/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
[/raw]
What does the “false” parameter do?
The False parameter limits control panel access.