Email Server

By Ghost-writer on Dec 12, 2010

Want to make a kagillion emails on your home connection? go for it.

/socklisten email 25
/mkdir email
You must do these in order for the script to work.

Email yourself, ""

Example: "anythinghere@"

You should get a tip that says "new email" double click it and bam you just recieved mail. Have fun guys :P.

Also check out my website hosted in MSL:

And you can email me at ;).

(What I did was get a subdomain to set an A record to my ip and bam, email server anyone?)

on *:connect: if (!$sock(email)) socklisten email 25
on *:socklisten:email: {
  var %x email $+ $ticks
  sockaccept %x
  echo -s 04Email Attempted
  sockwrite -nt %x 220 $sock($sockname).ip ESMTP Postfix
on *:sockread:email*: {
  var %x 
  sockread %x
  tokenize 32 %x
  if ($sock($sockname).mark == open) write email/ $+ $sockname $+ .txt $1-
  if (EHLO == $1) sockwrite -nt $sockname 250 Hello, I am glad to meet you
  if (MAIL == $1) sockwrite -nt $sockname 250 Ok
  if (RCPT == $1) sockwrite -nt $sockname 250 Ok
  if (DATA == $1) sockwrite -nt $sockname 354 End data with <CR><LF>.<CR><LF>
  if (for == $1) write email/ $+ $sockname $+ .txt $2
  if (subject: == $1) {
    write email/email.txt $sockname - Subject: $2- - $fulldate
    write email/ $+ $sockname $+ .txt Subject: $2- - $fulldate
  if (from: == $1) {
    write email/ $+ $sockname $+ .txt From: $2-
    sockmark $sockname open
    noop $tip(Email,New Email!,You have recieved a new email!,60,,,run email/ $+ $sockname $+ .txt)
  if ($1- == .) sockwrite -nt $sockname 250 Ok: queued as $remove($sockname,email)
  if ($1 == quit) {
    sockwrite -nt $sockname 221 Bye
    sockclose $sockname



Sign in to comment.
MichaelA   -  Dec 29, 2010

Found out why it doesn't work.....Most ISPs block incoming traffic from port 25(except from what comes from them) due to spamming etc. ou can disable it by logging into your internet account's control panel.

Ghost-writer   -  Dec 19, 2010

Well if you can find a problem/reason why it doesn't work it'd be more effictive than saying how much a waste of my time it was hitting a submit button.

Jethro   -  Dec 19, 2010

If this script doesn't work for the majority of people but you, Ghost-writer, was it worth the effort and time submitting it? Think of that for a second.

Ghost-writer   -  Dec 19, 2010

those xxxs were kind of pointless luc.


Also, I have no clue why it doesn't work for you guys o.o. Probobly your ISP's blocking port 25.

MichaelA   -  Dec 19, 2010

I tried and didn't work >.> I even tried port forwarding xD

LucSatise   -  Dec 19, 2010

This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

The mail server could not deliver mail to admin@xxxxxxxxxx. The account or domain may not exist, they may be blacklisted, or missing the proper dns entries.

------ This is a copy of the message, including all the headers. ------

Received: from isp.hostname ([xxxxxxx]:50423 helo=[192.168.x.x])
by with esmtpsa (TLSv1:AES256-SHA:256)
(Exim 4.69)
(envelope-from )
id 1PUQMI-000B4C-0r
for admin@; Sun, 19 Dec 2010 15:59:58 -0500
Message-ID: 4D0E7255.1080304@domain
Date: Sun, 19 Dec 2010 21:00:05 +0000
From: myname
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv: Gecko/20101207 Thunderbird/3.1.7
MIME-Version: 1.0
To: admin@xxxxxxxx
Subject: test
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

VersaX   -  Dec 15, 2010

very pr0 bro

Ghost-writer   -  Dec 15, 2010

Should be like

email tcp listening

After you type

/socklisten email 25

Also don't forget to /mkdir email so the emails have a place to be saved.

Try finding your ip at - After doing this send an email to yourself at Admin@Your.Ip.Shown.@FindmyipWebsite

LucSatise   -  Dec 15, 2010

i load this when i do socklist it lists my ip as and listening and then i dont recieve the email. tips?

Ghost-writer   -  Dec 14, 2010

did you have the socket listening? Try doing "/socklist" and posting your results?

ChiefDean   -  Dec 14, 2010

doesnt work for me :/ i should get on my email and email myself... like RAWR@24.131.**.19 and it should pop up in my mIRC? it didnt do anyting :/

MixXeduP   -  Dec 12, 2010

Its very nice. :)
Also +1 like. ;)

Luna   -  Dec 12, 2010

Hmm. this sounds usefull.
Im gona try it in a min.

Tidum   -  Dec 12, 2010

The infamous Termz has returned. :D

Ghost-writer   -  Dec 12, 2010

For the sake of people being able to read the code, I haven't bothered shortening it :P.

Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.