I'm trying to set default answers to debconf
to automate exim config. I'm setting up new values with debconf-set-selections
, but debconf
ignores it. I'm puzzled. Here is a short copy/paste of my problem :
root@vm-iwd:/var/cache/debconf# debconf-get-selections | grep exim4/dc_eximconfig_configtype
exim4-config exim4/dc_eximconfig_configtype select mail sent by smarthost; no local mail
root@vm-iwd:/var/cache/debconf# echo "exim4-config exim4/dc_eximconfig_configtype select internet site; mail is sent and received directly using SMTP" | debconf-set-selections
root@vm-iwd:/var/cache/debconf# debconf-get-selections | grep exim4/dc_eximconfig_configtype
exim4-config exim4/dc_eximconfig_configtype select internet site; mail is sent and received directly using SMTP
root@vm-iwd:/var/cache/debconf# dpkg-reconfigure exim4-config -fnoninteractive
[ ok ] Stopping MTA for restart: exim4_listener.
[ ok ] Restarting MTA: exim4.
root@vm-iwd:/var/cache/debconf# debconf-get-selections | grep exim4/dc_eximconfig_configtype
exim4-config exim4/dc_eximconfig_configtype select mail sent by smarthost; no local mail
You see how debconf
is ignoring my set-selections ? I tried to edit directly /var/cache/debconf/config.dat
and try to use DEBCONF_DB_OVERRIDE
, none of these methods works
I'm on debian 7.6, fresh netinst install.
Any ideas ?
I agree but you can redefine exim conf by simply running dpkg-reconfigure exim4-config in interactive mode.
- My original point stands. You typically can't use pre-seeding to change things after the fact. Once the package is installed debconf will parse the real configuration files and extract their values, and ignore the preseed database! Look at the exim4 config script/var/lib/dpkg/info/exim4-config.config
, it dot sources/etc/exim4/update-exim4.conf.conf
to load the current values. If that file exists, then no default values are loaded.