Setup email server without a domain name?

Websites, Design, Blogs, Downloads, Email and other online stuff.

Setup email server without a domain name?

Postby utgamer2004 on Sun Aug 01, 2010 3:50 am

As part of my internship project,ive been asked to create a website which's primary goal is to accept certain information,validate the input from a database and then;generate and send an email back to the applicant.Until now,ive been sending these emails using a relay server(gmail),however id like to know,if it is possible at all to create an email server of my own(for testing purposes).Im using WAMP on Windows 7 with a static ip and no domain name.
More explicitly,i want to know if this is possible without a MX record or if theres any way around it?

Im a little new to hosting(2 weeks new :cry: ) so please forgive me if ive overlooked any obvious solution.
Core i7 860,MSI P55 GD65,GSKILL 2*2GB 1600MHZ DDR3,MSI 5850,CM 922,LG W2243S,Logitech MX518,Razer Arctosa B/B GE,Razer Goliathus SPEED,Seagate 1TB,CM GX 750
utgamer2004
Chip Apprentice
 
Posts: 142
Joined: Wed Jun 11, 2008 12:19 am

Re: Setup email server without a domain name?

Postby gki on Sun Aug 01, 2010 8:07 am

Continue using Gmail (or your ISP) to relay emails. If you try to send them directly from your PC, you'll probably receive an error.

And this has nothing to do with MX records; they are only needed/used when receiving email.
Image

˙ʇɐɥʇ pıp ʇsnɾ ı ˙ןoן
¿ʎsnq ʇoıpı uɐ dǝǝʞ noʎ op ʍoɥ
User avatar
gki
Sr Chippian
 
Posts: 773
Joined: Tue Mar 30, 2010 6:08 pm
Location: Bangalore

Re: Setup email server without a domain name?

Postby utgamer2004 on Sun Aug 01, 2010 3:02 pm

gki wrote:Continue using Gmail (or your ISP) to relay emails. If you try to send them directly from your PC, you'll probably receive an error.

And this has nothing to do with MX records; they are only needed/used when receiving email.


I know,i am getting an error(Could not instantiate mail function) in php but why?I have IIS running on a separate port with a SMTP email client running on port 25 so i should technically be able to send emails directly shouldnt i?
Core i7 860,MSI P55 GD65,GSKILL 2*2GB 1600MHZ DDR3,MSI 5850,CM 922,LG W2243S,Logitech MX518,Razer Arctosa B/B GE,Razer Goliathus SPEED,Seagate 1TB,CM GX 750
utgamer2004
Chip Apprentice
 
Posts: 142
Joined: Wed Jun 11, 2008 12:19 am

Re: Setup email server without a domain name?

Postby ksg91 on Sun Aug 01, 2010 4:39 pm

have you edited php.ini of wamp server to configure smtp server?
Go and edit
Code: Select all
smtp_server =
smtp_port = 25
auth_username =
auth_password =
User avatar
ksg91
Chip Apprentice
 
Posts: 170
Joined: Sat Jul 10, 2010 10:32 pm

Re: Setup email server without a domain name?

Postby gki on Sun Aug 01, 2010 7:30 pm

utgamer2004 wrote:I know,i am getting an error(Could not instantiate mail function) in php but why?

I wasn't talking about that.

utgamer2004 wrote:I have IIS running on a separate port with a SMTP email client running on port 25 so i should technically be able to send emails directly shouldnt i?

Technically yes, but to prevent/reduce SPAM, most email services have their own white/black-lists of who is and who isn't allowed to send email. If you try to send an email to a Gmail account from your PC for example, you'll get something like "You are not authorized to send messages to this server. Use your ISP's SMTP server to relay messages".
Image

˙ʇɐɥʇ pıp ʇsnɾ ı ˙ןoן
¿ʎsnq ʇoıpı uɐ dǝǝʞ noʎ op ʍoɥ
User avatar
gki
Sr Chippian
 
Posts: 773
Joined: Tue Mar 30, 2010 6:08 pm
Location: Bangalore

Re: Setup email server without a domain name?

Postby utgamer2004 on Sun Aug 01, 2010 8:23 pm

@KSG
Yes i already have...

gki wrote:utgamer2004 wrote:
I know,i am getting an error(Could not instantiate mail function) in php but why?

I wasn't talking about that.


So you think that theres something wrong on my side....hmm.....i thought it was because i didnt have a proper domain name that the function was not being instantiated(i know,silly of me but then ive been using the same function to send mails through a relay server and it works perfectly fine each time).

gki wrote:Technically yes, but to prevent/reduce SPAM, most email services have their own white/black-lists of who is and who isn't allowed to send email. If you try to send an email to a Gmail account from your PC for example, you'll get something like "You are not authorized to send messages to this server. Use your ISP's SMTP server to relay messages".


ill be happy enough even if my mail reaches the spam folder on any of my email accounts.Also,im unable to relay my mails through my ISP(smtp.vsnl.net),i get a NOT ON LOCAL NETWORK error each time i try to do so.Im using tata indicom broadbandand(which is serviced by vsnl) and i also have an email account on vsnl.net.
Core i7 860,MSI P55 GD65,GSKILL 2*2GB 1600MHZ DDR3,MSI 5850,CM 922,LG W2243S,Logitech MX518,Razer Arctosa B/B GE,Razer Goliathus SPEED,Seagate 1TB,CM GX 750
utgamer2004
Chip Apprentice
 
Posts: 142
Joined: Wed Jun 11, 2008 12:19 am

Re: Setup email server without a domain name?

Postby gki on Sun Aug 01, 2010 9:02 pm

utgamer2004 wrote:ill be happy enough even if my mail reaches the spam folder on any of my email accounts.

The email won't be delivered at all.

utgamer2004 wrote:Also,im unable to relay my mails through my ISP(smtp.vsnl.net),i get a NOT ON LOCAL NETWORK error each time i try to do so.

Then continue using Gmail.
Image

˙ʇɐɥʇ pıp ʇsnɾ ı ˙ןoן
¿ʎsnq ʇoıpı uɐ dǝǝʞ noʎ op ʍoɥ
User avatar
gki
Sr Chippian
 
Posts: 773
Joined: Tue Mar 30, 2010 6:08 pm
Location: Bangalore

Re: Setup email server without a domain name?

Postby utgamer2004 on Mon Aug 02, 2010 8:31 pm

gki wrote:
utgamer2004 wrote:ill be happy enough even if my mail reaches the spam folder on any of my email accounts.

The email won't be delivered at all.

utgamer2004 wrote:Also,im unable to relay my mails through my ISP(smtp.vsnl.net),i get a NOT ON LOCAL NETWORK error each time i try to do so.

Then continue using Gmail.


Oh well,thanks anyways! :D
Core i7 860,MSI P55 GD65,GSKILL 2*2GB 1600MHZ DDR3,MSI 5850,CM 922,LG W2243S,Logitech MX518,Razer Arctosa B/B GE,Razer Goliathus SPEED,Seagate 1TB,CM GX 750
utgamer2004
Chip Apprentice
 
Posts: 142
Joined: Wed Jun 11, 2008 12:19 am

Re: Setup email server without a domain name?

Postby Ellimist on Thu Aug 05, 2010 7:50 am

If you want to send emails from your node, you need to have an MTA (mail transport agent) to forward the emails to the required mail servers. I don't know what MTA's are available for IIS, on my VPS running Debian lenny, I use Exim.

Remember, for your emails to reach safely (without getting filtered as spam), it's important for your node to have an rDNS record.
Image
Tech TitbitsAnimorphsURL Obfuscator (New!)

I host phpBB boards and Wordpress blogs at reasonable rates.PM for details.
User avatar
Ellimist
Sr Chippian
 
Posts: 919
Joined: Fri Sep 09, 2005 7:11 am
Location: http://127.0.0.1/phpbb/

Re: Setup email server without a domain name?

Postby utgamer2004 on Sun Aug 08, 2010 5:19 am

Ok thanks,but doesnt IIS have a MTA built-in?
As for having a rDNS record,i will need a domain name wont i?
Core i7 860,MSI P55 GD65,GSKILL 2*2GB 1600MHZ DDR3,MSI 5850,CM 922,LG W2243S,Logitech MX518,Razer Arctosa B/B GE,Razer Goliathus SPEED,Seagate 1TB,CM GX 750
utgamer2004
Chip Apprentice
 
Posts: 142
Joined: Wed Jun 11, 2008 12:19 am

Re: Setup email server without a domain name?

Postby Ellimist on Sun Aug 08, 2010 6:54 am

utgamer2004 wrote:Ok thanks,but doesnt IIS have a MTA built-in?

I suppose so. This link may be of help.
utgamer2004 wrote:As for having a rDNS record,i will need a domain name wont i?

A rDNS (PTR) record maps an IP to a hostname. You can get a free sub-domain from http://freedns.afraid.org/ and use it for the rDNS. It's also recommended to use a reciprocal A record to resolve the hostname to the IP.
Image
Tech TitbitsAnimorphsURL Obfuscator (New!)

I host phpBB boards and Wordpress blogs at reasonable rates.PM for details.
User avatar
Ellimist
Sr Chippian
 
Posts: 919
Joined: Fri Sep 09, 2005 7:11 am
Location: http://127.0.0.1/phpbb/

Re: Setup email server without a domain name?

Postby utgamer2004 on Wed Aug 11, 2010 4:41 pm

Ellimist wrote:
utgamer2004 wrote:Ok thanks,but doesnt IIS have a MTA built-in?

I suppose so. This link may be of help.


Thanks that helped a little,but the link is really old,and both ASP.net and IIS have removed the use of code as described on that page.

PS-:Offtopic,do you think its worth the trouble if i install Ubuntu 64 bit on my rig to setup a web server.Thing is,i want to try out linux.
Also,how is debian?Im an avid programmer but i have no experience with linux except for maybe BOSS which i seldom use at my college.
I wish to install it alongside Windows 7 on a different partition.Also,i need to be able to run the following apps-:
Netbeans,g++,and a bittorrent client(any one will do).
Core i7 860,MSI P55 GD65,GSKILL 2*2GB 1600MHZ DDR3,MSI 5850,CM 922,LG W2243S,Logitech MX518,Razer Arctosa B/B GE,Razer Goliathus SPEED,Seagate 1TB,CM GX 750
utgamer2004
Chip Apprentice
 
Posts: 142
Joined: Wed Jun 11, 2008 12:19 am

Re: Setup email server without a domain name?

Postby Ellimist on Thu Aug 12, 2010 5:59 am

utgamer2004 wrote:PS-:Offtopic,do you think its worth the trouble if i install Ubuntu 64 bit on my rig to setup a web server.Thing is,i want to try out linux.
Also,how is debian?Im an avid programmer but i have no experience with linux except for maybe BOSS which i seldom use at my college.
I wish to install it alongside Windows 7 on a different partition.Also,i need to be able to run the following apps-:
Netbeans,g++,and a bittorrent client(any one will do).

Those things run natively on both Debian and Ubuntu.

I'll recommend Debian for a server, as it focusses on providing stable software rather than the latest one, which seems to be Ubuntu's philosophy. Although if you need a relatively newer version of a software, you can install it from backports.

However, as a newbie, you'll be better off with Ubuntu. It has an a relatively less-geeky userbase.

Download a distro ISO image, burn it, and follow he instructions and you'll have no difficulty in installing it.
Image
Tech TitbitsAnimorphsURL Obfuscator (New!)

I host phpBB boards and Wordpress blogs at reasonable rates.PM for details.
User avatar
Ellimist
Sr Chippian
 
Posts: 919
Joined: Fri Sep 09, 2005 7:11 am
Location: http://127.0.0.1/phpbb/

Re: Setup email server without a domain name?

Postby utgamer2004 on Thu Aug 12, 2010 8:12 pm

Ok,ive decided on using Ubuntu over debian for now,whats the difference between the desktop and server editions?
Will i be able to host on the desktop version?
Core i7 860,MSI P55 GD65,GSKILL 2*2GB 1600MHZ DDR3,MSI 5850,CM 922,LG W2243S,Logitech MX518,Razer Arctosa B/B GE,Razer Goliathus SPEED,Seagate 1TB,CM GX 750
utgamer2004
Chip Apprentice
 
Posts: 142
Joined: Wed Jun 11, 2008 12:19 am

Re: Setup email server without a domain name?

Postby Ellimist on Thu Aug 12, 2010 9:50 pm

utgamer2004 wrote:Ok,ive decided on using Ubuntu over debian for now,whats the difference between the desktop and server editions?
Will i be able to host on the desktop version?

The server edition is optimized for use on a server and containes no bloat in the form of unneeded packages. The desktop version has a lot of things that are unneeded on a server, including, but not limited to frontend GUIs and utility softwares.

However, as I understand it, you have no RAM or processing power constraints and you do not expect much traffic on the server. The desktop edition should serve you just fine. Install a web server (Apache/Nginx/Lighttpd), PHP as a FastCGI process (the best way to run PHP, BTW), and mysqld and you are ready to host a standard web app.

There are a lot of tutorials on the web to get you started.
Image
Tech TitbitsAnimorphsURL Obfuscator (New!)

I host phpBB boards and Wordpress blogs at reasonable rates.PM for details.
User avatar
Ellimist
Sr Chippian
 
Posts: 919
Joined: Fri Sep 09, 2005 7:11 am
Location: http://127.0.0.1/phpbb/


Return to The Internet Section

Who is online

Users browsing this forum: No registered users and 0 guests