Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 12th June 2008, 18:23
raulb raulb is offline
Junior Member
 
Join Date: May 2008
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default postfix configuration issue

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
Reply With Quote
Sponsored Links
  #2  
Old 12th June 2008, 20:34
raulb raulb is offline
Junior Member
 
Join Date: May 2008
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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=<200806120802.m5C822Wf004972@chromacars.net>, relay=root@localhost
Jun 12 04:02:03 chromacars sendmail[5220]: m5C823gZ005220: from=<root@chromacars.net>, size=2208, class=0, nrcpts=1, msgid=<200806120802.m5C822Wf004972@chromacars.net>, 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=<root@chromacars.net>, ctladdr=<root@chromacars.net> (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?
Reply With Quote
  #3  
Old 13th June 2008, 18:38
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
Default

What's in /etc/postfix/main.cf and /etc/postfix/master.cf?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail System Error - Returned Mail tristanlee85 General 16 16th March 2008 10:40
Postfix configuration issue with Debian Etch higene Installation/Configuration 3 7th August 2007 20:20
Centos 4.4 32bit Hangs, High Server load 3cwired_com Server Operation 11 16th November 2006 16:47
Verify email setup meekish Installation/Configuration 28 27th October 2006 16:36
Postfix Installation and Configuration akomaoako2k Installation/Configuration 1 31st July 2006 10:08


All times are GMT +2. The time now is 08:50.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.