Skip site navigation (1)Skip section navigation (2)
Date:      29 Dec 2003 05:02:49 -0000
From:      Colin Percival <cperciva@daemonology.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   conf/60676: 150.clean-hoststat doesn't obey mailwrapper
Message-ID:  <20031229050249.3442.qmail@fafnir.daemonology.net>
Resent-Message-ID: <200312290510.hBT5ALc3012833@freefall.freebsd.org>

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

>Number:         60676
>Category:       conf
>Synopsis:       150.clean-hoststat doesn't obey mailwrapper
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 28 21:10:21 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Colin Percival
>Release:        FreeBSD 5.2-RC2 i386
>Organization:
>Environment:
System: FreeBSD fafnir.daemonology.net 5.2-RC2 FreeBSD 5.2-RC2 #0: Mon Dec 22 07:23:48 GMT 2003 root@wv1u.freebsd.org:/usr/obj/usr/src/sys/GENERIC i386

>Description:
etc/periodic/daily/150.clean-hoststat calls `sendmail -bh` and
`sendmail -bH`.  This is confusing to non-sendmail MTAs.  It
should call `hoststat -bh` and `purgestat -bH` instead.

>How-To-Repeat:
>Fix:

--- hoststat.diff begins here ---
--- etc/periodic/daily/150.clean-hoststat.orig	Mon Dec 29 04:51:38 2003
+++ etc/periodic/daily/150.clean-hoststat	Mon Dec 29 04:52:08 2003
@@ -14,13 +14,13 @@
 
 case "$daily_clean_hoststat_enable" in
     [Yy][Ee][Ss])
-	if [ -z "$(sendmail -bh 2>&1)" ]; then
+	if [ -z "$(hoststat -bh 2>&1)" ]; then
 	    rc=2
 	else
 	    echo ""
 	    echo "Removing stale entries from sendmail host status cache:"
 	    rc=0
-	    sendmail -bH || rc=1
+	    purgestat -bH || rc=1
 	fi;;
 
     *)  rc=0;;
--- hoststat.diff ends here ---


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



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