Created
December 27, 2020 03:15
-
-
Save MinaMikhailcom/60456757356e21312d3faa1375e0f6af to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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