[SCRIPT] MASS Self-Hosted Email Accounts Creation - Make 1000s Email IDs within a minute

redstone.1337

BANNED
Joined
Dec 30, 2009
Messages
1,258
Reaction score
1,000
Today I needed bulk email ids and wanted to make use of my throwaway domains for it. So, I wrote up with a script for it. It can be very useful to each of you here too. Almost every tool supports cpanel email accounts (they can be accessed via POP like any other regular email accounts like gmail, yahoo, etc.). But these will be self-hosted email accounts you don't have to fear and risk getting them banned like for other email providers. Also you don't have to spend on captchas or buy accounts from providers. :D This script can be used to make accounts on bulk (as many you want but don't make more than 1000 at a time). Read the instructions, enter proper details, save it as whatever.php, upload it on your server (or run it from localhost using WAMP) and run it in the browser. It will output email ids and password after account creation is successful.

Email ids will be created like - {prefix}{a number}@domain.com. Password will be same for each (or if you want a random password for each I can modify the script later but I don't see the point for different passes as you host these email accounts). Please read the instructions in the script twice before asking any question. Still if you have any doubts you can ask them here. Or if you want any modifications I can do it when I get time.

Script-

PHP:
<?php

set_time_limit(0);

// cPanel info
$cpuser = 'cpaneluser'; // cPanel username
$cppass = 'cpanelpass'; // cPanel password
$cpdomain = 'domain.com'; // cPanel domain or IP
$cpskin = 'x3';  // cPanel skin. Mostly x or x2.
// Read here to know how to check cPanel skin - http://www.zubrag.com/articles/determine-cpanel-skin.php

$epass = 'emailpassy'; // email password
$edomain = 'emaildomain.com'; // email domain (usually same as cPanel domain above)
$equota = 50; // amount of space in megabytes

// Email format - {prefix}{number}@{domain.tld}
$prefix = "zz";
$start = "1";
$end = "100";
$separator = ":"; // The script will output in format emailid{separator}password. So if you want emailid:pass then enter ":" separator.

for($i=$start;$i<=$end;$i++) {
	$euser =  $prefix . $i;	
	$f = fopen ("http://$cpuser:$cppass@$cpdomain:2082/frontend/$cpskin/mail/doaddpop.html?email=$euser&domain=$edomain&password=$epass&quota=$equota", "r");
	  if (!$f) {
		$msg = 'Cannot create email account. Possible reasons: "fopen" function allowed on your server, PHP is running in SAFE mode';
		break;
	  }
	  echo $euser . "@" . $edomain . $separator . $epass . "<br />";
}

?>

Feel free to ask any questions you have. :)
 
love this one.
is it work for a hosting addedon many domain name?
 
love this one.
is it work for a hosting addedon many domain name?

Yeah, works for addon domains too. :) Just replace 'emaildomain.com' with the addon domain that you want to use for email accounts creation in the script.
 
Why don't you just make a catch all account? Catch-all account will receive any emails sent to [email protected]

Nice idea. But I think using it with tools can confuse it. If the tool uses 50 random email accounts to register on some site (say, WPMU) that emails the password then the software can mess it up while parsing out passwords because when it will login, all the 50 emails will have the same subject so it may keep on parsing out passwords till the end and open every email (maybe delete it too in most cases). Also it will be a mess using same inbox for everything unless you use different domains for every purpose. I haven't tested catch all account but when I have a better solution then I'd prefer to go with it. :)
 
Damn I love your threads sometimes!

Rep given and well deserved, anyone else should do the same!
 
One small problem though, I cancelled my reseller with hostgator which means I can host as many domains as I like but I they are all under one cpanel like the screen shot attached!

The script looks like its making the emails but when I go into cpanel I don't see them?

I have a feeling its because I am on a different skin?
 

Attachments

  • fd.jpg
    fd.jpg
    62.8 KB · Views: 31
One small problem though, I cancelled my reseller with hostgator which means I can host as many domains as I like but I they are all under one cpanel like the screen shot attached!

The script looks like its making the emails but when I go into cpanel I don't see them?

I have a feeling its because I am on a different skin?

Hostgator has modified the cPanel interface and I guess the link structures too. Can you give me the hyperlink of "Email Accounts" option and also of the cPanel Home and I'll see what is the problem. You don't need to disclose the domain. Just replace your domain with abc or whatever and give the link here.
 
cpanel : 2082/frontend/x3/index.php?post_login=860033891828

Email : :2082/frontend/x3/mail/pops.html

That?
 
ok so I edited the script and ran it

the php page shows the email accounts but when i check the cpanel account, no email accounts had been created.

any ideas?
 
cpanel : 2082/frontend/x3/index.php?post_login=860033891828

Email : :2082/frontend/x3/mail/pops.html

That?
These are just fine. There is some other problem. Please recheck all the edits you have made.

ok so I edited the script and ran it

the php page shows the email accounts but when i check the cpanel account, no email accounts had been created.

any ideas?
Uh, I can't diagnose the problem without looking at the output. Most probably you both are entering something wrong while editing.

Just to remind. $cpdomain is for the domain of which the cPanel you want to use. It maybe the cPanel primary domain or maybe the addon domain, doesn't matters. $edomain is for the domain on which you to get the email accounts made. Suppose you have the following entered for Email format,

$prefix = "zz";
$start = "1";
$end = "100";

The emails would be [email protected], [email protected],....,[email protected]. Please have a look over all the things again.
 
If this isn't working for you and you really want it then run the following script and post the screenshot of the output here. This will attempt to make an email id ([email protected]) on the domain and will output the result.

PHP:
<?php 

set_time_limit(0); 

// cPanel info 
$cpuser = 'cpaneluser'; // cPanel username 
$cppass = 'cpanelpass'; // cPanel password 
$cpdomain = 'domain.com'; // cPanel domain or IP 
$cpskin = 'x3';  // cPanel skin. Mostly x or x2. 
// Read here to know how to check cPanel skin - http://www.zubrag.com/articles/determine-cpanel-skin.php 

$epass = 'emailpassy'; // email password
$edomain = 'emaildomain.com'; // email domain
$equota = 50; // amount of space in megabytes

// ===== DO NOT EDIT BELOW ===============================

$euser = "justatest";
$data = file_get_contents("http://$cpuser:$cppass@$cpdomain:2082/frontend/$cpskin/mail/doaddpop.html?email=$euser&domain=$edomain&password=$epass&quota=$equota");
echo $data; 

?>

I got this on running this test script. - http://i53.tinypic.com/2vbugwp.jpg
 
Why don't you simply create a catch-all, since these are going to be all on the same domain anyways I can see literally no difference except for time and effort. Basically, with most hosts, you just put a * in the username spot and create an account. Now when an e-mail goes to ANY fictional account @thatdomain.com it will get forwarded to your one main inbox to read - no reason to ever create these accounts and it only took you 5 seconds! Something to look into :)
 
Why don't you simply create a catch-all, since these are going to be all on the same domain anyways I can see literally no difference except for time and effort. Basically, with most hosts, you just put a * in the username spot and create an account. Now when an e-mail goes to ANY fictional account @thatdomain.com it will get forwarded to your one main inbox to read - no reason to ever create these accounts and it only took you 5 seconds! Something to look into :)

The reason a simple catch-all is not what this is all about is simple.

When sending, the user (bits before the @ ) are rotating. so that simple spam filters might block [email protected] but [email protected] could get through.

in outlook you can block the user / or domain .

cheers

Jay / Dex
 
Why don't you simply create a catch-all, since these are going to be all on the same domain anyways I can see literally no difference except for time and effort. Basically, with most hosts, you just put a * in the username spot and create an account. Now when an e-mail goes to ANY fictional account @thatdomain.com it will get forwarded to your one main inbox to read - no reason to ever create these accounts and it only took you 5 seconds! Something to look into :)

youngguy pointed this out earlier and I replied to him about the shortcomings of this wildcard account with the automated tools. Surely wildcard/catch-all is the best option to go with but not in all the cases. If you are going to use self-hosted emails with lets say, Tweet Attacks AC or BMD you can't just use the catch-all email account. Same with most other tools out there. :)
 
I gotcha. Dex put it so I could get it easily :)

Always worked for me but then again I've had very few occasions to use it for :)
 
I found the issue -

Somehow the script(or me) was adding @ to the email, of course this would cause a issue!!
 
looking for the scripts to validate bulk email addresses and save the good email in a separate file.
 
Nice idea. But I think using it with tools can confuse it. If the tool uses 50 random email accounts to register on some site (say, WPMU) that emails the password then the software can mess it up while parsing out passwords because when it will login, all the 50 emails will have the same subject so it may keep on parsing out passwords till the end and open every email (maybe delete it too in most cases). Also it will be a mess using same inbox for everything unless you use different domains for every purpose. I haven't tested catch all account but when I have a better solution then I'd prefer to go with it. :)

You say what????? Catchall is just the best way. It does not mess up!
 
AWESOME IDEA!
Hope it will work,
Thank you very much, appreciated!
 
Back
Top