Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Postfix installation problem...

10 views
Skip to first unread message

Mr fix

unread,
Feb 7, 2012, 8:00:43 PM2/7/12
to
We have created an rpm by applying custom patch to Postfix 2.8.7, after the installation "postfix check" gives the following error.

postfix: fatal: /usr/libexec/postfix/postfix-script: No such file or directory

After reading i'm coming to conclusion that it might be a permissions issue, haven't seen any differences when cross checked between older system vs this one.

TIA.
Kumar

Wietse Venema

unread,
Feb 7, 2012, 8:32:48 PM2/7/12
to
Mr fix:
> We have created an rpm by applying custom patch to Postfix 2.8.7,
> after the installation "postfix check" gives the following error.
>
> postfix: fatal: /usr/libexec/postfix/postfix-script: No such file or directory

The postfix command runs with super-user privileges. If it can't
execute postfix-script because of the above error, then:

- Either the file does not exist,

- Or the #!/path/to/program on the first line of the file specifies
a non-existent patname,

- Or you need to fix the SELINUX or APPARMOR etc. "security"
configuration.

Wietse

Mr fix

unread,
Feb 8, 2012, 11:47:27 AM2/8/12
to
Thanks a ton for the reply.

I have compared the working version(2.4.6) box vs this one 2.8.7 here are the results.

1. postfix-script files exist at same locations.

[root@box-1 /]# find / -name postfix-script
/etc/postfix.one/postfix-script
/etc/postfix.two/postfix-script


[root@box-2 /]# find / -name postfix-script
/etc/postfix.one/postfix-script
/etc/postfix.two/postfix-script

2. Doing this as root so i think its safe to conclude this may not be a permissions issue, am i ok ???

3. SELINUX is disabled.

4. Verified the postfix-script file first line, it is #!/bin/sh.

5. Verified for "whereis postfix", does this makes any difference ?

Box1
[root@box-1 ~]# whereis postfix
postfix: /usr/sbin/postfix /usr/sbin/postfix.one /usr/sbin/postfix.two /etc/postfix /etc/postfix.one /etc/postfix.two /usr/libexec/postfix

Box2

[root@box-2 /]# whereis postfix
postfix: /usr/sbin/postfix.two /usr/sbin/postfix /usr/sbin/postfix.one /etc/postfix.two /etc/postfix /etc/postfix.one /usr/libexec/postfix

Thanks,
Kumar
________________________________
From: Wietse Venema <wie...@porcupine.org>
To: Postfix users <postfi...@postfix.org>
Sent: Tuesday, February 7, 2012 7:32 PM
Subject: Re: Postfix installation problem...

Viktor Dukhovni

unread,
Feb 8, 2012, 11:52:01 AM2/8/12
to
On Wed, Feb 08, 2012 at 08:47:27AM -0800, Mr fix wrote:

> I have compared the working version(2.4.6) box vs this one 2.8.7
> here are the results.
>
> 1. postfix-script files exist at same locations.
>
> [root@box-1 /]# find / -name postfix-script
> /etc/postfix.one/postfix-script
> /etc/postfix.two/postfix-script

There's your problem. The postfix-script, postfix-files and related
files are as of Postfix 2.6 expected to be in /usr/libexec/postfix
(really $daemon_directory).

Your Postfix installation is broken.

--
Viktor.

Mr fix

unread,
Feb 8, 2012, 12:07:28 PM2/8/12
to
Just tried that brute force and worked.....your reference validates the issue.

These things generally happen when we jump 4 versions in one shot, thank you very much for pitching in.

We have multiple instances running so as per older way they distributed postfix-files, -script -install in different places, now, i have to see how the multiple instances functionality changed since 2.4.

Thanks,
Kumar

----- Original Message -----
From: Viktor Dukhovni <postfi...@dukhovni.org>
To: postfi...@postfix.org
Cc:
Sent: Wednesday, February 8, 2012 10:52 AM
Subject: Re: Postfix installation problem...

Wietse Venema

unread,
Feb 8, 2012, 12:16:44 PM2/8/12
to
Mr fix:
> > Thanks a ton for the reply.
>
> I have compared the working version(2.4.6) box vs this one 2.8.7
> here are the results.
>
> 1. postfix-script files exist at same locations.
>
> [root@box-1 /]# find / -name postfix-script
> /etc/postfix.one/postfix-script
> /etc/postfix.two/postfix-script

Postfix 2.6 and later use /usr/libexec/postfix/postfix-script,

You may have noticed that pathname in the error message.

Wietse

Brian Evans - Postfix List

unread,
Feb 8, 2012, 12:19:50 PM2/8/12
to
On 2/8/2012 12:07 PM, Mr fix wrote:
> Just tried that brute force and worked.....your reference validates the issue.
>
> These things generally happen when we jump 4 versions in one shot, thank you very much for pitching in.
>
> We have multiple instances running so as per older way they distributed postfix-files, -script -install in different places, now, i have to see how the multiple instances functionality changed since 2.4.

You will probably be interested in
http://www.postfix.org/MULTI_INSTANCE_README.html which was offered
beginning with Postfix 2.6.

0 new messages