On Fri, Nov 02, 2012 at 08:18:09AM -0400, Wietse Venema wrote:

> Sahil Tandon:
> > Some background: upon deinstall, unaltered files installed by a FreeBSD
> > package are supposed to be deleted.  In the context of Postfix
> 
> Come on, sites that don't edit main.cf are so rare 
> that this is not something that I would worry about.
> Don't ask me to pre-patch the stock main/master.cf
> files. That is too hard to maintain (how do I know
> that it is still correct? I never use those files).

I think this response is a bit hasty. Yes, certainly sites that
actually use Postfix typically change main.cf. On the other hand
one often finds oneself with installed software that one never
intends to use that is either pre-installed by default, or gets
installed as part of some over-zealous package dependency management
(can you say Debian? It has its pluses of course, ...)

Thus it is not unreasonable to expect that de-installation of a
never used package should leave no detritus. A Postfix package
should run "postfix-upgrade configuration" as part of the package
install, and this should ideally be a NOP for a first install.

So while the issue is not a high priority, I think that it makes
sense to ship a default master.cf that requires no tweaks, and a
main.cf that likewise requires no tweaks.

I don't recall to what extent this is up to the package installer.
Should the installer first check whether this is a "first install"
of Postfix, and then run only "postfix set-permissions" without
"postfix upgrade-configuration"?

We may not want to revert to legacy behaviour by default
in brand new installs.

In any case, I think that the conf/main.cf and conf/master.cf should
be current (as they've been in most releases IIRC) and should not
require install-time tweaks.

-- 
        Viktor.

Reply via email to