On Fri, 2012-11-02 at 19:13:04 +0000, Viktor Dukhovni wrote: > 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).
That's fair and understood, Wietse. I did not mean to imply that you should implement an upstream workaround to address this ports issue; sorry if it came across that way. I was just seeking advice from those who may be addressing similar (admittedly "edge case") constraints. > ... > 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"? > ... That seems reasonable. Although, if we take this approach, until the smtpd_relay_restrictions tweak is phased out, it would mean first-time users who perform a fresh install would notice no mention of this parameter in their main.cf and become accustomed to default behavior. Then, when upgrading on a later date, the shim (if it's still active) would insert the safety net into the configuration. Perhaps this is not a big deal, and it should not surprise users who dutifully read RELEASE_NOTES before using/upgrading software, but not everyone does that. Anyway, I think I have enough to proceed; sorry for going off-topic and thanks for the feedback. -- Sahil Tandon