From owner-freebsd-questions@FreeBSD.ORG Tue Mar 3 23:09:45 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 380C01065674 for ; Tue, 3 Mar 2009 23:09:45 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from mail.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id F1B9B8FC17 for ; Tue, 3 Mar 2009 23:09:44 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from localhost (mail.lan.rachie.is-a-geek.net [192.168.2.101]) by mail.rachie.is-a-geek.net (Postfix) with ESMTP id BB940AFC1FE; Tue, 3 Mar 2009 14:09:43 -0900 (AKST) From: Mel To: freebsd-questions@freebsd.org Date: Tue, 3 Mar 2009 14:09:43 -0900 User-Agent: KMail/1.9.10 References: <27ade5280903011124v4d6d9fdq2071d5ab44a37ca9@mail.gmail.com> <49ADA685.9060702@pp.dyndns.biz> <27ade5280903031444i3df88842ub6087e1e3855b4c1@mail.gmail.com> In-Reply-To: <27ade5280903031444i3df88842ub6087e1e3855b4c1@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200903031409.43484.fbsd.questions@rachie.is-a-geek.net> Cc: Morgan =?utf-8?q?Wesstr=C3=B6m?= , APseudoUtopia Subject: Re: Cron Not Sending 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: Tue, 03 Mar 2009 23:09:45 -0000 On Tuesday 03 March 2009 13:44:34 APseudoUtopia wrote: > On Tue, Mar 3, 2009 at 4:52 PM, Morgan Wesstr=C3=B6m > > wrote: > > Glen Barber wrote: > >> On Tue, Mar 3, 2009 at 4:10 PM, APseudoUtopia =20 wrote: > >>> Thanks for the tips. I've put the following line in my normal user > >>> account's crontab (This account does have a shell, it's one I use on a > >>> daily basis): > >>> > >>> SHELL=3D/bin/sh > >>> MAILTO=3Dmy_email_account@gmail.com > >>> * =C2=A0 =C2=A0 =C2=A0 * =C2=A0 =C2=A0 =C2=A0 * =C2=A0 =C2=A0 =C2=A0 = * =C2=A0 =C2=A0 =C2=A0 * =C2=A0 =C2=A0 =C2=A0 /sbin/ping -c4 localhost > >>> > >>> I'm getting no emails at all. In /var/log/maillog, I'm getting the > >>> following output: > >>> > >>> Mar =C2=A03 21:10:00 domain sendmail[86797]: n23LA0td086797: from=3Dw= ww, > >>> size=3D0, class=3D0, nrcpts=3D0, > >>> msgid=3D<200903032110.n23LA0td086797@subdomain.domain.tld>, > >>> relay=3Dwww@localhost > > > > Isn't "www@localhost" a very weird hostname for a relay? Can you really > > resolve that into an IP address? > > /Morgan > > Hm, I'm not sure where it's getting that from. The MAILTO variable is > set in the crontab, so it shouldn't be going to or relaying through > localhost at all, right? It should go directly to gmail's servers? If grep 'n23LA0td086797' /var/log/maillog only yields one entry, then=20 something is wrong with your email setup. There should at least be one more= =20 entry from the spooler to pickup final destination. And yes, the=20 relay 'www@localhost' seems odd, but since I gave up sendmail for postfix=20 years ago, I'm not current with how it spits things into syslog. =2D-=20 Mel Problem with today's modular software: they start with the modules and never get to the software part.