conf/60676: 150.clean-hoststat doesn't obey mailwrapper
Colin Percival
cperciva at daemonology.net
Sun Dec 28 21:10:36 PST 2003
>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 at 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:
More information about the freebsd-bugs
mailing list