Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Aug 2000 03:21:08 -0500 (CDT)
From:      Doug Lee <dgl@visi.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   conf/20960: Fix for "Mail queue: 1 request" in daily security message
Message-ID:  <200008310821.DAA09979@kirk.dsl.visi.com>

next in thread | raw e-mail | index | archive | help

>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<dir>?).



>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200008310821.DAA09979>