From dgl@kirk.dsl.visi.com  Thu Aug 31 01:21:10 2000
Return-Path: <dgl@kirk.dsl.visi.com>
Received: from kirk.dsl.visi.com (kirk.dsl.visi.com [209.98.248.172])
	by hub.freebsd.org (Postfix) with ESMTP id 8691D37B422
	for <FreeBSD-gnats-submit@freebsd.org>; 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 <dgl@visi.com>
Sender: dgl@kirk.dsl.visi.com
Reply-To: dgl@visi.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: Fix for "Mail queue: 1 request" in daily security message
X-Send-Pr-Version: 3.2

>Number:         20960
>Category:       conf
>Synopsis:       Fix for "Mail queue: 1 request" in daily security message
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    brian
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 31 01:30:00 PDT 2000
>Closed-Date:    Fri Sep 1 00:37:04 PDT 2000
>Last-Modified:  Fri Sep 01 00:38:36 PDT 2000
>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<dir>?).



>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->brian 
Responsible-Changed-By: sheldonh 
Responsible-Changed-When: Thu Aug 31 03:21:06 PDT 2000 
Responsible-Changed-Why:  
Over to the maintainer of the periodic scripts. 

Brian, my gut feeling is that there's nothing wrong with 
showing a message in the queue if there is a message in  
the queue. :-) 

However, I understand the point.  If you agree in principle 
(your agreement being important since you're the maintainer) 
I'll do the work for you and submit patches.  Just let me 
know how you want to handle this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=20960 
State-Changed-From-To: open->closed 
State-Changed-By: sheldonh 
State-Changed-When: Fri Sep 1 00:37:04 PDT 2000 
State-Changed-Why:  
Nobody feels strongly enough to bother, at this point. 
Calling this a problem is a stretch.  Werner Heisenberg 
would have something to say, no doubt. ;-) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=20960 
>Unformatted:
