Postfix Keeps Shutting Down

General support questions including new installations

Postfix Keeps Shutting Down

Postby Tanner8 » 2010/07/13 18:37:11

Hey, I installed postfix and configured it but for some reason it keeps shutting down right after startup. Here is what happens,

Code: Select all
[root@server /]# /etc/init.d/postfix restart
Shutting down postfix:                                     [FAILED]
Starting postfix:                                          [  OK  ]
[root@server /]# /etc/init.d/postfix restart
Shutting down postfix:                                     [FAILED]
Starting postfix:                                          [  OK  ]
[root@server /]# /etc/init.d/postfix status
master is stopped


I would post you my var/log/maillog however it is empty for some reason. What's going on?

Thanks
Tanner8
 
Posts: 13
Joined: 2010/07/13 06:58:50

Postfix Keeps Shutting Down

Postby pschaff » 2010/07/13 21:39:49

Configured how? Have you read the Wiki HowTos/postfix article?
pschaff
Retired Moderator
 
Posts: 18277
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America

Re: Postfix Keeps Shutting Down

Postby Tanner8 » 2010/07/13 21:54:28

That's actually exactly what I used to configure it.
Tanner8
 
Posts: 13
Joined: 2010/07/13 06:58:50

Re: Postfix Keeps Shutting Down

Postby pschaff » 2010/07/13 22:03:17

My guess is that you made some error in the configuration process. Anything interesting in "tail -f /var/log/messages" while doing "service postfix restart"?
pschaff
Retired Moderator
 
Posts: 18277
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America

Re: Postfix Keeps Shutting Down

Postby Tanner8 » 2010/07/13 22:53:00

Noting relevant to the problem. I uninstalled and reconfigured again and the same thing happened. I think I may just hire someone to fix this damn thing.
Tanner8
 
Posts: 13
Joined: 2010/07/13 06:58:50

Re: Postfix Keeps Shutting Down

Postby pschaff » 2010/07/14 13:14:24

At least three possibilities on continued problems with a reinstall:

1. Reinstalling does not necessarily overwrite changed configuration files and may not have done anything toward cleaning up a configuration issue. Look for config files with .rpm* appended to the name.

2. The problem may have been replicated when going through the configuration steps again.

3. There may be a real problem with the packages - seems unlikely as lots of others have postfix working.
pschaff
Retired Moderator
 
Posts: 18277
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America

Re: Postfix Keeps Shutting Down

Postby milosb » 2010/07/29 08:17:06

Have you checked if sendmail is stopped and relinquished port 25? It can cause this sort of behavior. What is the output of:
Code: Select all
[user@host ~]$ netstat -tulpn|grep LISTEN

As you know, CentOS 5 arives with sendmail as it's default MTA, not postfix, so make sure sendmail is stopped and disabled:
Code: Select all
service sendmail stop
chkconfig sendmail off

Although some of these suggestions may exist in the above mentioned article, TBH I haven't read it...
milosb
 
Posts: 661
Joined: 2009/01/18 00:39:15
Location: 44 49′14″N 20 27′44″E

Re: Postfix Keeps Shutting Down

Postby pschaff » 2010/07/29 11:37:41

Good suggestion. I think the "system-switch-mail" command described in the article does that, but can't speak from experience.
pschaff
Retired Moderator
 
Posts: 18277
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America

Re: Postfix Keeps Shutting Down

Postby milosb » 2010/07/29 11:58:44

pschaff wrote:
I think the "system-switch-mail" command described in the article does that, but can't speak from experience.

You're right, it should.
However, I thought it worth giving it a try, since what I described in my previous post happened to me after trying to switch the default MTA using only alternatives tool -
because that's what system-switch-mail actually does (relinks the default MTA symlink from sendmail to postfix binary).

At that point, it didn't occur to me that sendmail would still be running and taking up port 25.
milosb
 
Posts: 661
Joined: 2009/01/18 00:39:15
Location: 44 49′14″N 20 27′44″E

Re: Postfix Keeps Shutting Down

Postby vbock » 2012/02/07 17:53:03

Thanks for the suggestion to turn off sendmail. Obvious in retrospect, but did not occur. Saved me hours of pulling hair out!
vbock
 
Posts: 7
Joined: 2012/02/07 16:08:46

Next

Return to CentOS 5 - General Support

Who is online

Users browsing this forum: No registered users and 4 guests