Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

PBI

share|improve this question

4 Answers 4

up vote 4 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

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

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 –  Philip Isaacs Jan 31 '13 at 22:12
1  
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

Your Answer

 
discard

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.