From chris@claimlynx.com  Fri Nov 22 09:02:30 2002
Return-Path: <chris@claimlynx.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 1E51B37B401
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 22 Nov 2002 09:02:30 -0800 (PST)
Received: from puma.claimlynx.com (puma.claimlynx.com [208.200.183.84])
	by mx1.FreeBSD.org (Postfix) with ESMTP id BDB6743E6E
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 22 Nov 2002 09:02:29 -0800 (PST)
	(envelope-from chris@claimlynx.com)
Received: by puma.claimlynx.com (Postfix, from userid 105)
	id 1D7BBD975; Fri, 22 Nov 2002 11:02:24 -0600 (CST)
Message-Id: <20021122170224.1D7BBD975@puma.claimlynx.com>
Date: Fri, 22 Nov 2002 11:02:24 -0600 (CST)
From: Chris Johnson <chris@claimlynx.com>
Reply-To: Chris Johnson <chris@claimlynx.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: MAILTO environment variable in root crontab does not work
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         45593
>Category:       bin
>Synopsis:       MAILTO environment variable in root crontab does not work
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov 22 09:10:01 PST 2002
>Closed-Date:    Fri Jan 24 23:21:56 PST 2003
>Last-Modified:  Fri Jan 24 23:21:56 PST 2003
>Originator:     Chris Johnson
>Release:        FreeBSD 4.6.2-RELEASE i386
>Organization:
ClaimLynx, Inc.
>Environment:
System: FreeBSD puma.claimlynx.com 4.6.2-RELEASE FreeBSD 4.6.2-RELEASE #0: Sat Aug 31 16:05:38 CDT 2002 wmo@puma.claimlynx.com:/usr/src/sys/compile/PUMA i386


	
>Description:
	MAILTO can be used in crontab(5) files to redirect the default cron job mail behavior.  It works fine for all users except for root, where it has no effect at all.
>How-To-Repeat:
	Add a MAILTO=someotheraddress line to /etc/crontab to modify root's crontab.  Note that cron job mail is still sent to the same address as without the MAILTO line.
>Fix:

	No known work around.


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: dougb 
State-Changed-When: Thu Jan 23 03:17:54 PST 2003 
State-Changed-Why:  

This works fine for me. Can you confirm that a crontab that 
looks like this: 

MAILTO=some@valid.address 
* * * * * /bin/ls / 

Works for you? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=45593 
State-Changed-From-To: feedback->closed 
State-Changed-By: dougb 
State-Changed-When: Fri Jan 24 23:20:30 PST 2003 
State-Changed-Why:  

MAILTO definitely works in both /etc/crontab, and in user crontabs. 
You have something misconfigured on your system. If you can't figure 
out what it is, send e-mail to freebsd-questions@freebsd.org and 
describe the details of what you're doing. 

Good luck, 

Doug 

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