Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to install Postfix on a fresh Ubuntu box on first boot, but the interactive configuration screen that the installer presents to you isn't scriptable. When my startup script attempts the following:

apt-get -y install postfix

the init script hangs. If I run it by hand, I'm presented with a "dialog" screen from the whiptail command.

Is there a way for me to force a particular option from the command-line, or tell the Postfix installer that I don't want it to give me any configuration at all? I'm generating my own file anyway, and don't need Ubuntu's helper screen.

share|improve this question
up vote 5 down vote accepted
DEBIAN_FRONTEND=noninteractive apt-get -y install postfix

should do the trick. You may want to lay down working config files on the system after you run that, though.

share|improve this answer
Thank you, this worked great! – Michael Nachbaur Oct 1 '10 at 17:05

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.