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-2003, 07:18 AM   #1
jamie_barrow
Member
 
Registered: Jul 2003
Location: Gauteng, South Africa
Distribution: Windows XP, yup :D Will be back onto Ubuntu probably someday
Posts: 107

Rep: Reputation: 15
How do I set up a Mail Server


I was wondering if anyone knows how to set up a mail server for a local network. The computer will be running Redhat 9, and will have an ISDN connection. I want to be able to connect to the Internet, download all e-mails from one address (which actually receives mail from about 5 accounts), and disconnect. Then when a user from another computer on the local network needs his/her email, they just need to log onto the linux computer and it will send the relevant emails to his program, probably Outlook Express.

I have already tried setting up sendmail, Exim, etc. but cant seem to get anything working. Maybe someone can tell me how they set up their mail server step by step...

PLEASE HELP!!!

Thanks

Jamie Barrow
Proudly South African
 
Old 07-21-2003, 07:30 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
not gonna really get a step by step thing really as it's a potentially endless thing a "mail" server.

bit by bit though:

downloading email from a remote account: fetchmail (or gotmail for crappy hotmail accounts)
reading mail locally from a unix mail file: pine / mutt / elm
reading mail from a network machine: imap / pop3
sending mail out from the server: exim / sendmail / postfix
accepting mail from the net: exim / sendmail / postfix
sorting mail to correct local accounts: procmail / exim

i like exim, it's really really easy and does it's job well.

with all of these things you should be able to set each one up totally independantly from another one, and it's the bigger picture your looking at when you call it a "mail server". Having monolithic solutions for somethign like this is seldom a good thing. you know that... you've used windows... ;-)

Last edited by acid_kewpie; 07-21-2003 at 07:31 AM.
 
Old 07-21-2003, 07:40 AM   #3
jamie_barrow
Member
 
Registered: Jul 2003
Location: Gauteng, South Africa
Distribution: Windows XP, yup :D Will be back onto Ubuntu probably someday
Posts: 107

Original Poster
Rep: Reputation: 15
OK, I have sendmail/exim/postfix, or whatever MTA, but its the setting up of sendmail that is the problem.
 
Old 07-21-2003, 07:47 AM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Do you mean setting it up so that it only checks periodically (on a dial out thing)? So basically you wanna sorta run it as a cron job to:
dial out
startup postfix/sendmail/exim/qmail
send your mail
hang up
And then to fetchmail:
periodically dial out
start fetchmail to fetch existing mail from existing account somewhere in cyberspace
hang up
sort mail
Read.

Am I correct? Or could you, in a similar fashion, explain your desire?

Cool
 
Old 07-21-2003, 07:52 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
sendmail is nasty to set up, like i said above, i recommend using exim instead. MasterC seems to like Postfix
 
Old 07-21-2003, 07:53 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
and of course the best way to configure something properly is to read the documentation that comes with it. I know exim's docs are superb.
 
Old 07-21-2003, 08:02 AM   #7
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
And VERY in depth (I was just reading over them, it doesn't seem to miss a thing!).

I like how well Postfix is documented as well, it's extremely easy to setup from the included documentation, and seems to perform well. But...

I've not setup a mail server to handle mail on a dial-up basis, so that is where the trick is going to come in. I can walk you through setting up postfix, but setting it up to work on a per-mail-dial-up basis is the tricky part. And then to setup fetchmail as a cron-job probably won't be bad either, just have a dial out connection first, then have fetch start.

So I think first up, you will want to decide which MTA you want to use (Exim, Postfix, Sendmail, Qmail) and the read up on the documentation for it to get it setup. After all that's finished, you will then want to start learning how to tweak your mail server to work with your dial-up connection.

Cool
 
Old 07-21-2003, 10:26 AM   #8
jamie_barrow
Member
 
Registered: Jul 2003
Location: Gauteng, South Africa
Distribution: Windows XP, yup :D Will be back onto Ubuntu probably someday
Posts: 107

Original Poster
Rep: Reputation: 15
Thanks everyone. Will try to read the documentation (might take a while) and hopefully its as easy as it is now sounding.
 
Old 07-21-2003, 12:56 PM   #9
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Well it's only easy for us (and easy for us to make it sound easy ) because we've done it, and probably more than once ( I know I have ). So if you get hung up again, feel free to post back, that's where our experience kicks in

Cool
 
  


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
What do i need to set up a mail server tomed Linux - Networking 3 11-05-2004 12:06 PM
mail server set up gslater Linux - Networking 28 06-12-2004 08:48 AM
what do i need to do to set up mail server feetyouwell Linux - Software 6 02-16-2004 02:08 PM
Set up Mail server kelper Linux - General 1 05-12-2003 01:17 AM
How do I set up a mail server? ChaosX2 Linux - Networking 10 05-30-2002 04:48 PM


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