From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1MIi8D-0008EC-Cm for garchives@archives.gentoo.org; Mon, 22 Jun 2009 11:56:13 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 02C1EE02A0; Mon, 22 Jun 2009 11:56:12 +0000 (UTC) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.159]) by pigeon.gentoo.org (Postfix) with ESMTP id 9CC2BE02A0 for ; Mon, 22 Jun 2009 11:56:11 +0000 (UTC) Received: by fg-out-1718.google.com with SMTP id 13so1137537fge.14 for ; Mon, 22 Jun 2009 04:56:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=/3oz3a178stpFHLUKDOd8Vp8dREDxpjuTlCrRnbMBM4=; b=gBTabAQWULpdYG838xCIDJy1hUKJQrBWGEt2XAgSmq4Dj2p/dS5EIs5qOMyXMborq8 +YFfcND6CpgiWBzeVw3fj6xy4Auq3+pJ2xfqwob3vj6YNWaClM5ThxLPULx1QkBGlYaR osHNz6sR5eE30qS/BS59LWLvb9n3xeuOfMMY8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=Oys1QNETcDvQeZtLD3hj8CjMbSNqypVYkAsz7r54GBO1RsYqP3IpwejY3AMbWN1uUf 8SFcd1SaN58hAVDjbGqp5NQzxG4Un4bjhY7KpP3DEwukPyN0BeR20lhdeXw6PlqcuZv3 0n6phyD7GI5nprK2DN26ZDmX8MXlyx71Gmjnc= Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.239.132.209 with SMTP id 17mr439821hbs.136.1245671769946; Mon, 22 Jun 2009 04:56:09 -0700 (PDT) In-Reply-To: <4A3F66C0.6020309@caf.com.tr> References: <4A3F66C0.6020309@caf.com.tr> Date: Mon, 22 Jun 2009 13:56:09 +0200 Message-ID: Subject: Re: [gentoo-user] [postfix - bug?] error in master.cf - problem with restart From: Marcin Niskiewicz To: gentoo-user@lists.gentoo.org Content-Type: multipart/alternative; boundary=001485f1da1a5abbbc046cee8fa9 X-Archives-Salt: fed373a5-0950-47db-bd72-c0c7c34cf6d6 X-Archives-Hash: 21deb0b126bc16874291baf623ab6de2 --001485f1da1a5abbbc046cee8fa9 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 2009/6/22 Eray Aslan > On 22.06.2009 13:02, Marcin Niskiewicz wrote: > > I noticed that when someone makes an error in master.cf > > (for example write anything at the beginning of the > > file) and then restart postfix there is a problem: > > > > postfix is stopped (that's ok), then it should be started but it isn't > > (in log something like > > postfix/master[1649]: fatal: /etc/postfix/master.cf : > > line 4: bad transport type: > > > ==========================================================================) > > and there is no error shown on console ( echo $? - shows 0 ) > > > > and then when we try to restart (or start) postfix again - we can't - > > unless we delete /var/lib/init.d/started/postfix file (it's not deleted > > while restarting) > > > > is it a bug or we're doing sth wrong?! > > Postfix init script just calls postfix(1) which calls postfix-script > which calls master(8). Exit codes do not get back to the terminal. > > Use postfix status to check whether the mail system is running. > > -- > Eray > Thanks for the answer. But as I said it doesn't start (there's no process, command postfix status shows postfix/postfix-script: the Postfix mail system is not running but still /etc/init.d/postfix status show it's started)... Soooo it is stopped but the status of the service is wrongly updated (file /var/lib/init.d/started/postfix exists) regards nichu --001485f1da1a5abbbc046cee8fa9 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

2009/6/22 Eray Aslan &= lt;eray.aslan@caf.com.tr>
On 22.06.2009 13:02, Marcin Niskiewicz wrote:
> I noticed that when someone makes an error in master.cf
> <http://master= .cf> (for example write anything at the beginning of the
> file) and then restart postfix there is a problem: >
> postfix is stopped (that's ok), then it should be started but it i= sn't
> (in log something like
> postfix/master[1649]: fatal: /etc/postfix/master.cf <http://master.cf>:
> line 4: bad transport type:
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D)
> and there is no error shown on console ( echo $? - shows 0 )
>
> and then when we try to restart (or start) postfix again - we can'= t -
> unless we delete /var/lib/init.d/started/postfix file (it's not de= leted
> while restarting)
>
> is it a bug or we're doing sth wrong?!

Postfix init script just calls postfix(1) which calls postfix-script<= br> which calls master(8). =A0Exit codes do not get back to the terminal.

Use postfix status to check whether the mail system is running.

--
Eray

Thanks for the answer.
But as I said it doe= sn't start (there's no process, command postfix status shows
pos= tfix/postfix-script: the Postfix mail system is not running
but still /= etc/init.d/postfix status show it's started)...

Soooo it is stopped but the status of the service is wrongly updated (f= ile /var/lib/init.d/started/postfix exists)
=A0

regards
nichu<= br>

--001485f1da1a5abbbc046cee8fa9--