• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Input Excel email account creation

williamplk

New 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