Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 05-16-2004, 04:39 AM   #1
LQ Newbie
Registered: Feb 2004
Location: London
Distribution: Ubuntu
Posts: 20

Rep: Reputation: 0
Question Setting up mail server


I am running RH9 on an old pc which is used as my web server. I am now trying to set up a mailserver using Sendmail and am encountering difficulties. Here is where I have got to so far:

I edited the file...

first I edited the line ...dnl define('SMART_HOST','smtp.your.provider')...where it says '' I have been told to use the fully qualified domain name of the mail server you want to, to use an example, if my web server is www then presumably the mail server on my local machine would be I right? I presume this has nothing to do with my ISP who simply provides my internet connection.

second I commented out the line DAEMON_OPTIONS('port=smtp,Addr=, Name=MTA')dnl...since I belive this will allow me to receive incoming mail from the internet.

Next, I did the m4 /etc/mail/ > /etc/mail/ thingy to update my config file.

Now according t the theory I should be able to send mail to, but so far alas not. Does anyone know whereI have gone wrong?

BTW, I have already trawled the forums but this has only raised more questions eg:
- You will have to ensure that the MX records point to your machine somewhere....what are these MX records?
- You will need to update your hosts hosts file currently only has one entry which still says localhost.localdomain...should I have more entries for my mail server?

Any help would be much appreciated. Thanks!
Old 05-16-2004, 05:05 AM   #2
LQ Newbie
Registered: Dec 2003
Distribution: Mandrake 10 AMD64, RedHat Enterprise 3, SUSE 9.1 Pro
Posts: 3

Rep: Reputation: 0
This doesn't exactly answer your question, but it may help

If I were you, and I was a few years back, I would use qmail instead of sendmail... It is much easier to work with, more secure, and just as powerful.. There is no downside that I can think of, and tremendous upside for almost any application, including a high volume/activee mail server with many users.

There are rpm's for almost every linux distro.. just check, and the configuration files should all be located in /var/qmail/control/ directory. They are very straight forward.. for example, to set remote concurrency, you just create a file named 'concurrencyremote' and type the value '100' (for example) and that's it... restart qmail. All of the config files work like this, and all are read when qmail is restarted.

Anyway, I hope this helps.. I have several books dedicated to Sendmail, and only 1 book for qmail (which I didn't really need as the book is available freely online). Take a look at it if you are still having problems, and I think you will be very pleasantly suprised.

Best of Luck.
Old 05-16-2004, 10:42 AM   #3
LQ Newbie
Registered: Feb 2004
Location: London
Distribution: Ubuntu
Posts: 20

Original Poster
Rep: Reputation: 0
Thanks I may try that...I just used sendmail because thats already available in RH9.


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 dr_angus Linux - Software 1 03-09-2005 10:57 AM
setting up a mail server krille Linux - Newbie 9 03-03-2005 10:03 AM
Setting up a mail server? ziphem Linux - Newbie 2 11-27-2004 03:09 AM
need help setting up a mail server Chijtska Linux - Networking 4 02-28-2002 10:23 PM
Setting up a mail server linuxguruwannabe Linux - Networking 13 08-07-2000 03:59 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:33 PM.

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