LinuxQuestions.org
Visit Jeremy's Blog.
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-04-2005, 07:12 PM   #1
Mr_Penguin_02
LQ Newbie
 
Registered: Aug 2004
Location: Spokane WA
Distribution: Fedora Core 1, Red Hat 9, SUSE 9.2 Pro
Posts: 10

Rep: Reputation: 0
Setting up an SMTP server in RH9


Okay,
I'm trying to set up an SMTP server. What do I need. How do I do it? I'm really new to this so any and all help would be appreciated.
 
Old 07-04-2005, 07:22 PM   #2
priller
Member
 
Registered: Jan 2004
Distribution: Debian etch
Posts: 202

Rep: Reputation: 30
RH9 probably already has sendmail installed, but you'd be better off changing to a newer distro for a server.
 
Old 07-07-2005, 02:03 AM   #3
Mr_Penguin_02
LQ Newbie
 
Registered: Aug 2004
Location: Spokane WA
Distribution: Fedora Core 1, Red Hat 9, SUSE 9.2 Pro
Posts: 10

Original Poster
Rep: Reputation: 0
lol, I'd love to, but unfortunately that's not my choice. Ok, I figured out how to configure it all, but I have a huge newbie question now. Does the RH Box need to host the domain. (say I own www.abc123.com or something, it would be smtp.abc123.com, but would that site have to be hosted on the same server as the SMTP box?)

If it doesn't have to be hosted, how would I configure the domain to accept the SMTP.abc123.com part?

If it does, then how do I get the two to work in conjunction?

I s'pose the questions above are roughly the same, but the main part of question one is 'how do I get the computer hosting the domain to accept the SMTP part being on a different computer.
 
Old 07-07-2005, 12:58 PM   #4
Mr_Penguin_02
LQ Newbie
 
Registered: Aug 2004
Location: Spokane WA
Distribution: Fedora Core 1, Red Hat 9, SUSE 9.2 Pro
Posts: 10

Original Poster
Rep: Reputation: 0
anybody at all?
 
Old 07-07-2005, 02:23 PM   #5
Pete M
Member
 
Registered: Aug 2003
Location: UK
Distribution: Redhat 9 FC 3 SUSE 9.2 SUSE 9.3 Gentoo 2005.0 Debian Sid
Posts: 657

Rep: Reputation: 32
Mr_Penguin_02

OK I'll take a shot at trying to explain

abc123.com is a domain name registered to you

DNS information for the domain is held and controlled by the registrar where you registered the domain

In your DNS information there would be A records pointing to your IP address

Code:
abc123.com.            A    192.168.0.3
mail.abc123.com.     A    192.168.0.3
192.168.0.3 is only an example


Also in your DNS information is an MX record which would look like
Code:
MX           10 mail.abc123.com.
Then you would have aliases or cnames which would look like

Code:
pop3                            CNAME abc123.com.
smtp                            CNAME abc123.com.
www                            CNAME abc123.com.
So to put all this together

If someone types "www.abc123.com" in their web browser your DNS information would be read and directed to your IP

If someone sends mail to "user@abc123.com" your MX record would be read and again the mail would be directed to your IP

Same applies for "pop3.abc123.com" and "smtp.abc123.com"

In the above scenario all you would have to do is make your mailserver responsible for mail sent to "abc123.com"

This is just a simple explanation and there are a few gotcha's for instance

For the above to work you must have a static IP address

Hope this helps and most of all makes sense

Pete
 
Old 07-15-2005, 11:17 PM   #6
Mr_Penguin_02
LQ Newbie
 
Registered: Aug 2004
Location: Spokane WA
Distribution: Fedora Core 1, Red Hat 9, SUSE 9.2 Pro
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks, that helps alot. Only like two more questions. Just to make sure, whoever I buy the domain from is who controls the MX record and stuff, right? So to change it you'd have to contact them?

And secondly, does anyone know a good program to host the server? i.e. to let me set up more than one so you could have like george@abc.com and then also john@abc.com?

Thanks.
 
  


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
Setting up a server , FTP, HTTP, POP3, SMTP, DNS merman63769 Linux - Newbie 2 09-20-2004 01:44 PM
Setting up a Pop3/Imap/SMTP Mail server w/ Spamfilter ubers0ldat Linux - Software 1 06-17-2004 08:13 AM
Setting up web server in RH9 gslater Linux - Networking 4 02-26-2004 08:02 PM
setting up a mail server in rh9 ambelos Linux - Newbie 5 12-03-2003 11:50 AM
RH9...Where did my Samba server setting go? naloxone Red Hat 1 09-17-2003 12:45 PM


All times are GMT -5. The time now is 12:56 AM.

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