pkgsrc-Bugs archive

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

pkg/60954: opendkim: rc.d script lacks reload command



>Number:         60954
>Category:       pkg
>Synopsis:       opendkim: rc.d script lacks reload command
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 02 13:15:00 +0000 2026
>Originator:     Taylor R Campbell
>Release:        current, 2026Q3, ...
>Organization:
The NetBSDKIM Reloader, Inc.
>Environment:
>Description:

	The opendkim(8) daemon (or `filter', as it calls itself in the
	man page, referring to its nature as a milter, or mail filter)
	responds to SIGUSR1 by reloading its configuration file (and,
	as verified by ktrace, key table and signing table):

>       Upon receiving SIGUSR1, if the filter was started with a configuration
>       file, it will be re-read and the new values used.  Note that any
>       command line overrides provided at startup time will be lost when this
>       is done.  Also, the following configuration file values (and their
>       corresponding command line items, if any) are not reloaded through this
>       process: AutoRestart (-A), AutoRestartCount, AutoRestartRate,
>       Background, MilterDebug, PidFile (-P), POPDBFile, Quarantine (-q),
>       QueryCache, Socket (-p), StrictTestMode, TestPublicKeys, UMask, UserID
>       (-u).  The filter does not automatically check the configuration file
>       for changes and reload.

	However, the rc.d script that pkgsrc ships doesn't support a
	`reload' command so that `service opendkim reload' works.

>How-To-Repeat:

	write a script that pokes opendkim(8) to reload its key table
	and signing table on rotation of dkim keys

>Fix:

	extra_commands="reload"
	sig_reload="USR1"




Home | Main Index | Thread Index | Old Index