Control: tags -1 + moreinfo

On Fri, Nov 22, 2019 at 12:12:04PM +0100, Harald Dunkel wrote:
> Would it be possible to make the opensmtpd config file configurable?

Sure, I can apply the patch, though the defaults file will be
/etc/default/opensmtpd to match the init script name (see §5.10 of the
maintainer's guide and the suggestion in policy §9.3.2).

> That would allow me to run a private "/etc/smarthost.smtpd.conf" (just
> as an example) without conflict to the default config file provided in
> the package.

I'm trying to understand the rationale for having a separate smtpd.conf.
/etc/smtpd.conf is listed in conffiles, so package upgrades will never
clobber the changes you have made to it. During upgrades, if a package
has a new version of /etc/smtpd.conf and you have local changes, then
dpkg will prompt you to figure out how to handle the differences.

If you want to always keep the old/local version (and have dpkg not
prompt you during upgrades), you can pass --force-confold and
--force-confdef to dpkg. See this writeup[0] by Raphaël Hertzog for more
details.

Does this solve the issues you've been encountering? If not, I'll apply
the patch. Please let me know.

Best,
Ryan

[0] 
https://raphaelhertzog.com/2010/09/21/debian-conffile-configuration-file-managed-by-dpkg/
-- 
|)|/  Ryan Kavanagh      | GPG: 4E46 9519 ED67 7734 268F
|\|\  https://rak.ac     |      BD95 8F7B F8FC 4A11 C97A

Attachment: signature.asc
Description: PGP signature

Reply via email to