On Thu, 16 Jan 2014 04:20:47 -0700 LaMont Jones <[email protected]> wrote:
On Mon, Jan 06, 2014 at 04:37:15PM -0500, Daniel Dickinson wrote:
> Setting relay_host in /etc/postfix/main.cf manual and the doing 
dpkg-reconfigured results in debconf setting (unless you set it back) the 
relay_host previously configured in debconf, not the one from main.cf through 
manual editing.

Correct.  How would you suggest that I determine which one was set last?
See also #620543.

In my view, what should be done in this case is - on upgrade (or on
`dpkg-reconfigure`, which is the same thing in this context), postfix
setup script should notice the difference between debconf-saved value
and actual value used in the current config file, and ask whenever to
use current value (in which case debconf-saved value is set to current)
or to override it with debconf-saved one.

The same applies to an initial install when there was no postfix package
has been installed on the system, but main.cf/master.cf exists.

This complicates things for sure, but I see it like the only way to
avoid surprises like this one.  I'd say we use debconf in a wrong way
in postfix, - it is like forcing a new conffile on upgrades which is
a complete no-go in debian.

Well, okay, there's one more possible way: to drop debconf entirely :)

Thanks,

/mjt

Reply via email to