From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org)
	by nuthatch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-user+bounces-51014-garchives=archives.gentoo.org@gentoo.org>)
	id 1GO0Ly-0006Qt-JE
	for garchives@archives.gentoo.org; Thu, 14 Sep 2006 23:10:43 +0000
Received: from robin.gentoo.org (localhost [127.0.0.1])
	by robin.gentoo.org (8.13.8/8.13.6) with SMTP id k8EN9vWX032055;
	Thu, 14 Sep 2006 23:09:57 GMT
Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.170])
	by robin.gentoo.org (8.13.8/8.13.6) with ESMTP id k8EN2HtH007610
	for <gentoo-user@lists.gentoo.org>; Thu, 14 Sep 2006 23:02:17 GMT
Received: by ug-out-1314.google.com with SMTP id p27so111979ugc
        for <gentoo-user@lists.gentoo.org>; Thu, 14 Sep 2006 16:02:17 -0700 (PDT)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
        s=beta; d=gmail.com;
        h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references;
        b=IYpfKHc6zeNCivbGUFCcpJUqda0LYNmnWPvkZcGuTt3PwU4jFq8uoLvbtrooW6sEvsYV8dGL2s5qea/PU1c31pTFrpzvN+3v/JohxI3BvjRvlDayb0vFiY53UaBX5NsOfp/+rKWdz4V1liI/ubtFG7UrWmh7TkMESsmpdxbnxlg=
Received: by 10.67.24.13 with SMTP id b13mr5118992ugj;
        Thu, 14 Sep 2006 16:02:17 -0700 (PDT)
Received: by 10.66.245.16 with HTTP; Thu, 14 Sep 2006 16:02:16 -0700 (PDT)
Message-ID: <d18977190609141602h3b34c332kbd038504577f3e5a@mail.gmail.com>
Date: Thu, 14 Sep 2006 16:02:16 -0700
From: "David Grant" <davidgrant@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] vixie-cron and ssmtp
In-Reply-To: <20060914235141.2c918661@hactar.digimed.co.uk>
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
Content-Type: multipart/alternative; 
	boundary="----=_Part_205983_20443497.1158274936899"
References: <d18977190609141443i73b77b5flc6e03007f120884c@mail.gmail.com>
	 <20060914235141.2c918661@hactar.digimed.co.uk>
X-Archives-Salt: 53a48415-8287-43e9-99d2-de4ad8e2f519
X-Archives-Hash: 9b99d504492c9948be77abf0fd5af006

------=_Part_205983_20443497.1158274936899
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

On 9/14/06, Neil Bothwick <neil@digimed.co.uk> wrote:
>
> On Thu, 14 Sep 2006 14:43:30 -0700, David Grant wrote:
>
> > Cron is sending out an email for jobs run as user root, but not for cron
> > jobs run as my normal user? Yet the funny thing is, when cron runs jobs
> > as normal user, it still actually sends the mail to root
> > (see /etc/crontab).
>
> You seem to be contradicting yourself here; first you say user cron jobs
> don't send mail, then you say they send mail to root. Which is it?


Well I'm not contradicting myself intentionally... I should have been more
clear. I'll do a better job this time:

Cron is trying to send out an email for jobs run as user root to and
succeeding. Cron is also trying to send out an email for jobs run as a
normal user but it seems to fail at this. Both cron jobs (whether run as
user root or normal user) are both trying to send the email to the root
user.

Either way, the solution may be to set MAILTO in your user's crontab.


I could try this, although I as I said it seems like both jobs run as root
and normal user are both being sent to user root (according to the MAILTO)

-- 
David Grant
http://www.davidgrant.ca

------=_Part_205983_20443497.1158274936899
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

<br><br><div><span class="gmail_quote">On 9/14/06, <b class="gmail_sendername">Neil Bothwick</b> &lt;<a href="mailto:neil@digimed.co.uk">neil@digimed.co.uk</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Thu, 14 Sep 2006 14:43:30 -0700, David Grant wrote:<br><br>&gt; Cron is sending out an email for jobs run as user root, but not for cron<br>&gt; jobs run as my normal user? Yet the funny thing is, when cron runs jobs<br>
&gt; as normal user, it still actually sends the mail to root<br>&gt; (see /etc/crontab).<br><br>You seem to be contradicting yourself here; first you say user cron jobs<br>don't send mail, then you say they send mail to root. Which is it?
</blockquote><div><br>Well I'm not contradicting myself intentionally... I should have been more clear. I'll do a better job this time:<br><br>Cron is trying to send out an email for jobs run as user root to and succeeding. Cron is also trying to send out an email for jobs run as a normal user but it seems to fail at this. Both cron jobs (whether run as user root or normal user) are both trying to send the email to the root user.
<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Either way, the solution may be to set MAILTO in your user's crontab.</blockquote>
<div><br></div></div>I could try this, although I as I said it seems like both jobs run as root and normal user are both being sent to user root (according to the MAILTO)<br clear="all"><br>-- <br>David Grant<br><a href="http://www.davidgrant.ca">
http://www.davidgrant.ca</a>

------=_Part_205983_20443497.1158274936899--
-- 
gentoo-user@gentoo.org mailing list