Your message dated Sat, 13 Jan 2018 23:04:20 +0000 with message-id <[email protected]> and subject line Bug#887064: fixed in sendmail 8.15.2-10 has caused the Debian Bug report #887064, regarding [sendmail] persistent queue runners in split daemon mode missed by /etc/init.d/sendmail 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.) -- 887064: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=887064 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: sendmail-bin Version: 8.15.2-8 Tags: patch When sendmail is configured with persistent queue runners *and* the queue runner control process is separate from the main MTA daemon, /etc/init.d/sendmail fails to find the queue runner control process and deletes the pid file after startup. This results in the queue runners not being terminated at shutdown or restart. Here's how to reproduce this behaviour: Activate persistent queue runners e.g. by setting QUEUE_INTERVAL="p1m"; in /etc/mail/sendmail.conf Make sure that "split daemon" mode is active, i.e. that the MTA listener daemon is a separate process from queue runner control (otherwise the bug does not show). Among other situations, this is the case when QUEUE_PARMS is different from DAEMON_PARMS. For debugging purposes, just set some option such as QUEUE_PARMS="-O QueueFactor=600000"; in /etc/mail/sendmail.conf Run sendmailconfig; /etc/init.d/sendmail restart At this point, the MTA listener daemon and queue control pids should be recorded in /run/sendmail/mta/sendmail.pid and /run/sendmail/mta/queue.pid, respectively. However, /etc/init.d/sendmail has checked for the queue control process after startup, was unable to find it, and has deleted /run/sendmail/mta/queue.pid. Run /etc/init.d/sendmail stop At this point, there should be no more sendmail processes; in fact, both the queue runner control process and all configured queue runners are still present. I believe the problem results from Debian calling the sendmail binary as "sendmail-mta" while /etc/init.d/sendmail checks for a process with an executable called "sendmail". Patching /etc/init.d/sendmail to check for sendmail-mta in this particular case (split-daemon mode and persistent queue runners) seems to fix the problem for me. Other ps invocations in /etc/init.d/sendmail do not select by binary names and are thus not affected. Here's a patch: --- etc/init.d/sendmail.orig 2016-12-08 17:43:49.000000000 +0000 +++ etc/init.d/sendmail 2018-01-13 08:06:45.350670214 +0000 @@ -289,7 +289,7 @@ if [ -z "$qp" ]; then chmod 0664 $MTAQ_PIDFILE; else - qc=`ps --no-headers -fCsendmail \ + qc=`ps --no-headers -fCsendmail-mta \ | egrep -e 'Queue control' \ | awk '{print $2}'`; if [ -z "$qc" ]; then
--- End Message ---
--- Begin Message ---Source: sendmail Source-Version: 8.15.2-10 We believe that the bug you reported is fixed in the latest version of sendmail, 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. Andreas Beckmann <[email protected]> (supplier of updated sendmail 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: SHA256 Format: 1.8 Date: Sat, 13 Jan 2018 23:43:05 +0100 Source: sendmail Binary: sendmail-bin rmail sensible-mda libmilter1.0.1 libmilter-dev sendmail-doc sendmail sendmail-base sendmail-cf Architecture: source Version: 8.15.2-10 Distribution: unstable Urgency: medium Maintainer: Debian QA Group <[email protected]> Changed-By: Andreas Beckmann <[email protected]> Description: libmilter-dev - Sendmail Mail Filter API (Milter) (development files) libmilter1.0.1 - Sendmail Mail Filter API (Milter) rmail - MTA->UUCP remote mail handler sendmail - powerful, efficient, and scalable Mail Transport Agent (metapacka sendmail-base - powerful, efficient, and scalable Mail Transport Agent (arch inde sendmail-bin - powerful, efficient, and scalable Mail Transport Agent sendmail-cf - powerful, efficient, and scalable Mail Transport Agent (config ma sendmail-doc - powerful, efficient, and scalable Mail Transport Agent (documenta sensible-mda - Mail Delivery Agent wrapper Closes: 887064 Changes: sendmail (8.15.2-10) unstable; urgency=medium . * QA upload. * debian/*: Clean up trailing whitespace. * Update to Standards-Version: 4.1.3. * Set Rules-Requires-Root: binary-targets. * Use dpkg makefile snippets instead of manual changelog parsing. * Switch to debhelper compat level 11. * sendmail-doc: Leave the docs in the /u/s/d/sendmail-doc/ directory. * Drop symlink-to-dir transition code predating wheezy. * connect-from-null.patch: New, fix "NOQUEUE: connect from (null)", thanks to Michael Grant and Claus Assmann. * Fix finding the queue runner control process in "split daemon" mode, thanks to Marc Andre Selig. (Closes: #887064) Checksums-Sha1: 583bd0d1227a2f9c390e1ef67e835bc8d9070087 2594 sendmail_8.15.2-10.dsc f89092203b035e63615abd3e0948258267b7fc72 405448 sendmail_8.15.2-10.debian.tar.xz 8dae8db70cda5f7bd9ea672dbdef1a7f42bb4d56 6002 sendmail_8.15.2-10_source.buildinfo Checksums-Sha256: b1356649cfb584ff9d571b386fc3ff92d85a30ae4d68d66cbf28a197cc319820 2594 sendmail_8.15.2-10.dsc a16d0921ca9f1fcb87c6449dc0639dfd531c91a014b637b3f07302097858e07a 405448 sendmail_8.15.2-10.debian.tar.xz 6b67110cd4a403b4f9821f7fafc7a6117d1a385365d16d2eb4ebb0c3362965d2 6002 sendmail_8.15.2-10_source.buildinfo Files: bb2bd89c501cf962b513c903d4b7940f 2594 mail optional sendmail_8.15.2-10.dsc f8b7669a4a70d3ad4484f9d5d636b5d5 405448 mail optional sendmail_8.15.2-10.debian.tar.xz d7ed64a660410ac4336c481580a74e84 6002 mail optional sendmail_8.15.2-10_source.buildinfo -----BEGIN PGP SIGNATURE----- iQJEBAEBCAAuFiEE6/MKMKjZxjvaRMaUX7M/k1np7QgFAlpajVEQHGFuYmVAZGVi aWFuLm9yZwAKCRBfsz+TWentCAttEACUGv8ShwFSlSW4UaAuqRe8a6WCvsQEqy26 Ea48MnoNHWCWjw7dJ2i33fLZ/bW63rbaLw1KcFic6JMuv6au/L41pgjVMo14mGKJ HyROmukdTuac0TPPQqT3yZ0JuIpIoiSGyM0L0wP7/Mkz3uLkuXF3Ppi+eC91EB7D EUedTC0ATlFr57gLcJQeeKHH6gWMVXY/iQ1A71Yjub9L1D3orTvPeeofbkZGw77w uFmKhLvB5IPrp2rJuNcE8hAq/NUt1xZBm0LPuABoNNEQc7ZUGKXvCMuqnr8vevHF lzgKit02MhN0sNxLZ/UVHtmiXvllqVvrl8EXnfMnK0qFsZx3SxfTcFXteODVrTCE mLB8BOINq6QcaE8XI5aCn1uBC7Ss1PGIg8Ti1ZnFzXhDYoYjRvB60FqXsuETid/K N0EoH4z36EH2RnXe2rau/df5YDz6pas1trFzoXZ5JGe6U1G/L1gi1gIjbas3wnAn HV1Kj/MQQafxCC2X9uWT2HXfSrthdLuWtfCdkEx3ALD40GUKpcF/GrXSyrGO3xlU tT50tO4IABFkML97S1sKlYkwMA6ndMMX6jHJcVslg/dSW95SBXMJ8CvxMXtyf6sJ U8ZHzJSPwVXw0MH6JScTFpSoQRDjVcFSC3rHuRu6mZCi5ZHbpvKhPsfzBOHXDYdk zg7aMNKwFw== =JMNO -----END PGP SIGNATURE-----
--- End Message ---

