LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-31-2005, 11:00 PM   #1
basketkase999
Member
 
Registered: Dec 2004
Location: ca
Posts: 61

Rep: Reputation: 15
Setting up an Email server in RedHat 9 using sendmail


Here I am yet again. I have googled for days on in and am back to square one. I need help setting up an email server on Redhat 9. After all my research, I decided that I want to use sendmail for my MTA. It just seems the easiest to get docs for. But you must remember that I am a newbie and have (relatively) no clue what is going on. Also, I want to setup a pop/imap server (on the same box), but want it as simple as possible. I have no DNS stuff setup on my box either (again because I have no clue what I am doing here).I understand that I should not be asking for this much help, and asking such a broad question, however I plead to you today for help. Needless to say this is very frustrating and I am considering returning to windows (which I don't want to do).
 
Old 04-01-2005, 01:02 AM   #2
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
basketkase999

Take a look Here

Scroll down to chapter 21 Configuring Linux Mail, should be a good starting point

Sendmail ain't easy, takes time to get your head round it

Pete
 
Old 04-01-2005, 01:42 AM   #3
basketkase999
Member
 
Registered: Dec 2004
Location: ca
Posts: 61

Original Poster
Rep: Reputation: 15
Pete,

I really appreciate it! I actually had found this about an hour before your post and was going through it! It is a great resource all around! Thanks for your support!

Basketkase999
 
Old 04-01-2005, 02:23 PM   #4
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
Remember that an email server is vunerable to attack from spammers and people sending viruses.

Be sure that your server is not running as an open relay. Also you should secure your logins for pop and imap as well to prevent password theft.
 
Old 04-01-2005, 02:37 PM   #5
basketkase999
Member
 
Registered: Dec 2004
Location: ca
Posts: 61

Original Poster
Rep: Reputation: 15
Thanks David. So now I have come accross DNS problems in setting this up. The problem: I don't know how. This server is NOT for intranet. I want it to be used for real email. I will primarily be using squirrelmail, which i know how to setup. Its setting up the dns records that is giving me a very hard time. Any HowTos out there or any example i can use (ideally where i only change the info for my domain and ip).
 
Old 04-01-2005, 02:48 PM   #6
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
The bind howtos should get you going. If you can get a specific problem let us know.

http://www.ibiblio.org/pub/Linux/docs/howto/DNS-HOWTO

The section on testing your setup here should help as well.

Post your network information and bind config files so we may see the problem if it's obvious.

Basically you need to add the zone for your local network to named.conf and then create the zone file adding the information to it.

Test everything to be sure it all works completely for lookups.

Last edited by DavidPhillips; 04-01-2005 at 02:53 PM.
 
Old 04-01-2005, 02:53 PM   #7
basketkase999
Member
 
Registered: Dec 2004
Location: ca
Posts: 61

Original Poster
Rep: Reputation: 15
David, I thank you. I will work on this for the next couple of hours and will post my status later this evening, whether it was successful or not. Again, thanks.

Cesar
 
Old 04-01-2005, 02:54 PM   #8
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
OK,

I added this above but I'm not sure you saw it as you were posting...


Basically you need to add the zone for your local network to named.conf and then create the zone file adding the information to it.

Test everything to be sure it all works completely for lookups.

I normally setup my DNS server to use 127.0.0.1 as the nameserver in /etc/resolv.conf


Good luck, let us know.


Last edited by DavidPhillips; 04-01-2005 at 02:58 PM.
 
Old 04-01-2005, 03:15 PM   #9
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
basketkase999

If you have a static IP and a registered domain name all you really need to do is create an MX record for your domain pointing to the IP of your Linux box or router whichever is connected to the internet

Most web hosts normally provide a mechanism which allows you to do this

By all means set up your own Bind server, which I think David is suggesting but it does rather complicate things for you

The most important thing you need is a Static IP otherwise whichever method you choose will fail, there are options to get around using a dynamic IP but thats another story

DavidPhillips not trying to be critical of your advise just trying to help Cesar achieve his goals

Pete
 
Old 04-01-2005, 05:23 PM   #10
basketkase999
Member
 
Registered: Dec 2004
Location: ca
Posts: 61

Original Poster
Rep: Reputation: 15
Two points on this issue. I do have a dynamic ip through sbcglobal however it does not change. I do not know if this will be considered under the same conditions as a static ip. Secondly, should I only need to edit the mx records what files should I edit/create?
 
Old 04-02-2005, 12:32 AM   #11
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
Cesar

Providing your IP does'nt change you will be ok, I supposedly have a dynamic one but it has'nt changed for 2 years

Assuming you have a FQDN (Fully Qualified Domain Name) correctly registered, the company who you registered the name with most likely hold the DNS records for it

If this is the case you will have to modify this record at their end either via a user interface provided by them or by asking them to modify the records for you

Let me know the company who you registered with and I will take a look for you

Pete
 
Old 04-02-2005, 01:15 AM   #12
basketkase999
Member
 
Registered: Dec 2004
Location: ca
Posts: 61

Original Poster
Rep: Reputation: 15
I got my domain through domains.yahoo.com .
 
Old 04-02-2005, 10:41 AM   #13
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
Cesar

Is this where you registered your domain

Yahoo

If so you should be able ta access this feature which is exactly what you are looking for

Quote:
Control Panel and DNS Management
Yahoo! Domains has an easy-to-use control panel that enables you to manage all aspects of your domain name. Experienced users can take advantage of full DNS Management capabilities and easily edit MX, A and CNAME records.
You need to add a MX record which points to your public IP address

Then any mail sent from the Internet to cesar@yourdomain com will be directed to your mail server

I know it's complicated but eventually it will all fit into place, took me a long time to grasp all the in's and out's

Pete
 
Old 04-02-2005, 10:59 AM   #14
basketkase999
Member
 
Registered: Dec 2004
Location: ca
Posts: 61

Original Poster
Rep: Reputation: 15
Pete,

I appreciate it greatly. I set that up and I am successfully sending and recieving email now! all is well! I would like to thank you, and David for all the help both of you have provided me over the last couple of days! Hopefully one day I will be as knowledgable as you two so that I can help others in the Linux Community.

Cesar
 
Old 04-02-2005, 11:40 AM   #15
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
Well done Cesar

Glad to be of service

Pete
 
  


Reply



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 an email server SnellgroveC Linux - Newbie 2 11-11-2005 08:19 AM
Can't send email outside my server with sendmail rocketman3245 Mandriva 1 07-28-2004 10:01 PM
setting up email server DropSig Linux - Newbie 3 06-29-2004 08:59 AM
Setting up an email server chu_man_fu Linux - Newbie 1 07-03-2003 12:45 PM
Setting sendmail as backup email server subzero80 Linux - Networking 1 03-08-2003 12:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:09 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
Open Source Consulting | Domain Registration