public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] [postfix - bug?] error in master.cf - problem with restart
@ 2009-06-22 10:02 Marcin Niskiewicz
  2009-06-22 11:10 ` Eray Aslan
  0 siblings, 1 reply; 4+ messages in thread
From: Marcin Niskiewicz @ 2009-06-22 10:02 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 772 bytes --]

Hello
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?!

equery list | grep postfix
mail-mta/postfix-2.5.5

uname -r
2.6.27-gentoo-r8

regards
nichu

[-- Attachment #2: Type: text/html, Size: 922 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] [postfix - bug?] error in master.cf - problem with restart
  2009-06-22 10:02 [gentoo-user] [postfix - bug?] error in master.cf - problem with restart Marcin Niskiewicz
@ 2009-06-22 11:10 ` Eray Aslan
  2009-06-22 11:56   ` Marcin Niskiewicz
  0 siblings, 1 reply; 4+ messages in thread
From: Eray Aslan @ 2009-06-22 11:10 UTC (permalink / raw
  To: gentoo-user

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 isn't
> (in log something like
> postfix/master[1649]: fatal: /etc/postfix/master.cf <http://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



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] [postfix - bug?] error in master.cf - problem with  restart
  2009-06-22 11:10 ` Eray Aslan
@ 2009-06-22 11:56   ` Marcin Niskiewicz
  2009-06-22 13:07     ` Yiannis
  0 siblings, 1 reply; 4+ messages in thread
From: Marcin Niskiewicz @ 2009-06-22 11:56 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1454 bytes --]

2009/6/22 Eray Aslan <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 isn't
> > (in log something like
> > postfix/master[1649]: fatal: /etc/postfix/master.cf <http://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

[-- Attachment #2: Type: text/html, Size: 2241 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] [postfix - bug?] error in master.cf - problem with  restart
  2009-06-22 11:56   ` Marcin Niskiewicz
@ 2009-06-22 13:07     ` Yiannis
  0 siblings, 0 replies; 4+ messages in thread
From: Yiannis @ 2009-06-22 13:07 UTC (permalink / raw
  To: gentoo-user

On Mon, 22 Jun 2009 13:56:09 +0200
Marcin Niskiewicz <mniskiewicz@gmail.com> wrote:

> 2009/6/22 Eray Aslan <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
> > > isn't (in log something like
> > > postfix/master[1649]: fatal: /etc/postfix/master.cf
> > > <http://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

Try 

# /etc/init.d/postfix zap   

to reset the service  to the stoped state(since it is not running), and

# /etc/init.d/postfix start

to start it again

regards
yiannis
-- 
';
 .!           /X\__/X\
; ;           7%;`  %';
`. .         (. Z  Z .;
 ; ;..'```'''..   T '/
  ; "  ..     '% '^';
 '   . . .   '"".==.%
 `#  $.          V \
  .%  _./%&$'`\%%}_/
   <\__)x"    <\_)x



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-06-22 13:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-22 10:02 [gentoo-user] [postfix - bug?] error in master.cf - problem with restart Marcin Niskiewicz
2009-06-22 11:10 ` Eray Aslan
2009-06-22 11:56   ` Marcin Niskiewicz
2009-06-22 13:07     ` Yiannis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox