On Sat, Apr 30, 2011 at 06:07:46PM +0200, Patrick Ben Koetter wrote: > I have two instances of Postfix (2.7.1) running on a server, but I can't tell > which is which: > > % ps axf > ... > 31383 ? Ss 0:00 /usr/lib/postfix/master > 31627 ? S 0:00 \_ pickup -l -t fifo -u -c > 31628 ? S 0:00 \_ qmgr -l -t fifo -u > 31505 ? Ss 0:00 /usr/lib/postfix/master > 31638 ? S 0:00 \_ pickup -l -t fifo -u -c > 31639 ? S 0:00 \_ qmgr -l -t fifo -u
If you include the parent process id in the "ps" output, and run "postfix status", you'll see which master(8) process is which instance, and thus which instance owns which sub-process. Sadly "postfix status" never sends anything to pipes, it just syslogs when the output is not a terminal... So to find which master is which instance you need to look in the master.pid files or in /proc, ... If you do look in /proc, each child process has MAIL_CONFIG in its environment... -- Viktor.