Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Jul 2002 00:40:03 -0700 (PDT)
From:      Peter Pentchev <roam@ringlet.net>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/41012: /etc/periodic/daily/440.status-mailq assumes sendmail
Message-ID:  <200207290740.g6T7e31g091006@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/41012; it has been noted by GNATS.

From: Peter Pentchev <roam@ringlet.net>
To: Matthias Buelow <mkb@informatik.uni-wuerzburg.de>
Cc: FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: bin/41012: /etc/periodic/daily/440.status-mailq assumes sendmail
Date: Mon, 29 Jul 2002 10:29:48 +0300

 On Fri, Jul 26, 2002 at 06:52:37PM +0200, Matthias Buelow wrote:
 > 
 > >Number:         41012
 > >Category:       bin
 > >Synopsis:       /etc/periodic/daily/440.status-mailq assumes sendmail
 > >Originator:     Matthias Buelow
 > >Release:        FreeBSD 4.6-STABLE i386
 > >Organization:
 > >Environment:
 > System: FreeBSD reiher.informatik.uni-wuerzburg.de 4.6-STABLE FreeBSD 4.6-STABLE #0: Sun Jul 7 02:24:38 CEST 2002 mkb@reiher.informatik.uni-wuerzburg.de:/usr/src/sys/compile/REIHER i386
 > 
 > >Description:
 > 
 > The 440.status-mailq daily periodic script seems to assume sendmail
 > is being used as the mta.
 > I've got postfix running (from ports) and /usr/bin/mailq is routed
 > via mailer.conf to the postfix "sendmail" binary, which doesn't
 > support the following (quoted from script):
 > 
 > ...
 >                     rc=$(case "$daily_status_mailq_shorten" in
 >                         [Yy][Ee][Ss])
 >                             mailq -Ac |
 >                                 perl -ne  'print if /^\s+\S+@/' |
 [snip]
 > Make the system scripts not assume that sendmail is being used.
 
 I believe that it would not be feasible, if at all possible, for the
 system periodic scripts to support the correct syntax for various
 mailers' commands.  An easy workaround would be for you to set
 'daily_status_mailq_enable="NO"' in your /etc/periodic.conf file (it
 might not yet exist, you may have to create it), then copy the system
 script to a different location and either use it as a local daily script
 (as indicated by the daily_local variable in the periodic.conf file), or
 create a different local daily script which invokes that.
 
 You can find a list of all the variables used to control periodic(8)'s
 behavior in the /etc/defaults/periodic.conf file; just as with
 /etc/defaults/rc.conf, you are *not* supposed to modify that file
 directly, rather redefine all variables that you wish to override in the
 /etc/periodic.conf file.
 
 G'luck,
 Peter
 
 -- 
 Peter Pentchev	roam@ringlet.net	roam@FreeBSD.org
 PGP key:	http://people.FreeBSD.org/~roam/roam.key.asc
 Key fingerprint	FDBA FD79 C26F 3C51 C95E  DF9E ED18 B68D 1619 4553
 This sentence claims to be an Epimenides paradox, but it is lying.

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?200207290740.g6T7e31g091006>