OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Subject: Re: Executables Path
From: Wietse Venema (wietseporcupine.org)
Date: Wed Jun 21 2000 - 12:02:35 CDT


Lars Hecking:
>
> > I guess all I really want to know is how do I change the postfix
> > search path
>
> I guess the the place to add this would be the postfix startup
> script. Assuming, of course, that the environment is passed down
> to all children.
>
> PATH=$PATH:/usr/local/postfix /usr/sbin/postfix start

As mentioned by Mr. Todd, Postfix resets the path to a system-dependent
default search path. Some systems define this in /usr/include/paths.h.

If it is not too much trouble you can specify an absolute path
for the command, or specify, in the case of local delivery agent
shell commands:

    "|PATH=stuff...; export PATH; command args..."

Or specify "local_command_shell = /some/where/smrsh" if you want
full control over what commands can be executed.

All this does not help with commands run from the pipe delivery agent,
since no shell is used there.

        Wietse