From owner-freebsd-bugs Thu Aug 31 1:30: 6 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 8C14337B423 for ; Thu, 31 Aug 2000 01:30:00 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id BAA30251; Thu, 31 Aug 2000 01:30:00 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from kirk.dsl.visi.com (kirk.dsl.visi.com [209.98.248.172]) by hub.freebsd.org (Postfix) with ESMTP id 8691D37B422 for ; Thu, 31 Aug 2000 01:21:09 -0700 (PDT) Received: (from dgl@localhost) by kirk.dsl.visi.com (8.9.3/8.9.3) id DAA09979; Thu, 31 Aug 2000 03:21:08 -0500 (CDT) (envelope-from dgl) Message-Id: <200008310821.DAA09979@kirk.dsl.visi.com> Date: Thu, 31 Aug 2000 03:21:08 -0500 (CDT) From: Doug Lee Reply-To: dgl@visi.com To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: conf/20960: Fix for "Mail queue: 1 request" in daily security message Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 20960 >Category: conf >Synopsis: Fix for "Mail queue: 1 request" in daily security message >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Aug 31 01:30:00 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Doug Lee >Release: FreeBSD 4.1-STABLE i386 (and others past) >Organization: >Environment: >Description: The daily maintenance routines (run from `periodic daily' from crontab) nearly always report one message in the mail queue. This is because /etc/crontab pipes the output of `periodic daily' into `sendmail root' and thus creates a queue entry which exists while `periodic daily' runs. >How-To-Repeat: Just watch the reports. :-) >Fix: Two suggestions. (1) add `-oQ/tmp' to the sendmail call in /etc/crontab on the `periodic daily' line. (2) Redirect the output of `periodic daily' into a temporary file explicitly, then sendmail from the file and delete it, all on the same crontab line. Both solutions cause the much more pleasing "Mail queue is empty" to show up in the daily mailings. I prefer the first approach just because it's shorter, but users of mailers other than sendmail might have a different thought on that (do Postfix and other alternatives support -oQ?). >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message