• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

Input Excel email account creation

williamplk

Basic Pleskian
Hi,

It should be really automation if I can create 100 email account from excel.

Not site import, just new email need to create such as

UserPasswordMailbox Size
User A1235G
User B1233G
User C1231G
User D1233G
 
Unfortunately, there is a deficient demand for this feature.
From a product point of view, it would cost too much to implement a feature that very few users would use.
 
Even if you have no programming skills it shouldn't be too hard create a bash script that does this using the Plesk CLI. For example something like:

Bash:
#!/bin/bash

while IFS=, read -r column1 column2 column3
do
    /usr/local/psa/bin/mail --create $column1 -mailbox true -passwd $column2 -mbox_quota $column3
done < import.csv

To use this:
  1. Have an excel file with the full email address in the first column, the password in the second column and the mailbox size in the third column.
    [!] Make sure the passwords do not contain comma's.
    [!] Also make sure the mailbox size does not exceed the limit of disk space allocated for mailboxes on the domain.
  2. Save your excel file as a comma separated CSV file named import.csv (or change the file name in the script).
  3. Upload your CSV file to your server.
  4. Create a bash file in the same directory you've uploaded the import.csv file in and add the code above to the bash file.
  5. Run the bash file with root privileges (sudo bash import_script.sh).
 
Last edited:
Back
Top