06.07.2010 20:58, Phil Howard wrote: > On Tue, Jul 6, 2010 at 10:27, Isaac Witmer <isaa...@gmail.com> wrote: >> I'm doing a custom install, and one of the packages in the install is >> postfix. >> Each time, it prompts me to select "no configuration" "Local use" etc. >> just after the package has been downloaded and right before it has >> been installed. (similar to the screen that shows up when you're asked >> to accept the sun-java6 license) >> >> I need a way to dodge it. Any ideas? > > The package comes with two or more pre-packaged configurations to make > it ready to go. Why not just use "no configuration" and later apply > your own configuration. > > If you are trying to bypass the interactiveness of it so you don't get > stopped at that choice, maybe you need an expect script (I've used > pexpect with Python for various things, and was thinking of using it > for this, too).
This is becoming more and more off-topic for Postfix mailing list... there's debconf-set-selections command in Debian that is especially designed to pre-set answers to dpkg questions for non-interactive installations. There's no need to re-invent the wheel, it is here for a long time already and is working quite well. What you need is to install a package(s) in question on a test system and look at the debconf items of your interest. The raw data is stored in /var/cache/debconf/config.dat. But again, this has nothing to do with postfix, it's 100% debian question. In particular, read about how to do some non-interactive package installs in this distribution. /mjt