|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Michael Tokarev (mjt
tls.msk.ru)Date: Wed Sep 05 2001 - 15:35:58 CDT
Will Yardley wrote:
>
> Michael Tokarev wrote:
>
> > Not quite shure what you're asking about or trying to do. Postfix's
> > (now default) mynetwork_style=subnet is a "magic entry" -- with it,
> > there are usually no other tweaks needed, postfix will adopt itself on
> > any given host. Well, *usually*, but not always. If you want to have
> > some other *dynamic* (i.e. based on host) settings, you can configure
> > that into your dpkg post-install scripts (using postconf -e).
>
> as mentioned in the thread, i want to _avoid_ having a default value
> built into the package.
I said about not setting default value into package but setting it
on a target host -- either using postfix's ability to list all
configured interfaces (on machine where it runs on, not where it
was built) or using package manager (dpkg in your case) ability
to execute script(s) at installation (again, on target machine)
time.
> chakra% postconf -d |grep networks
> mynetworks = 127.0.0.0/8 216.246.35.0/24 216.246.35.0/24 216.246.35.0/24
> 216.246.35.0/24 216.246.35.0/24
> [...]
This will differ if you change your network setup (without recompiling!)
or run it on another host.
> i want to build the package without any default values based on the
> build machine getting compiled into the package.
See above. By default, postfix uses information from machine it *runs*
on.
> i'm assuming there's a way to build postfix without this stuff.
I build postfix as rpm (and many others does that too, using e.g.
vendor-supplied rpm), and there is *no* info from build machine
inside (except of rpm's "BuildHost" tag), and postfix installed
using that rpm package works on *target* machine using *that*
machine's configuration. Think of e.g. myhostname -- you don't
need to set it, postfix uses name of machine *it runs on* as
a default.
Regards,
Michael.
-
To unsubscribe, send mail to majordomo
postfix.org with content
(not subject): unsubscribe postfix-users
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]