Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

So I installed mailutils (apt-get install mailutils) and when I did a nice little setup screen popped up and started asking me questions. I guess I screwed up and cancelled out before I had all the data I need to configure. Anyhow, how do I get it to rerun that setup script?


share|improve this question
up vote 16 down vote accepted

You can try with

dpkg-reconfigure -plow postfix

This will reask the questions about this package. May be you need to reconfigure another one, liki postfix-mysql.

share|improve this answer

You have two possibilities, reinstall the package (maybe you have to purge it and install again) or just reconfigure it (this is preferable):

dpkg-reconfigure mailutils

share|improve this answer
Thanks! This was really helpful – Showcaselfloyd Jan 31 '13 at 22:12
The mailutils package really has no configuration (other than setting some /etc/alternatives options). The configuration dialogue mentioned was for postfix, not mailutils. See the files in /var/lib/dpkg/info for more info... – EEAA Jan 31 '13 at 22:16

Mailutils itself doesn't really have any specific configuration, as it's merely a collection of various mail utilities.

One of the dependencies of mailutils is the default-mta package which in ubuntu, is postfix. Postfix would have gotten installed when you ran apt-get install mailutils, and it's the postfix configuration screen you likely saw.

To re-run this configuration wizard, just run: $ dpkg-reconfigure postfix.

share|improve this answer

Generally, debian package installations can be rerun by running the postinst executable file cached by dpkg.

At least on my Ubuntu box, they can be found under /var/lib/dpkg/info/. The file should be named <package-name>.postinst.

share|improve this answer
This is actually not true, the /var/lib/dpkg/info/package.postinst will re-run the setup instructions but without asking the questions, the /var/lib/dpkg/info/package.config script is the one who ask them and reconfigures everything, so if you wanna repeat the process manually you would need to call it with the reconfigure parameter. – chilicuil Feb 12 '15 at 21:24

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.