Your message dated Sat, 30 Nov 2019 23:08:31 +0000 with message-id <[email protected]> and subject line Bug#945280: fixed in opensmtpd 6.6.1p1-2 has caused the Debian Bug report #945280, regarding configurable config file name to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 945280: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=945280 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: opensmtpd Version: 6.6.1p1-1 Severity: wishlist Would it be possible to make the opensmtpd config file configurable? Some code in the init file like test -f /etc/default/opensmtpd.conf && source /etc/default/opensmtpd.conf : ${CONFIG:="/etc/smtpd.conf"} : start-stop-daemon --start -p "${PIDFILE}" --exec ${DAEMON} -- -f "${CONFIG}" : would do. See attachment. 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. Thanx in advance Harri#!/bin/sh # /etc/init.d/opensmtpd # # Written by Daniel Walrond <[email protected]> # and Ryan Kavanagh <[email protected]> ### BEGIN INIT INFO # Provides: opensmtpd mail-transport-agent # Required-Start: $local_fs $remote_fs $syslog $network # Required-Stop: $local_fs $remote_fs $syslog $network # Should-Start: postgresql mysql dovecot # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: opensmtpd Mail Transport Agent # Description: OpenSMTPD ### END INIT INFO # Do not "set -e"; /lib/lsb/init-functions included below may fail if "set -e" # is in effect and echoing status messages to the console fails. set -u BASE="smtpd" DAEMON="/usr/sbin/smtpd" CONTROL="/usr/sbin/smtpctl" PIDFILE="/run/${BASE}.pid" DESC="opensmtpd" test -f /etc/default/opensmtpd.conf && source /etc/default/opensmtpd.conf : ${CONFIG:="/etc/smtpd.conf"} test -x /usr/sbin/smtpd || exit 0 . /lib/lsb/init-functions smtpd_start() { if start-stop-daemon \ --start \ --pidfile "${PIDFILE}" \ --exec "${DAEMON}" \ -- -f "${CONFIG}"; then log_progress_msg "opensmtpd" return 0 else log_progress_msg "opensmtpd" return 1 fi } smtpd_stop() { if start-stop-daemon --stop --pidfile "${PIDFILE}" -- -f "${CONFIG}"; then log_progress_msg "opensmtpd" return 0 else log_progress_msg "opensmtpd" return 1 fi } smtpd_config_check() { # ${DAEMON} -n checks the config file's validity if "${DAEMON}" -f "${CONFIG}" -n >/dev/null 2>&1; then return 0 else log_end_msg 1 "${DAEMON}" -f "${CONFIG}" -n return 1 fi } case "$1" in start) log_daemon_msg "Starting MTA" # Although smtpd checks the config automatically on startup, # check it manually ourselves so that error messages are # printed after our "failed!" instead of between it and # "Starting MTA" if smtpd_config_check; then smtpd_start log_end_msg $? fi ;; stop) log_daemon_msg "Stopping MTA" smtpd_stop log_end_msg $? ;; restart) log_daemon_msg "Stopping MTA for restart" # If the check fails, the log_end_msg in smtpd_config_check # will output "failed!" for us. if smtpd_config_check; then smtpd_stop log_end_msg $? log_daemon_msg "Restarting MTA" smtpd_start log_end_msg $? fi ;; force-reload) log_daemon_msg "Stopping MTA for reload" smtpd_stop log_end_msg $? log_daemon_msg "Restarting MTA" smtpd_start log_end_msg $? ;; check) log_daemon_msg "Checking MTA configuration" if smtpd_config_check; then log_progress_msg "success" log_end_msg $? fi ;; status) status_of_proc "${DAEMON}" "MTA ${DESC}" ;; *) echo "Usage: $0 {start|stop|restart|force-reload|status|check}" exit 1 ;; esac exit 0 # vim:set sw=2:
--- End Message ---
--- Begin Message ---Source: opensmtpd Source-Version: 6.6.1p1-2 We believe that the bug you reported is fixed in the latest version of opensmtpd, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to [email protected], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Ryan Kavanagh <[email protected]> (supplier of updated opensmtpd package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing [email protected]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Format: 1.8 Date: Sat, 30 Nov 2019 13:48:40 -0500 Source: opensmtpd Architecture: source Version: 6.6.1p1-2 Distribution: unstable Urgency: medium Maintainer: Ryan Kavanagh <[email protected]> Changed-By: Ryan Kavanagh <[email protected]> Closes: 945280 Changes: opensmtpd (6.6.1p1-2) unstable; urgency=medium . * Allow custom config file paths via defaults file (Closes: #945280) Checksums-Sha1: b0ab1744b3736bbd0e0a2cc8563bb5e5d10f8ea1 3053 opensmtpd_6.6.1p1-2.dsc a7901401b63b9202c905818bcac999f831ea6fe2 25504 opensmtpd_6.6.1p1-2.debian.tar.xz bd36d9d025c5b0e45acd1c4ef4e1f13e826599ea 7344 opensmtpd_6.6.1p1-2_amd64.buildinfo Checksums-Sha256: 7d1b0e12ab079399a457704046eed77e92063fe2ef14a4da456fbce67ce62fe9 3053 opensmtpd_6.6.1p1-2.dsc ce6776b03d742583e55d6710ed72fd44604506258607b8716f86658717e97c33 25504 opensmtpd_6.6.1p1-2.debian.tar.xz 82e8fb3881043a398e35775cb3969a2c42ab657f32b05c1cb069ccf90d75e12f 7344 opensmtpd_6.6.1p1-2_amd64.buildinfo Files: 412ae7bbbfc5bf9934e65750037d4515 3053 mail optional opensmtpd_6.6.1p1-2.dsc f849c1dc6951ff326919be81b3fb9dfe 25504 mail optional opensmtpd_6.6.1p1-2.debian.tar.xz c8d2d9107b6186fabc661a13647139c3 7344 mail optional opensmtpd_6.6.1p1-2_amd64.buildinfo -----BEGIN PGP SIGNATURE----- iQVDBAEBCgAtFiEETkaVGe1ndzQmj72Vj3v4/EoRyXoFAl3i8CkPHHJha0BkZWJp YW4ub3JnAAoJEI97+PxKEcl66g0oAKF4lsUgS11DIHemfpIRGy3FaNAKwTtg0d2r tuCC9swEE7sXpzmf6tViLnv3vkAzUb1iFccsmlePGVG05YJFmchof+lUcv751KeT 8o14QRdAIid74Eo8Q0xUoQ3vIFyifHwvJbtUB+GFwhzB207SU50LxKC1kUfB8eM8 +GtH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