Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[CLOSED] Postfix "fatal error" query
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
trossachs
Veteran
Veteran


Joined: 22 Jan 2004
Posts: 1204
Location: London

PostPosted: Fri Jul 20, 2007 10:02 pm    Post subject: [CLOSED] Postfix "fatal error" query Reply with quote

Have just reinstalled Postfix due to a mail server prob. Emerge it as usual, but now it won't start siting the following error:

Code:
fatal: chdir(/usr/libexec/postfix): No such file or directory


Have checked the directory and yes, it is not there but I am not sure why. Have re-emerged but no joy. Why would PF fail to create this directory?


Last edited by trossachs on Sat Jul 21, 2007 12:10 am; edited 1 time in total
Back to top
View user's profile Send private message
Rob1n
l33t
l33t


Joined: 29 Nov 2003
Posts: 714
Location: Cambridge, UK

PostPosted: Fri Jul 20, 2007 10:22 pm    Post subject: Reply with quote

Presumably it's done some checks on the install, found existing files and decided you were reinstalling/upgrading so there was no need to create directories (especially as you might have changed them from the defaults). You could try unmerging it first to clear up the old files/directories.
Back to top
View user's profile Send private message
trossachs
Veteran
Veteran


Joined: 22 Jan 2004
Posts: 1204
Location: London

PostPosted: Fri Jul 20, 2007 10:41 pm    Post subject: Reply with quote

Have emerge -C postfix and emerge postfix some 3 times now. When I had probs earlier I removed the /var/spool/postfix directory in error and am wondering if this is the cause of the prob.

But then I would have thought that an emerge --sync then emerge postfix would have sorted the prob. Is there anyway to force creation of directories?


Last edited by trossachs on Fri Jul 20, 2007 11:11 pm; edited 1 time in total
Back to top
View user's profile Send private message
Rob1n
l33t
l33t


Joined: 29 Nov 2003
Posts: 714
Location: Cambridge, UK

PostPosted: Fri Jul 20, 2007 10:49 pm    Post subject: Reply with quote

Not all of them, no - from the looks of things you can rerun the post-install script which will create the queue directories but not the daemon directory. The only thing I can think of is to do the "emerge -C postfix" again, check what files/directories it's not removed (these'll be indicated in the list and will probably include /etc/postfix) and delete/rename/move these before installing postfix again.
Back to top
View user's profile Send private message
Rob1n
l33t
l33t


Joined: 29 Nov 2003
Posts: 714
Location: Cambridge, UK

PostPosted: Fri Jul 20, 2007 11:59 pm    Post subject: Reply with quote

Okay, to decode the info there:

  • <<< => deleted
  • >>> => installed
  • --- => skipped, reasons being:

      !mtime => different modification time (i.e. it's been edited since install)
      !md5 => different md5 (again, edited since install)
      !empty => the directory is not empty (either a shared directory or contains files left for the above reasons)



So, from the list there you can see that /etc/postfix and /var/spool/postfix are being left. These should be moved/renamed before reinstalling if you want to be sure of getting a clean install.
Back to top
View user's profile Send private message
trossachs
Veteran
Veteran


Joined: 22 Jan 2004
Posts: 1204
Location: London

PostPosted: Sat Jul 21, 2007 12:04 am    Post subject: Reply with quote

SORTED! Have downloaded the source files from postfix.org installed the package, then emerged PF which has now found the relevant files and directories needed. All ok!
Back to top
View user's profile Send private message
trossachs
Veteran
Veteran


Joined: 22 Jan 2004
Posts: 1204
Location: London

PostPosted: Thu Dec 06, 2007 7:09 pm    Post subject: Reply with quote

Just an update for you guys, had the same prob again today some 5 months after my last post. If after downloading a fresh copy from postfix.org the problem still occurs, look into directory
Code:
/usr/lib


If you see a postfix directory (which you should), copy this directory into /usr/libexec and it should work. :D
Back to top
View user's profile Send private message
neofutur
n00b
n00b


Joined: 18 Jun 2006
Posts: 13
Location: France

PostPosted: Mon Sep 10, 2012 3:47 pm    Post subject: Reply with quote

I just had the same problem after upgrading postfix.

files are now in libexec, I hadto update my postfix main.cf , replacing :

daemon_directory = //usr/lib/postfix

with

daemon_directory = /usr/libexec/postfix

and fixed !
_________________
http://english.feeder.ww7.be-http://neofutur.net-http://waisse.org
Back to top
View user's profile Send private message
cach0rr0
Moderator
Moderator


Joined: 13 Nov 2008
Posts: 4122
Location: Houston, Republic of Texas

PostPosted: Sat Sep 15, 2012 6:46 am    Post subject: Reply with quote

neofutur wrote:
I just had the same problem after upgrading postfix.

files are now in libexec, I hadto update my postfix main.cf , replacing :

daemon_directory = //usr/lib/postfix

with

daemon_directory = /usr/libexec/postfix

and fixed !


changed with postfix-2.9

Code:

ricker ~ # eselect news list
News items:
  [1]      2009-04-18  Generation 1 Java Setup Deprecated
  [2]      2009-07-02  kdeprefix and monolithic ebuilds issues
  [3]      2010-03-23  New desktop subprofiles for GNOME and KDE
  [4]      2010-03-25  Python 3.1
  [5]      2010-08-01  --as-needed enabled in default profiles
  [6]      2011-04-27  Upgrade to GLIB 2.28
  [7]      2011-05-22  Removal of kdeprefix support
  [8]      2011-08-28  Mesa r600 driver now defaults to gallium
  [9]      2011-10-15  Upgrade to libpng15
  [10]     2012-03-16  udev-181 unmasking
  [11]     2012-04-24  The default JPEG implementation
  [12]     2012-05-21  Portage config-protect-if-modified default
  [13]     2012-07-23  Upgrading to postfix-2.9

ricker ~ # eselect news read 13
2012-07-23-upgrading-postfix
  Title                     Upgrading to postfix-2.9
  Author                    Eray Aslan <eras@gentoo.org>
  Posted                    2012-07-23
  Revision                  1

Daemons for >=mail-mta/postfix-2.9 are installed under
/usr/libexec/postfix.  Please do not forget to adjust your main.cf by
running etc-update/dispatch-conf or similar and accepting the new
daemon_directory setting.  Otherwise, postfix will not be able to find
the binaries it is looking for.

_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum