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: running multiple configs at same time?
From: Jeff A. Earickson (jaearickcolby.edu)
Date: Tue Mar 14 2000 - 09:06:18 CST


Hmmmm...

   Why do I need to set an environmental variable when I should be able
to get the same result by specifying an alternate config directory via

sendmail -C/etc/postfix-www (my alternate config directory)

If I set up my main.cf file in this directory (I think I did), then
why doesn't postfix see my alternate alias files?

BTW, what is the direct way of sending email with postfix via command-line,
without using a mailer program, analogous to

sendmail -C alternate.cf -f sender recipient < mail_file

Is this direct method allowed in postfix?

--- Jeff

On Tue, 14 Mar 2000, Wietse Venema wrote:

> Date: Tue, 14 Mar 2000 09:02:21 -0500 (EST)
> From: Wietse Venema <wietseporcupine.org>
> To: Carsten Hoeger <choegersuse.de>
> Cc: tandresvis.ethz.ch, jaearickcolby.edu, postfix-userspostfix.org
> Subject: Re: running multiple configs at same time?
>
> Carsten Hoeger:
> > On Tue, Mar 14, Thomas Andres wrote:
> >
> > > > Yes, that's the problem. I am very interested how to solve this,
> > > > too. You can not specify, what configuration to use.
> > >
> > > If you really have to you can compile a second sendmail binary with a
> > > different path to main.cf
> >
> > Yes, of course I can.
> > But better may be a "more general solution".
>
> How about:
>
> setenv MAIL_CONFIG /some/where/else
>
> Seems general to me. The above will direct all Postfix commands to
> the proper config file and queue directories. You can still share
> Postfix executables among instances.
>
> Wietse
>