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 1JHLtq-0001nn-Eb for garchives@archives.gentoo.org; Tue, 22 Jan 2008 16:22:58 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 12C7FE0CDC; Tue, 22 Jan 2008 16:19:19 +0000 (UTC) Received: from lbg2.evolone.org (unknown [198.145.28.177]) by pigeon.gentoo.org (Postfix) with ESMTP id D38D7E0CDC for ; Tue, 22 Jan 2008 16:19:18 +0000 (UTC) Received: by lbg2.evolone.org (Postfix, from userid 1000) id 479D91BE78; Tue, 22 Jan 2008 08:19:15 -0800 (PST) Date: Tue, 22 Jan 2008 08:19:15 -0800 From: Michael Higgins To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] cron and ssmtp Message-ID: <20080122081915.442a53cb@lbg2.evolone.org> In-Reply-To: <20080122154805.189f89f2@zaphod.digimed.co.uk> References: <20080122073646.099a5bea@lbg2.evolone.org> <20080122154805.189f89f2@zaphod.digimed.co.uk> Organization: Evolone X-Mailer: Claws Mail 3.2.0 (GTK+ 2.12.1; i586-pc-linux-gnu) 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: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Archives-Salt: d33aa6eb-fb0c-428a-8296-43bfad25e4db X-Archives-Hash: f4993de02183a159f010a35d1c4f4ab4 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