LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-06-2004, 01:31 PM   #1
sporkit
Member
 
Registered: Feb 2004
Posts: 71

Rep: Reputation: 15
a few questions about setting up a mail server


hello. im running fedora core 1 with a baisc server install.

first off i think i installed sendmail while compiling but havent taken it out of the startup process. i noticed that /var/mail/root has some messages but i dont have any idea how i would check them on my local machine or from another machine. (typed mail into the command propt and got a confusing new prompt, is this where i should be?) is it possible to use something like outlook to check mail on this server yet?


also im not sure how the dns around this thing works. i have a domain named www.sporkit.com will that forward mail to the right place?

what is the ending of my users email address? is it root@linuxserver or the domain that is forwarding to my IP address (root@sporkit.com)?

i guess my problem is i dont understand the big picture. i get that my server uses programs like sendmail or qmail to recieve this stuff. but i have no idea how it gets there or how i should get it.

is there like a guide or a book i could buy or somethign?
 
Old 04-06-2004, 02:28 PM   #2
mako747
Member
 
Registered: Mar 2004
Location: Canada
Distribution: Slackware
Posts: 92

Rep: Reputation: 15
You have your work cut out for you.

I suggest you start here....

http://www.linuxdocs.org/HOWTOs/

Read about email administration and also about DNS.

Unless you have an mx record for your mail server then it just isn't going to receive mail for you. You are also going to have to have a static ip.

As far as reading the root mail goes, you can either run pine or something on the machine or just look at the file using an editor or a command like more.
 
Old 04-06-2004, 07:25 PM   #3
sporkit
Member
 
Registered: Feb 2004
Posts: 71

Original Poster
Rep: Reputation: 15
yes i already have my webserver running with a static ip. http://www.sporkit.com

i can easily setup the mx record using the dns i thats forwarding to me already.

i still dont understand what that dns mapping is doing. if i have a static ip does that mean i could use that temporarily to set it up?
 
Old 04-07-2004, 09:52 AM   #4
mako747
Member
 
Registered: Mar 2004
Location: Canada
Distribution: Slackware
Posts: 92

Rep: Reputation: 15
I'm not sure what the question is.

You will have to have the dns records point to your mail server and you will have to set it up to handle mail for your domain.
 
Old 04-07-2004, 10:52 AM   #5
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
think like that. u r sending me an email. my email address is maxut@yahoo.com . u connect your email server via smtp (tcp port 25). and your email server takes your email to send me. first it checks my domain yahoo.com and ask the MX (mail exchanger) record. it learns the ip of mail exchanger ip. then it sends your email to yahoo's mail exchanger (smtp port). if yahoo didnt have a mx record, your email possibly would be back to u with error "cannot find host yahoo.com". so first u must have a MX record in your name server (or ISP's nameserver) and u must have static ip to have a MX record in name server.

may i explain?
 
Old 04-07-2004, 11:09 AM   #6
sporkit
Member
 
Registered: Feb 2004
Posts: 71

Original Poster
Rep: Reputation: 15
after some thinking about it. i realized there is probably only a few ways this could work. so i drew this for myself.

a highly scientific flow chart

if this is all thats happening then i believe i could pull this off. im going to buy the mx mapping later tonight. now i believe the problem will be making sure the connection info for my server is correct.
 
Old 04-07-2004, 11:49 AM   #7
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
if u have a static ip, u can use your own nameserver. if u want to have your own nameserver, tell your domain register service to redirect sporkit.com to your static ip. surely u must configure named.

dont hurry! first make sure everythink is working well.

i use qmail on redhat 8.0. it is the best MTA i think. yahoo and some other greatest email services prefer qmail. but it is not default MTA for fedora nor mdk nor others. u must install it yourself. now im trying to install qmail on fedora. i downloaded src.rpm from www.qmail-toaster.com . u may find a great how-to install from source at www.qmailrocks.org, including how to install free antivirus for qmail.
 
Old 04-07-2004, 03:28 PM   #8
sporkit
Member
 
Registered: Feb 2004
Posts: 71

Original Poster
Rep: Reputation: 15
well if my diagram is correct then the only thing im worried about now is knowing the connection info if im going to check my email other than directly on the machine.

i assume i would be using the default ports.

smtp: mail.sporkit.com: on the default port
(but why mail. my address? how is this setup and how does my server know its mail.sporkit.com?)
pop: mail.sporkit.com: on the default port
(same question above)

username: a user account on the server?
password: password for the account on the server?


oh and i will be setting up qmail after i remove the sendmail that was already installed. i also already have a dns server forwarding to my domain.

Last edited by sporkit; 04-07-2004 at 03:40 PM.
 
Old 04-07-2004, 03:38 PM   #9
mako747
Member
 
Registered: Mar 2004
Location: Canada
Distribution: Slackware
Posts: 92

Rep: Reputation: 15
It does not have to be mail.sportkit.com

It can be smtp.sportkit.com or servername.sportkit.com

It is set up through your dns records and mail is often an alias .... a CNAME

And you really better lock the server down before you start using it.
 
Old 04-07-2004, 03:54 PM   #10
sporkit
Member
 
Registered: Feb 2004
Posts: 71

Original Poster
Rep: Reputation: 15
ok so lets see.
  • my server was called linuxserver.localdomain
  • i changed it to linuxserver.sporkit.com
  • i updated my dns record online to point to
    sporkit.com MX 0 linuxserver.sporkit.com
  • when i get home ill open the correspoding ports to allow a connection to the server. (if im using qmail then what is it for smtp and pop?)
 
Old 04-07-2004, 03:56 PM   #11
mako747
Member
 
Registered: Mar 2004
Location: Canada
Distribution: Slackware
Posts: 92

Rep: Reputation: 15
smtp 25 , pop 110 , imap 143
 
Old 04-07-2004, 04:40 PM   #12
sporkit
Member
 
Registered: Feb 2004
Posts: 71

Original Poster
Rep: Reputation: 15
thanks.

does that configuration sound correct though?

i suppose i should read up on qmail first but whats the imap port used for?

Last edited by sporkit; 04-07-2004 at 04:42 PM.
 
Old 04-08-2004, 05:47 AM   #13
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
it seems correct. i would give 10 for mx record. i cant remember but i have read something about it. this number is about MX prority. lower number is fist.

sporkit.com MX 10 linuxserver.sporkit.com

imap is a service such as pop3. u know u can configure your server type in email client software configuration.
 
  


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 mail server. scjvsTP Linux - Networking 1 10-03-2005 02:24 PM
setting up a mail server krille Linux - Newbie 9 03-03-2005 09:03 AM
Setting up a mail server? ziphem Linux - Newbie 2 11-27-2004 02:09 AM
setting up mail server fayax1 Linux - General 1 11-02-2004 05:27 PM
Setting up a mail server linuxguruwannabe Linux - Networking 13 08-07-2000 02:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:15 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