assistanz
Assistanz
Creating bulk email accounts in cPanel

We can create any number of email user accounts under particular domain using below one line script, on any cPanel servers.

This script requires input file that contains email username and password in the form of “username:password” without double quotes for the domain “domain.com” as given below.

$ cat users.txt

user1:C!5%aBpwMYs<1nx(
user2:P<kk%arM9e*7$3y?
user3:1)W9P%JWFhyn%1j#
user4:kXR7w?(4Q?T%$JMe
user5:]?MHTAn?!f^C1CzK
user6:a5?YF+sd321Xs8ez
user7:`jSgbX*VAcFdPA1]
user8:E8@hcPWx1`d?(&Jf
user9:()sC+2sH$8P]cakw
user10:j6aQtfgW4t73`tH9

Shell script:

$ for i in `cat users.txt`; do /scripts/addpop `echo $i|awk -F":" {'print $1'}`@domain.com  `echo $i|awk -F":" {'print $2'}`;done

Where users.txt is a text file that contains username and password separated by colon. And of course, don’t forget to replace domain.com with your domain name.

Above script will create email accounts with unlimited disk quota.  If you want to  add limit, use –quota as below;

$  for i in `cat users.txt`; do /scripts/addpop `echo $i|awk -F”:” {‘print $1’}`@domain.com  `echo $i|awk -F”:” {‘print $2’}`  –quota 100M;done

Above script will create email accounts with 100M disk quota.

user1@domain.com
user2@domain.com
user3@domain.com
user4@domain.com
user5@domain.com
user6@domain.com
user7@domain.com
user8@domain.com
user9@domain.com
user10@domain.com

—-x———-x———000———x———-x—-

If you would like to DELETE all the accounts created above, you may use below script;

$  for i in `cat  userslist.txt`; do /usr/local/cpanel/scripts/delpop $i ;done

Where userslist.txt is a text file that contains  list of email accounts  as below;

user1@domain.com
user2@domain.com
user3@domain.com
user4@domain.com
user5@domain.com
user6@domain.com
user7@domain.com
user8@domain.com
user9@domain.com
user10@domain.com

Hope it helps.

DirectAdmin Server Management Plans

Premium Support

24/7 End User Support from your Helpdesk
$ 99 Monthly / Server
  • Unlimited Support Plan
  • 24/7 Emergency Phone
  • Chat Support for Admin
  • Separate Account Manager
  • NDA & SLA
  • SLA Review Meetings
  • FREE Consultancy Services
  • Simple SignUp Process
  • Instant Account Activation
  •  

Platinum Support

24/7 Proactive Support
$ 49 Monthly / Server
  • Unlimited Support Plan
  • 24/7 Emergency Phone
  • Chat Support for Admin
  • Separate Account Manager
  • Advance Proactive Monitoring
  • Guaranteed SLA
  • SLA Review Meetings
  • 3rd Party Application Support
  • FREE Consultancy Services
  • Server Migration Support
  • Weekly Status Report
  • No End User Support
Popular

Unlimited Support

24/7 Support

$ 30 Monthly / Server
  • Unlimited Support Plan
  • 24/7 Support
  • Basic Monitoring
  • 30 Minutes Response Time
  • 4 Hours Resolution time for the Possible Issues
  • Security and Performance Optimization
  • React to Customers queries
  • Simple SignUp Process
  • Instant Account Activation
  • No Third party application support
  • No Migration and End User Support

Cpanel Server Management Plans

Premium Support

24/7 End User Support from your Helpdesk

$ 99 Monthly / Server
  • 24/7 End User White Label Support
  • Unlimited Number of Tickets
  • Chat Support for Admin
  • Separate Account Manager
  • Guaranteed SLA
  • Weekly Status Reports
  • FREE Consultancy Services
  • Simple SignUp Process
  • Instant Account Activation

Platinum Support

24/7 Proactive Server Management
$ 49 Monthly / Server
  • Unlimited Support Plan
  • 24/7 Emergency Phone
  • Chat Support for Admin
  • Separate Account Manager
  • Advance Proactive Monitoring
  • Guaranteed SLA
  • SLA Review Meetings
  • 3rd Party Application Support
  • FREE Consultancy Services
  • Server Migration Support
  • Weekly Status Report
  • No End User Support
Popular

Unlimited Support

24/7 Server Management

$ 29 Monthly / Server
  • Unlimited Admin Tasks
  • 24/7 Support
  • Basic Monitoring
  • 30 Minutes Response time
  • 4 hours Response time for possible issues
  • Security and Performance Optimization
  • React to Customers queries
  • No Third party application support
  • No Migration and End User Support

Cpanel Server Management Plans

Premium Support

24/7 End User Support from your Helpdesk

$ 99 Monthly / Server
  • 24/7 End User White Label Support
  • Unlimited Number of Tickets
  • Chat Support for Admin
  • Separate Account Manager
  • Guaranteed SLA
  • Weekly Status Reports
  • FREE Consultancy Services
  • Simple SignUp Process
  • Instant Account Activation

Platinum Support

24/7 Proactive Server Management
$ 49 Monthly / Server
  • Unlimited Support Plan
  • 24/7 Emergency Phone
  • Chat Support for Admin
  • Separate Account Manager
  • Advance Proactive Monitoring
  • Guaranteed SLA
  • SLA Review Meetings
  • 3rd Party Application Support
  • FREE Consultancy Services
  • Server Migration Support
  • Weekly Status Report
  • No End User Support
Popular

Unlimited Support

24/7 Server Management

$ 29 Monthly / Server
  • Unlimited Admin Tasks
  • 24/7 Support
  • Basic Monitoring
  • 30 Minutes Response time
  • 4 hours Response time for possible issues
  • Security and Performance Optimization
  • React to Customers queries
  • No Third party application support
  • No Migration and End User Support