Solved

What steps to start PostFix on Linux Red hat 9.0

Posted on 2004-04-25
3
1,089 Views
Last Modified: 2013-12-06
Hi,

I's like to build a mail server with PostFix based on Linux Red Hat 9.0. I've posted a question to get your comments on which mail server I should use (Q_20961132).

I read through the documents and manuals for installation and configuration on the web site: postfix.org.
They have very good documents. I also looked into some books on PostFix to get some more ideas about PostFix.

Then I started. I looked into the Linux Red Hat 9.0 box and found out: it seems that the PostFix has been installed on the Linux Box. I checked with "rpm -qa : grep postfix" and got "postfix-1.1.12-1"

I also checked if the popular mail server "sendmail" is running or not with "ps -ef | grep sendmail" and I got:
"... sendmail: accepting connections" and "... sendmail: Queue runner ..."

When I read through the documents and manuals of PostFix on www.postfix.org and also in the books, maybe we need to replace 3 files: (1) sendmail (2) mailq  (3) newaliases

After reading some of these details, my mind jumps ahead a bit and start questioning: after replacing these files with those of PostFix, how to check if PostFix is really running on the box or not?

May you give help on this?

Thanks,

Rfr1tz






0
Comment
Question by:rfr1tz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 3

Accepted Solution

by:
mac_ earned 200 total points
ID: 10917556
Hi Rfr1tz,

Here are the steps you need to take :

1. Configure Postfix

2. Stop sendmail with "/etc/init.d/sendmail stop". Your "ps -ef | grep sendmail" won't show any entry any more

3. Start postfix with "/etc/init.d/postfix start". You can check that it's running with "ps -ef | grep postmaster". It should display one entry

4. Check your Postfix configuration by sending and receiving test mails

5. Make your init.d changes permanent (ie persistent if you reboot) by :
- chkconfig --del sendmail
- making sure that Postfix starts at startup : you should have a line with "# chkconfig: 2345 80 30" in /etc/rc.d/init.d/postfix (make sure you have it), and do a "chkconfig --add postfix". The command "chkconfig --list postfix" should display "on" for runlevels 2, 3 and 4 at least.

6. Reboot to check that postfix starts OK (if you can).


Good luck !

Mac
0
 
LVL 40

Assisted Solution

by:jlevie
jlevie earned 100 total points
ID: 10917824
There's a tool on RedHat for switching from sendmail to postfix & vice versa (redhat-switch-mail). Depending on how your installed RH 9 you may or may not that that on the running system. But even if it isn't installed you can add it from your distribution CD's.

Once that tool has been run and the mail system switched to postfix you should be "good to go".
0
 
LVL 20

Assisted Solution

by:Gns
Gns earned 50 total points
ID: 10936167
.... and there should be no immediate _need_ to remove anything of sendmail... They really coexist nicely (although only one will be active as the receiving MTA).

Remember that postconf is your friend:-).

-- Glenn
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
NTPD Client Port Usage 12 94
Linux 3 59
PGP can't open key rings 7 46
user defined, environmental. local, global variables 4 26
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question