postfix configuration issue

Discussion in 'Server Operation' started by raulb, Jun 12, 2008.

  1. raulb

    raulb New Member

    Hi all,

    I installed postfix on a new box running Centos 5.x with webmin installed. I was having problems receiving email but not sending out email. So i edited this line

    Code:
    #inet_interfaces = all
    #inet_interfaces = $myhostname
    #inet_interfaces = $myhostname, localhost
    inet_interfaces = localhost
    When I did that restarted postfix and dovecot postfix failed to restart. When I checked in webmin I got this error

    Code:
    Error while checking current Postfix configuration. Please manually fix Postfix configuration.
    
    postfix: fatal: chdir(/usr/libexec/postfix inet_interfaces = localhost): No such file or directory
    
    So I set the configuration in main.cf back to the default but it still would not fix postfix.



    Code:
    # ls -l /etc/postfix
    total 300
    -rw-r--r-- 1 root root 17832 Jan 21  2007 access
    -rw-r--r-- 1 root root  3550 Jan 21  2007 bounce.cf.default
    -rw-r--r-- 1 root root 11175 Jan 21  2007 canonical
    -rw-r--r-- 1 root root  9920 Jan 21  2007 generic
    -rw-r--r-- 1 root root 16838 Jan 21  2007 header_checks
    -rw-r--r-- 1 root root 11942 Jan 21  2007 LICENSE
    -rw-r--r-- 1 root root 26688 Jun 11 13:27 main.cf
    -rw-r--r-- 1 root root 17981 Jan 21  2007 main.cf.default
    -rw-r--r-- 1 root root   958 Jan 21  2007 makedefs.out
    -rw-r--r-- 1 root root  4137 Jan 21  2007 master.cf
    -rw-r--r-- 1 root root 17639 Jan 21  2007 postfix-files
    -rwxr-xr-x 1 root root  6366 Jan 21  2007 postfix-script
    -rwxr-xr-x 1 root root 22564 Jan 21  2007 post-install
    -rw-r--r-- 1 root root  6805 Jan 21  2007 relocated
    -rw-r--r-- 1 root root  1629 Jan 21  2007 TLS_LICENSE
    -rw-r--r-- 1 root root 12081 Jan 21  2007 transport
    -rw-r--r-- 1 root root 11903 Jun  2 12:49 virtual
    -rw-r--r-- 1 root root 12288 Jun  2 12:49 virtual.db
    Code:
    # tail /var/log/maillog
    Jun 11 13:11:57 chromacars sendmail[29351]: alias database /etc/aliases rebuilt by raul
    Jun 11 13:11:57 chromacars sendmail[29351]: /etc/aliases: 76 aliases, longest 10 bytes, 765 bytes total
    Jun 11 13:11:57 chromacars postfix[29352]: fatal: chdir(/usr/libexec/postfix inet_interfaces = all inet_interfaces = localhost): No such file or directory
    Jun 11 13:13:12 chromacars postfix[29400]: fatal: chdir(/usr/libexec/postfix inet_interfaces = localhost): No such file or directory
    Jun 11 13:13:13 chromacars sendmail[29402]: alias database /etc/aliases rebuilt by raul
    Jun 11 13:13:13 chromacars sendmail[29402]: /etc/aliases: 76 aliases, longest 10 bytes, 765 bytes total
    Jun 11 13:13:13 chromacars postfix[29403]: fatal: chdir(/usr/libexec/postfix inet_interfaces = localhost): No such file or directory
    Jun 11 14:00:47 chromacars sendmail[29812]: alias database /etc/aliases rebuilt by raul
    Jun 11 14:00:47 chromacars sendmail[29812]: /etc/aliases: 76 aliases, longest 10 bytes, 765 bytes total
    Jun 11 14:00:47 chromacars postfix[29813]: fatal: chdir(/usr/libexec/postfix inet_interfaces = localhost): No such file or directory
     
  2. raulb

    raulb New Member

    I tried to stop sendmail and just have postfix start up but that did not work either

    Code:
    ]# /etc/init.d/sendmail stop
    Shutting down sm-client:                                   [  OK  ]
    Shutting down sendmail:                                    [  OK  ]
    [root@chromacars raul]# rpm -e sendmail-cf
    [root@chromacars raul]# rpm -e sendmail
    warning: /var/log/mail/statistics saved as /var/log/mail/statistics.rpmsave
    [root@chromacars raul]# /etc/init.d/postfix stop
    Shutting down postfix:                                     [FAILED]
    [root@chromacars raul]# /etc/init.d/postfix start
    Starting postfix:                                          [FAILED]
    [root@chromacars raul]# tail /var/log/maillog
    Jun 12 04:02:03 chromacars sendmail[4972]: m5C822Wf004972: from=root, size=1956, class=0, nrcpts=1, msgid=<[email protected]>, relay=root@localhost
    Jun 12 04:02:03 chromacars sendmail[5220]: m5C823gZ005220: from=<[email protected]>, size=2208, class=0, nrcpts=1, msgid=<[email protected]>, proto=ESMTP, daemon=MTA, relay=chromacars.net [127.0.0.1]
    Jun 12 04:02:03 chromacars sendmail[4972]: m5C822Wf004972: to=root, ctladdr=root (0/0), delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=31956, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (m5C823gZ005220 Message accepted for delivery)
    Jun 12 04:02:03 chromacars sendmail[5223]: m5C823gZ005220: to=<[email protected]>, ctladdr=<[email protected]> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=32414, dsn=2.0.0, stat=Sent
    Jun 12 11:11:03 chromacars postfix[9229]: fatal: chdir(/usr/libexec/postfix inet_interfaces = localhost): No such file or directory
    Jun 12 11:11:04 chromacars postfix[9231]: fatal: chdir(/usr/libexec/postfix inet_interfaces = localhost): No such file or directory
    Jun 12 11:13:49 chromacars postfix[9443]: fatal: chdir(/usr/libexec/postfix inet_interfaces = localhost): No such file or directory
    Jun 12 11:13:50 chromacars postfix[9445]: fatal: chdir(/usr/libexec/postfix inet_interfaces = localhost): No such file or directory
    Jun 12 13:31:28 chromacars postfix[10677]: fatal: chdir(/usr/libexec/postfix inet_interfaces = localhost): No such file or directory
    Jun 12 13:31:37 chromacars postfix[10685]: fatal: chdir(/usr/libexec/postfix inet_interfaces = localhost): No such file or directory
    [root@chromacars raul]#
    [root@chromacars raul]#
    
    thoughts? ideas?
     
  3. falko

    falko Super Moderator Howtoforge Staff

    What's in /etc/postfix/main.cf and /etc/postfix/master.cf?
     

Share This Page