• Debian 11 has reached its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.81 is the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

How to add multiple email accounts

Pagemakers

Silver Pleskian
We need to add about 1000 email accounts to a domain. They will be in the format [email protected] with a unique password.

Is there a quick way of doing this - eg some sort of csv file import, or much we enter every single on of them manually?
 
I have a small shell script to add user's through the unix api. You will need to upload a file email.txt to the same directory of the script. The email.txt file should have the email address followed by a space or tab, and then the password on each line.

example:
[email protected] password
[email protected] pass2

You can then run the script sh <yourfilename>.sh

**Note
I am an advanced begginer when it comes to shell scripting I do not claim this script is the easiest/fastest/etc., but it should work. Please use at your own risk. I'm not responsible for your data, server, etc.

***** copy below this line for the script*******
#!/bin/sh

awk '{ print "/usr/local/psa/bin/mail.sh -c " $1 " -cp_access false -mailbox true -passwd " $2}' ./email.txt >> ./setup.sh;

sh setup.sh;
 
Back
Top