Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 19
Hi folks, CentOS 4.4 server amd64 Failed to start postfix # /etc/init.d/postfix start Code: Starting postfix: [FAILED] # /etc/init.d/saslauthd restart Code: Stopping saslauthd: [ OK ] Starting saslauthd: [ OK ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,778

    Fail to start postfix


    Hi folks,

    CentOS 4.4 server amd64

    Failed to start postfix

    # /etc/init.d/postfix start
    Code:
    Starting postfix:                                          [FAILED]
    # /etc/init.d/saslauthd restart
    Code:
    Stopping saslauthd:                                        [  OK  ]
    Starting saslauthd:                                        [  OK  ]
    Pls advise where to check and how to fix the problem. TIA


    B.R.
    satimis

  2. #2
    Linux Enthusiast likwid's Avatar
    Join Date
    Dec 2006
    Location
    MA
    Posts
    649
    Well you have to figure out what the problem is first. I would check /var/log/messages and /var/log/maillog

  3. #3
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,778
    Quote Originally Posted by likwid
    Well you have to figure out what the problem is first. I would check /var/log/messages and /var/log/maillog
    Hi likwid,

    # cat /var/log/messages | tail
    Code:
    ......
    Apr  6 21:23:39 host postfix: postfix start failed
    Apr  6 21:30:54 host saslauthd[4954]: server_exit     : master exited: 4954
    Apr  6 21:30:54 host saslauthd: saslauthd shutdown succeeded
    Apr  6 21:30:54 host saslauthd[5607]: detach_tty      : master pid is: 5607
    Apr  6 21:30:54 host saslauthd[5607]: ipc_init        : listening on socket: /va
    r/run/saslauthd/mux
    Apr  6 21:30:54 host saslauthd: saslauthd startup succeeded
    Apr  6 21:31:11 host postfix: postfix stop failed
    Apr  6 21:31:12 host postfix: postfix start failed
    Apr  6 21:32:51 host su(pam_unix)[5651]: session opened for user root by satimis
    (uid=500)
    satimis

  4. #4
    Linux Enthusiast likwid's Avatar
    Join Date
    Dec 2006
    Location
    MA
    Posts
    649
    So what's before postfix start failed?

  5. #5
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,778
    Quote Originally Posted by likwid
    So what's before postfix start failed?
    Hi likwid,

    In the course of building server I ran;

    http://www.satimis.com/postfixadmin/admin/ on browser and can't find it.

    Then I checked postfix with;
    # /etc/init.d/postfix restart
    [Fail]

    and found it was not running. I googled around unable to find a solution and leaving it there. Then continued and latter came to testing with following commands
    Code:
    etc/init.d/mysql.server start
    /etc/init.d/saslauthd start
    /etc/init.d/courier-authlib start
    /etc/init.d/courier-imap start
    /etc/init.d/postfix start
    # /etc/init.d/mysql.server start
    command NOT found.

    # ls /etc/init.d/ | grep mysql.server
    No printout

    # /etc/init.d/saslauthd start
    Code:
    Starting saslauthd: saslauthd[5498] :detach_tty      : Cannot start saslauthd
    saslauthd[5498] :detach_tty      : Another instance of saslauthd is currently running
                                                               [FAILED]
    # /etc/init.d/courier-authlib restart
    Code:
    Stopping Courier authentication services:/etc/authlib/authdaemonrc: line 122: unexpected EOF while looking for matching `"'
    /etc/authlib/authdaemonrc: line 124: syntax error: unexpected end of file
     authdaemond
    Starting Courier authentication services:/etc/authlib/authdaemonrc: line 122: unexpected EOF while looking for matching `"'
    /etc/authlib/authdaemonrc: line 124: syntax error: unexpected end of file
     authdaemond
    # /etc/init.d/courier-imap restart
    Code:
    Stopping Courier-IMAP server: imap imap-ssl pop3 pop3-ssl
    Starting Courier-IMAP server: imap imap-ssl pop3 pop3-ssl
    # /etc/init.d/postfix restart
    Code:
    Shutting down postfix:                                     [FAILED]
    Starting postfix:                                          [FAILED]
    That was the story.


    B.R.
    satimis

  6. #6
    Linux Enthusiast likwid's Avatar
    Join Date
    Dec 2006
    Location
    MA
    Posts
    649
    I meant in the log, what happens before the line that says starting postfix failed.

  7. #7
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,778
    Quote Originally Posted by likwid
    I meant in the log, what happens before the line that says starting postfix failed.
    Code:
    ....
    Apr  6 20:59:33 host postfix: postfix reload failed
    Apr  6 21:21:54 host saslauthd[5499]: detach_tty      : could not lock pid file /var/run/saslauthd/saslauthd.pid: Resource temporarily unavailable
    Apr  6 21:21:54 host saslauthd[5498]: detach_tty      : Cannot start saslauthd
    Apr  6 21:21:54 host saslauthd[5498]: detach_tty      : Another instance of saslauthd is currently running
    Apr  6 21:21:54 host saslauthd: saslauthd[5498] :detach_tty      : Cannot start saslauthd
    Apr  6 21:21:54 host saslauthd: saslauthd[5498] :detach_tty      : Another instance of saslauthd is currently running
    Apr  6 21:21:54 host saslauthd: saslauthd startup failed
    Apr  6 21:23:38 host postfix: postfix stop failed
    Apr  6 21:23:39 host postfix: postfix start failed

  8. #8
    Linux Engineer adrenaline's Avatar
    Join Date
    Aug 2004
    Location
    Seattle, Washington
    Posts
    1,058
    Check /var/log/messages

    Don't worry about sasl yet Get post fix running and we can address sasl later.
    Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen a angry penguin charging at them in excess of 100mph. They'd be a lot more careful about what they say if they had.
    -- Linus Torvalds

  9. #9
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,778
    Hi adrenaline,

    Check /var/log/messages
    Pls see above postings. Tks. It will be difficult to post the whole file here because of its size.

    # cat /var/log/maillog | tail
    Code:
    Apr  6 21:23:38 host sendmail[5563]: alias database /etc/aliases rebuilt by sati
    mis
    Apr  6 21:23:38 host sendmail[5563]: /etc/aliases: 78 aliases, longest 10 bytes,
     802 bytes total
    Apr  6 21:23:38 host postfix[5564]: fatal: /etc/postfix/main.cf, line 587: missi
    ng '=' after attribute name: "local_recipient_maps" setting in"
    Apr  6 21:31:10 host postfix[5617]: fatal: /etc/postfix/main.cf, line 587: missi
    ng '=' after attribute name: "local_recipient_maps" setting in"
    Apr  6 21:31:11 host sendmail[5620]: alias database /etc/aliases rebuilt by sati
    mis
    Apr  6 21:31:11 host sendmail[5620]: /etc/aliases: 78 aliases, longest 10 bytes,
     802 bytes total
    Apr  6 21:31:11 host postfix[5621]: fatal: /etc/postfix/main.cf, line 587: missi
    ng '=' after attribute name: "local_recipient_maps" setting in"
    Apr  6 22:28:38 host authdaemond: Bad line in /etc/authlib/authdaemonrc: authpip
    e"
    Apr  6 22:41:49 host authdaemond: Bad line in /etc/authlib/authdaemonrc: authpip
    e"
    Apr  6 22:44:13 host authdaemond: Bad line in /etc/authlib/authdaemonrc: authpip
    e"
    Others noted with tks.

    B.R.
    satimis

  10. #10
    Linux Engineer adrenaline's Avatar
    Join Date
    Aug 2004
    Location
    Seattle, Washington
    Posts
    1,058
    All you have to do is tail -f and it will start to tail the log last 10 lines I believe and then stays active.

    If you tail -100 /var/log/messages this will give you the last 100 and so on

    It looks to me like you don't have post fix configured right, but I use sendmail so I can't be much help.
    Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen a angry penguin charging at them in excess of 100mph. They'd be a lot more careful about what they say if they had.
    -- Linus Torvalds

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •