[MacPorts] #62001: opensmtpd sets startupitem.autostart yes

MacPorts noreply at macports.org
Wed Jan 6 19:33:06 UTC 2021


#62001: opensmtpd sets startupitem.autostart yes
-------------------------+----------------------
  Reporter:  ryandesign  |      Owner:  ryanakca
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.6.4
Resolution:              |   Keywords:
      Port:  opensmtpd   |
-------------------------+----------------------

Comment (by ryanakca):

 On Wed, Jan 06, 2021 at 03:57:14PM -0000, MacPorts wrote:
 > Why does opensmtpd autostart its launchd plist?
 > {{{
 > startupitem.autostart   yes
 > }}}

 Because OpenSMTPD is a system daemon, and the port provides zero
 functionality unless the daemon is running. By default, the daemon
 listens on localhost as an unprivileged user, so this should create no
 security concerns.

 That said, looking at a few other ports (apache2, nginx, exim, dovecot)
 that provide system daemons, it appears that none of them automatically
 load their launchd plist. So feel free to change the default autostart
 behaviour to "no". Alternatively, I can prepare a PR doing so.

 > Most ports that install launchd plists should not automatically load
 > them.

 FWIW, it would be helpful to new contributors to document the
 circumstances under which plists should and should not be automatically
 loaded, perhaps here [0]. In the Debian world, users typically expect
 system daemons to be automatically started after installation, while
 OpenBSD users need to manually enable them. As a newcomer, I don't know
 what MacPorts users generally expect.

 —RAK

 [0] https://guide.macports.org/chunked/reference.startupitems.html

-- 
Ticket URL: <https://trac.macports.org/ticket/62001#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list