Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 5th May 2009, 22:10
stefanos stefanos is offline
Junior Member
 
Join Date: Nov 2008
Posts: 29
Thanks: 6
Thanked 1 Time in 1 Post
Default General hostname domain email question.

Hi,

I set up a perfect server with Debian Lenny.
I am a bit confused about domain names and emails and I would like some clarification.

Say I own a domain name called corenet.com
The A & MX records all point to my IP

I have called my server with a host 'dragon'.
and thus the hostname for the server is dragon.corenet.com

If I understand an email would be linked to a hostname.
i.e. an actual email should look like: stephen@dragon.corenet.com

So if I were to send an email to 'stephen@dragon.corenet.com' it should be delivered to the user's account 'stephen' on dragon.

But what happens if I want to send an email from the outside world to stephen@corenet.com and it be delivered to 'stephen@dragon.corenet.com' does this work in a similar way to apache's ServerAlias? And how would you configure this is courier?

Should corenet.com & dragon.corenet.com both resolve from the outside world to the same server IP or should dragon.corenet.com resolve internally on my LAN only and the default for *.corenet.com resolve to the server's IP?

And what should I actually use for 'System mail name'?
1) dragon.corenet.com or
2) corenet.com

Does anyone know of a good tutorial on server host naming?

*Domain name has been changed*

If I am a bit confusing I can try and clarify but it's all Greek to me.

Kind Regards
Stephen
Reply With Quote
Sponsored Links
  #2  
Old 5th May 2009, 22:50
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 153 Times in 150 Posts
Default

Mail is routed by means of an MX record, you do not need to point the domain name to a host ip. You need to create an MX record that points to your mail server(s)
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
  #3  
Old 7th May 2009, 19:17
stefanos stefanos is offline
Junior Member
 
Join Date: Nov 2008
Posts: 29
Thanks: 6
Thanked 1 Time in 1 Post
 
Default

hi topdog,

Sorry my server died on me. Got the following error:
(98)Address already in use: make_sock: could not bind to address [::]:80
no listening sockets available, shutting down
Unable to open logs

I tried everything apt-get purge... reinstalling and nothing so I am going to format and install from scratch. I had in in my mind to do it at some point but I guess now is as good a time as any.

As for the mail server name I think it's best to use the hostname (FQDN) of the server but this raises an issue if your server (via perl) sends an email to clients.

I will need to look into this after the server is back up.

Thanks
Stephen
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
clients login being used as reseller's email domain. Heeter General 1 20th February 2009 08:23
Email and domain grant-skywalker Installation/Configuration 1 1st December 2006 06:44
Hostname & Domain Name Issue DJLunacy Installation/Configuration 4 15th November 2006 09:24
question about hostname and domain Ovidiu Installation/Configuration 26 8th March 2006 10:56
Question about 'localhost' as Hostname Lil'Brudder Installation/Configuration 2 31st October 2005 09:58


All times are GMT +2. The time now is 08:07.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.