pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Weird config path in rc.d/opensmtpd



Hi,

/usr/pkg/share/examples/rc.d/opensmptd (after copying it to /etc/rc.d)
expects my smtpd.conf to be at
	/usr/pkg/etc/smtpd/smtpd/smtpd.conf
which seems like one too many "smtpd"s. 

At least, it contradicts the paths given
	/usr/pkg/man/man8/smtpd.8
	/usr/pkg/man/man8/newaliases.8
as well as the default path used by newaliases, all of which are
	/usr/pkg/etc/smtpd/smtpd.conf


I'm using opensmtpd on NetBSD 10.1. I think my pkgsrc is at 2024Q4
(pkgin's repositories.conf has
https://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/$arch/10.0/All).


While I'm here, I'm curious about one thing: rc.d/opensmtpd has
lines like
	: ${smtpd_config:="/usr/pkg/etc/smtpd/smtpd/${name}.conf"}
which seem to hint there's a way to override $smtpd_config, since
otherwise I don't know why it would be set with ":=". Is there
in fact some way to override it, for example in /etc/rc.conf?

-- 
James


Home | Main Index | Thread Index | Old Index