From owner-freebsd-questions@FreeBSD.ORG Sat Sep 3 21:49:14 2011 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 799EF106564A for ; Sat, 3 Sep 2011 21:49:14 +0000 (UTC) (envelope-from bonomi@mail.r-bonomi.com) Received: from mail.r-bonomi.com (mx-out.r-bonomi.com [204.87.227.120]) by mx1.freebsd.org (Postfix) with ESMTP id 310688FC12 for ; Sat, 3 Sep 2011 21:49:13 +0000 (UTC) Received: (from bonomi@localhost) by mail.r-bonomi.com (8.14.4/rdb1) id p83LmaAa011095 for questions@freebsd.org; Sat, 3 Sep 2011 16:48:36 -0500 (CDT) Date: Sat, 3 Sep 2011 16:48:36 -0500 (CDT) From: Robert Bonomi Message-Id: <201109032148.p83LmaAa011095@mail.r-bonomi.com> To: questions@freebsd.org In-Reply-To: <201109032142.PAA27491@lariat.net> Cc: Subject: Re: "at" command and mail X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Sep 2011 21:49:14 -0000 > Date: Sat, 03 Sep 2011 15:42:20 -0600 > To: questions@freebsd.org > From: Brett Glass > Subject: Re: "at" command and mail > > At 02:35 PM 9/3/2011, Robert Bonomi wrote: > > >Is 'atrun' actually sending the mails or is 'cron' doing it? 'atrun' is > >invoked by 'cron', from a specification in the system crontab file. > > /usr/src/libexec/atrun/atrun.c shows an invocation of sendmail(8) directly > from atrun(8). Hard to question that. I like somebody with a truely authoritative answer! This also provides an 'obvious' solution to the OP's problem. Make a 'sendmail' substitute -- a simple script, say, that does what you want. the command output will be on stdin, and the 'user' will be a parameter to the script.