Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Sep 2011 16:48:36 -0500 (CDT)
From:      Robert Bonomi <bonomi@mail.r-bonomi.com>
To:        questions@freebsd.org
Subject:   Re: "at" command and mail
Message-ID:  <201109032148.p83LmaAa011095@mail.r-bonomi.com>
In-Reply-To: <201109032142.PAA27491@lariat.net>

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

> Date: Sat, 03 Sep 2011 15:42:20 -0600
> To: questions@freebsd.org
> From: Brett Glass <brett@lariat.net>
> 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.



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