Re: Postfix master dead but pid file exists

2013-06-10 Thread Wietse Venema
Jayanta Ghosh:
 Dear List,
 The problem is the postfix stops running after sometime and the postfix
 status is showing master dead but pid file exists . The main.cf file and

PLEASE FILE A REDHAT BUG REPORT. THIS WORKS PROPERLY IN POSTFIX
AS DISTRIBUTED FROM POSTFIX.ORG.

Wietse


Re: Postfix master dead but pid file exists

2013-06-10 Thread Viktor Dukhovni
On Mon, Jun 10, 2013 at 01:08:12PM +0530, Jayanta Ghosh wrote:

 The problem is the postfix stops running after sometime

This is the problem you should pursue:  Why does Postfix stop
running?  For this, you need to read your logs.

 and the postfix status is showing master dead but pid file exists.

This is a non-issue you should ignore.

 the output of postconf -d is attached herein.

This is unnecessary.

 I have also gone through the log files but could not find any errors. 

You need to look at the logs more carefully.  Sometimes error messages
are sent to a different log file than regular messages.

Find any and all logging from postfix/master.  Find out when mail
delivery stopped.  What was happening around the time the last few
messages were logged...

-- 
Viktor.



RE: Postfix master dead but pid file exists

2013-06-08 Thread jayanta . ghosh
Please tell me how to find out that some other component has locked the
pid files. I have done the following things to find out :-

[root@drmail1 ~]# /etc/init.d/postfix status
master dead but pid file exists
[root@drmail1 ~]# ps -ef | grep postfix
root  1412 1  0 Jun07 ?00:00:00 /usr/libexec/postfix/master
postfix   1415  1412  0 Jun07 ?00:00:00 qmgr -l -t fifo -u
postfix  16286  1412  0 13:37 ?00:00:00 pickup -l -t fifo -u
root 16452 16416  0 13:52 pts/000:00:00 grep postfix
[root@drmail1 ~]#

Regards,
Jayanta

-Original Message-
From: Nikolas Kallis [mailto:n...@nikolaskallis.com]
Sent: Saturday, June 08, 2013 9:47 AM
To: jayanta.gh...@cesc.co.in
Subject: Re: Postfix master dead but pid file exists

On 08/06/13 14:05, jayanta.gh...@cesc.co.in wrote:
 Dear List,

 We have a mail server running on RHEL 6.2 with the following components :-
 1.Postfix
 2.Openldap
 3.Courier-authlib
 4.Courier-imap
 5.SASL
 6.Maildrop

 The problem is the postfix status is showing “master dead but pid file
 exists” after sometime. The main.cf file and the output of postconf –d
 is attached herein. I have also gone through the log files but could
 not find any errors.

 Please help me resolve this issue.



 Thanks  Regards,
 Jayanta Ghosh

It may be that one of the following components has read and locked the pid
file.




Re: Postfix master dead but pid file exists

2013-06-08 Thread Wietse Venema
jayanta.gh...@cesc.co.in:
 Please tell me how to find out that some other component has locked the
 pid files. I have done the following things to find out :-
 
 [root@drmail1 ~]# /etc/init.d/postfix status
 master dead but pid file exists

Please file a bug report with REDHAT. They have broken Postfix status
reports. I am not responsible for bugs that other people add.

With Postfix as released by me:

# postfix status
postfix/postfix-script: the Postfix mail system is running: PID: 1205
# ps ax | grep master | grep -v grep
 1205  ??  Ss 0:14.23 /usr/libexec/postfix/master -w

And on a system running multiple Postfix instances:

# postfix status
postfix/postfix-script: the Postfix mail system is running: PID: 1366
postfix-m1/postfix-script: the Postfix mail system is running: PID: 1601
# ps ax | grep master | grep -v grep
 1366  ??  Is 0:14.40 /usr/libexec/postfix/master -w
 1601  ??  Is 0:31.61 /usr/libexec/postfix/master -w

Wietse


Re: Postfix master dead but pid file exists

2013-06-07 Thread Viktor Dukhovni
On Sat, Jun 08, 2013 at 09:35:15AM +0530, jayanta.gh...@cesc.co.in wrote:

 The problem is the postfix status is showing ?master dead but pid file
 exists? after sometime. The main.cf file and the output of postconf ?d is
 attached herein. I have also gone through the log files but could not find
 any errors.

This is a non-problem.  There is no reasonable expectation that
the pid file is sure to be deleted when Postfix is not running.

Perhaps you can describe your real goal, why you are trying to look
at the pid file, rather than the non-problem (the pid file not
meeting naive expectations).

Are you trying to monitor system health?  Stop Postfix? ...

-- 
Viktor.