Postfix Keeps Shutting Down
Postfix Keeps Shutting Down
Hey, I installed postfix and configured it but for some reason it keeps shutting down right after startup. Here is what happens,
[code]
[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
[/code]
I would post you my var/log/maillog however it is empty for some reason. What's going on?
Thanks
[code]
[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
[/code]
I would post you my var/log/maillog however it is empty for some reason. What's going on?
Thanks
-
- Retired Moderator
- Posts: 18276
- Joined: 2006/12/13 20:15:34
- Location: Tidewater, Virginia, North America
- Contact:
Postfix Keeps Shutting Down
Configured how? Have you read the [url=http://wiki.centos.org/HowTos/postfix]Wiki HowTos/postfix article[/url]?
Re: Postfix Keeps Shutting Down
That's actually exactly what I used to configure it.
-
- Retired Moderator
- Posts: 18276
- Joined: 2006/12/13 20:15:34
- Location: Tidewater, Virginia, North America
- Contact:
Re: Postfix Keeps Shutting Down
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"?
Re: Postfix Keeps Shutting Down
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.
-
- Retired Moderator
- Posts: 18276
- Joined: 2006/12/13 20:15:34
- Location: Tidewater, Virginia, North America
- Contact:
Re: Postfix Keeps Shutting Down
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.
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.
-
- Posts: 661
- Joined: 2009/01/18 00:39:15
- Location: 44 49′14″N 20 27′44″E
Re: Postfix Keeps Shutting Down
Have you checked if [b]sendmail[/b] is stopped and relinquished port 25? It can cause this sort of behavior. What is the output of:
[code]
[user@host ~]$ netstat -tulpn|grep LISTEN
[/code]
As you know, CentOS 5 arives with [b]sendmail[/b] as it's default MTA, not [b]postfix[/b], so make sure [b]sendmail[/b] is stopped and disabled:
[code]
service sendmail stop
chkconfig sendmail off
[/code]
Although some of these suggestions may exist in the above mentioned article, TBH I haven't read it...
[code]
[user@host ~]$ netstat -tulpn|grep LISTEN
[/code]
As you know, CentOS 5 arives with [b]sendmail[/b] as it's default MTA, not [b]postfix[/b], so make sure [b]sendmail[/b] is stopped and disabled:
[code]
service sendmail stop
chkconfig sendmail off
[/code]
Although some of these suggestions may exist in the above mentioned article, TBH I haven't read it...
-
- Retired Moderator
- Posts: 18276
- Joined: 2006/12/13 20:15:34
- Location: Tidewater, Virginia, North America
- Contact:
Re: Postfix Keeps Shutting Down
Good suggestion. I think the "system-switch-mail" command described in the article does that, but can't speak from experience.
-
- Posts: 661
- Joined: 2009/01/18 00:39:15
- Location: 44 49′14″N 20 27′44″E
Re: Postfix Keeps Shutting Down
[quote]
pschaff wrote:
I think the "system-switch-mail" command described in the article does that, but can't speak from experience.[/quote]
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 [b]alternatives[/b] tool -
because that's what [b]system-switch-mail[/b] actually does (relinks the default MTA symlink from [b]sendmail[/b] to [b]postfix[/b] binary).
At that point, it didn't occur to me that [b]sendmail[/b] would still be running and taking up port 25.
pschaff wrote:
I think the "system-switch-mail" command described in the article does that, but can't speak from experience.[/quote]
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 [b]alternatives[/b] tool -
because that's what [b]system-switch-mail[/b] actually does (relinks the default MTA symlink from [b]sendmail[/b] to [b]postfix[/b] binary).
At that point, it didn't occur to me that [b]sendmail[/b] would still be running and taking up port 25.
Re: Postfix Keeps Shutting Down
Thanks for the suggestion to turn off sendmail. Obvious in retrospect, but did not occur. Saved me hours of pulling hair out!