Skip to content

Instantly share code, notes, and snippets.

@MinaMikhailcom
Created December 27, 2020 03:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MinaMikhailcom/60456757356e21312d3faa1375e0f6af to your computer and use it in GitHub Desktop.
Save MinaMikhailcom/60456757356e21312d3faa1375e0f6af to your computer and use it in GitHub Desktop.
1- Create "list" file with email address user and random password
Exmaple:
info JNwjA4MJbFHj
contact on7TaduX7YFU
2- Run the following command from root:
cat list| while read i; do EMAIL=$(echo $i | awk '{print $1}'); PW=$(echo $i | awk '{print $2}'); cpapi2 --user=USERNAME Email addpop domain=DOMAINNAME.COM email=$EMAIL password=$PW quota=0; done
Replace USERNAME with cPanel username.
DOMAINNAME.COM with the domain name.
Set desired Quota (in MB)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment