Gentoo Archives: gentoo-user

From: Yiannis <yiannis@××××××××××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] [postfix - bug?] error in master.cf - problem with restart
Date: Mon, 22 Jun 2009 13:08:04
Message-Id: 20090622160716.19018302@mpismpirikos.tolises.homeunix.org
In Reply to: Re: [gentoo-user] [postfix - bug?] error in master.cf - problem with restart by Marcin Niskiewicz
1 On Mon, 22 Jun 2009 13:56:09 +0200
2 Marcin Niskiewicz <mniskiewicz@×××××.com> wrote:
3
4 > 2009/6/22 Eray Aslan <eray.aslan@×××××××.tr>
5 >
6 > > On 22.06.2009 13:02, Marcin Niskiewicz wrote:
7 > > > I noticed that when someone makes an error in master.cf
8 > > > <http://master.cf> (for example write anything at the beginning
9 > > > of the file) and then restart postfix there is a problem:
10 > > >
11 > > > postfix is stopped (that's ok), then it should be started but it
12 > > > isn't (in log something like
13 > > > postfix/master[1649]: fatal: /etc/postfix/master.cf
14 > > > <http://master.cf>: line 4: bad transport type:
15 > > >
16 > > ==========================================================================)
17 > > > and there is no error shown on console ( echo $? - shows 0 )
18 > > >
19 > > > and then when we try to restart (or start) postfix again - we
20 > > > can't - unless we delete /var/lib/init.d/started/postfix file
21 > > > (it's not deleted while restarting)
22 > > >
23 > > > is it a bug or we're doing sth wrong?!
24 > >
25 > > Postfix init script just calls postfix(1) which calls postfix-script
26 > > which calls master(8). Exit codes do not get back to the terminal.
27 > >
28 > > Use postfix status to check whether the mail system is running.
29 > >
30 > > --
31 > > Eray
32 > >
33 >
34 > Thanks for the answer.
35 > But as I said it doesn't start (there's no process, command postfix
36 > status shows
37 > postfix/postfix-script: the Postfix mail system is not running
38 > but still /etc/init.d/postfix status show it's started)...
39 >
40 > Soooo it is stopped but the status of the service is wrongly updated
41 > (file /var/lib/init.d/started/postfix exists)
42 >
43 >
44 > regards
45 > nichu
46
47 Try
48
49 # /etc/init.d/postfix zap
50
51 to reset the service to the stoped state(since it is not running), and
52
53 # /etc/init.d/postfix start
54
55 to start it again
56
57 regards
58 yiannis
59 --
60 ';
61 .! /X\__/X\
62 ; ; 7%;` %';
63 `. . (. Z Z .;
64 ; ;..'```'''.. T '/
65 ; " .. '% '^';
66 ' . . . '"".==.%
67 `# $. V \
68 .% _./%&$'`\%%}_/
69 <\__)x" <\_)x