LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-21-2010, 11:04 PM   #1
raspino
Member
 
Registered: Jul 2010
Posts: 38

Rep: Reputation: 1
Post Mailserver on Ubuntu server


I am trying to set up a mailer server on Lucid Lynx using mostly this guide:
http://flurdy.com/docs/postfix/

I believe I have most of the basics covered. But before launching into the the advanced set up, I want to see if I can get help with one thing I am finding difficult to understand.

In terms of my domain name www.example.com, do I have to do anything on my hosting company's side? That is, www.example.com currently have my web site and it is hosted on a private server at a hosting company. I have the ip address of the server. When I configured postfix, i used this same domain name in the configurations so I want to know what else to do to get it working.
 
Old 07-22-2010, 11:02 AM   #2
raspino
Member
 
Registered: Jul 2010
Posts: 38

Original Poster
Rep: Reputation: 1
Unhappy sad no - response :-)

sad no - response :-)
 
Old 07-22-2010, 09:24 PM   #3
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Ubuntu 10.10, Slackware 64-current
Posts: 2,124

Rep: Reputation: 778Reputation: 778Reputation: 778Reputation: 778Reputation: 778Reputation: 778Reputation: 778
This question gets into the realm of DNS and Ports. You indicated that you are running a web server (www.example.com) on a hosted system, but it wasn't clear if you will be running the mail server on that same system.

When you point a browser at www.example.com, a DNS query is automatically resolve the name (example.com) into an IP address. The name is broken down recursively with the dots as a separator. If no short cuts are taken, first, the .com (name) server will point to example.com's name server. Example.com's name server, when queried will give the address of "www" or the web server. The web server connects, by default, on port 80.

With a mail transfer agent, such as postfix, mail will be handled on port 25, so yes you can use the same server for both. Typically, when you configure a mail server, the DNS is configured with what is called an MX record. An MX record is like an A (address) record that says the server that handles mail for this domain is named XXX.example.com., and is located at address a.b.c.d. The MX records have a priority associated with them, so it is possible to have multiple mail servers for a domain.

This is important to you because you CAN configure the www (web) serve to be different than your mail server, with different addresses. To do this you need to add an MX record to your DNS. If you don't have an MX record, mail will typically be handled by the base/main server for the domain. What I mean by this is that your server is probably at example.com and www is an alias name for example.com. Without the MX record, mail will be directed towards the machine at example.com. If you are putting the mail server on the hosted system, along with your web server, this is fine and you shouldn't have to do much, if anything.

To summarize (what I think you want to do) to use the same domain name, but have your mail at a different location, give your mail server a different subdomain name, like mail.example.com and configure the MX record to point to it. If you are running on a dynamic IP address, this can get more complicated as it will need to be publicly locatable and you will need to use a (free) service like DynDNS to do that as well as probably relay your outgoing mail through your ISP's SMTP server.
 
1 members found this post helpful.
Old 07-22-2010, 10:47 PM   #4
raspino
Member
 
Registered: Jul 2010
Posts: 38

Original Poster
Rep: Reputation: 1
Thanks

Thank you!
Just the explanation I needed!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can i setup a mailserver in ubuntu server? zaigon Linux - Server 2 09-22-2009 11:44 PM
status=bounced in Postfix/Cyrus on Ubuntu mailserver setup thomasJohansen Linux - Server 7 01-07-2007 12:07 PM
setup mailserver/web server/ftp server hariiyer Linux - Networking 1 11-27-2004 02:16 AM
router, name server, web server, ssh, mailserver dilberim82 Linux - Security 9 07-26-2001 07:14 AM


All times are GMT -5. The time now is 01:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration