From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1JHM3G-0002Fa-5p for garchives@archives.gentoo.org; Tue, 22 Jan 2008 16:32:42 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F258CE0C7D; Tue, 22 Jan 2008 16:32:36 +0000 (UTC) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.228]) by pigeon.gentoo.org (Postfix) with ESMTP id C13B8E0CB1 for ; Tue, 22 Jan 2008 16:32:36 +0000 (UTC) Received: by wr-out-0506.google.com with SMTP id c49so893452wra.1 for ; Tue, 22 Jan 2008 08:32:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=ogp1yAGJcsUynliLMfC3gy9dt1GMQ2W5E/iAzxYs0Jg=; b=rYWN4Vr2IDV22oFM1RcgmTmFP6Y5c21dipP0kTAzugmLyc7JBUv8Az7RZrhSuOEbzWGbjGj97nY50p2OXXsAs0zbIOytionB51/Z6T+u8aDn2FBnIcRUIG7Bx48MiAmJaOHUJKwSWRLgCeLOnfzp7FGrzgPLk9XY9al6RRw6Pvc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=IdaMVGjJaT8+CNpAQ/YQbOWjGdwFAWBibvfGqhtkkgydO5xt1PdeZCY45A4Z54UzKwDC33LTbP1FRlC8sMyTt/9vz7BTk6Osj0AlvvPYdOdM05s19BC5GiUd41N/wEz5gdYWlHbd9L94ZjbsCg4fBcN69g0/mqEQ4CG9A7AKA80= Received: by 10.142.78.10 with SMTP id a10mr2154890wfb.37.1201019555362; Tue, 22 Jan 2008 08:32:35 -0800 (PST) Received: by 10.142.218.3 with HTTP; Tue, 22 Jan 2008 08:32:35 -0800 (PST) Message-ID: <9ed554210801220832h28a45cadgaab5d091d1e41009@mail.gmail.com> Date: Tue, 22 Jan 2008 11:32:35 -0500 From: "Greg Bowser" To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] cron and ssmtp In-Reply-To: <20080122081915.442a53cb@lbg2.evolone.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_14309_19199276.1201019555385" References: <20080122073646.099a5bea@lbg2.evolone.org> <20080122154805.189f89f2@zaphod.digimed.co.uk> <20080122081915.442a53cb@lbg2.evolone.org> X-Archives-Salt: dc4a48f3-651d-4ef7-b943-e87787f11e5a X-Archives-Hash: 469bbd9bdcc9f5d6e2b2fe1feedde6a3 ------=_Part_14309_19199276.1201019555385 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I'm using ssmtp to send mail on several boxes. One of the boxes is running a real MTA and acts as the hub for the other boxes. Check /var/log/mail*. I'm assuming you set mailhub=foo in your ssmtp.conf, which means you're using the box foo to relay your mail. It's possible that the hub is refusing to send the mail. That would look something like: Jan 17 15:44:59 starscream postfix/smtp[8356]: 24E2D4AC9: to=< topnotcher@gmail.com>, relay=xxxxxxxx:25, delay=15, delays=0.1/0.01/15/0.1, dsn=5.7.1, status=bounced (host xxxxxxxxxxx said: 550 5.7.1 < topnotcher@gmail.com>... Relaying denied (in reply to RCPT TO command)) At any rate, if there's an error anywhere along the way, it should show up in one of the mail logs. On Jan 22, 2008 11:19 AM, Michael Higgins wrote: > On Tue, 22 Jan 2008 15:48:05 +0000 > Neil Bothwick wrote: > > > On Tue, 22 Jan 2008 07:36:46 -0800, Michael Higgins wrote: > > > > > Is anyone using cron (vixie-cron) without a real MTA and getting > > > emails? The test is simple, just "echo hello world". I expect this > > > to come as an email to the address I put in MAILTO="". But it > > > doesn't. > > > > It works on several boxes here. Is ssmtp working correctly? Try > > > > echo -e "To: Me\nSubject: ssmtp test\n\nssmtp test" | /usr/sbin/ssmtp > > youraddress > > > > If it fails, check /etc/ssmtp/ssmtp.conf, particularly the mailhub > > setting. > > No fail. Worked like a charm... > > I edit my crontab like sudo crontab -u mykhyggz -e > > At the top, is MAILTO="email@isp.com" > > My user belongs to cron group: groups > wheel cron users mykhyggz > > Cron is running: top bn1|grep cron > 5068 root 18 0 3072 692 552 S 0.0 0.7 0:00.00 cron > > 15 08 * * * echo hello world > > should have sent me an email with 'hello world' in the body at 8:15, or > so I believe, but didn't. > > What else can I check? > > Cheers, > > -- > |\ /| | | ~ ~ > | \/ | |---| `|` ? > | |ichael | |iggins \^ / > michael.higgins[at]evolone[dot]org > -- > gentoo-user@lists.gentoo.org mailing list > > ------=_Part_14309_19199276.1201019555385 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I'm using ssmtp to send mail on several boxes. One of the boxes is running a real MTA and acts as the hub for the other boxes.

Check /var/log/mail*.

I'm assuming you set mailhub=foo in your ssmtp.conf , which means you're using the box foo to relay your mail. It's possible that the hub is refusing to send the mail. That would look something like:

Jan 17 15:44:59 starscream postfix/smtp[8356]: 24E2D4AC9: to=< topnotcher@gmail.com>, relay=xxxxxxxx:25, delay=15, delays=0.1/0.01/15/0.1, dsn=5.7.1, status=bounced (host xxxxxxxxxxx said: 550 5.7.1 < topnotcher@gmail.com>... Relaying denied (in reply to RCPT TO command))

At any rate, if there's an error anywhere along the way, it should show up in one of the mail logs.

On Jan 22, 2008 11:19 AM, Michael Higgins <linux@evolone.org> wrote:
On Tue, 22 Jan 2008 15:48:05 +0000
Neil Bothwick <neil@digimed.co.uk> wrote:

> On Tue, 22 Jan 2008 07:36:46 -0800, Michael Higgins wrote:
>
> > Is anyone using cron (vixie-cron) without a real MTA and getting
> > emails? The test is simple, just "echo hello world". I expect this
> > to come as an email to the address I put in MAILTO="". But it
> > doesn't.
>
> It works on several boxes here. Is ssmtp working correctly? Try
>
> echo -e "To: Me\nSubject: ssmtp test\n\nssmtp test" | /usr/sbin/ssmtp
> youraddress
>
> If it fails, check /etc/ssmtp/ssmtp.conf, particularly the mailhub
> setting.

No fail. Worked like a charm...

I edit my crontab like sudo crontab -u mykhyggz -e

At the top, is MAILTO=" email@isp.com"

My user belongs to cron group: groups
wheel cron users mykhyggz

Cron is running: top bn1|grep cron
 5068 root      18   0  3072  692  552 S  0.0   0.7   0:00.00 cron

15        08      *              *       *            echo hello world

should have sent me an email with 'hello world' in the body at 8:15, or
so I believe, but didn't.

What else can I check?

Cheers,

--
 |\  /|        |   |          ~ ~
 | \/ |        |---|          `|` ?
 |    |ichael  |   |iggins    \^ /
 michael.higgins[at]evolone[dot]org
--
gentoo-user@lists.gentoo.org mailing list


------=_Part_14309_19199276.1201019555385-- -- gentoo-user@lists.gentoo.org mailing list