From owner-freebsd-questions@FreeBSD.ORG Wed Mar 4 01:19:06 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 AF59D106566B for ; Wed, 4 Mar 2009 01:19:06 +0000 (UTC) (envelope-from apseudoutopia@gmail.com) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.169]) by mx1.freebsd.org (Postfix) with ESMTP id 7FF808FC13 for ; Wed, 4 Mar 2009 01:19:06 +0000 (UTC) (envelope-from apseudoutopia@gmail.com) Received: by wf-out-1314.google.com with SMTP id 27so3142673wfd.7 for ; Tue, 03 Mar 2009 17:19:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=I6k7Q+2N1JpJZz4V9JS+PXK1v+hpK/3i01dXfCmIVVc=; b=Zp/wfpiB/3aPBFC+dc11ClUNjl/MlFqpwiPQX93f8NC9oUrAmGZsY45U6u61oYXvfQ uJZbjK7+8hCPTH3xWci/7a/R5kRbwhDAGo7uXeKTmldPMFD89LMmoenR/SS55IwQRysa dZ8bgywlGAu3kvtNxgd/+F/XCCuGzS6TaNy/I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=I6/mOWLyRtKj1NJRSJ10a3BXF3Oi01mab7W+pBiPomPsepquQBWGWJ7spvJCFpsAxg h093q+qCR2wZV6pHQkj6VFUcM/ZWCzNTDDaKi/E5ycXTSFk1KbUU83bDMiPblFwAC/OS QCZB00aY72BjF88LzsNc0eCxh7T2QNL/oQCh0= MIME-Version: 1.0 Received: by 10.142.58.5 with SMTP id g5mr3899741wfa.170.1236129546125; Tue, 03 Mar 2009 17:19:06 -0800 (PST) In-Reply-To: <49ADC1CA.5090703@pp.dyndns.biz> References: <27ade5280903011124v4d6d9fdq2071d5ab44a37ca9@mail.gmail.com> <49ADA685.9060702@pp.dyndns.biz> <27ade5280903031444i3df88842ub6087e1e3855b4c1@mail.gmail.com> <200903031409.43484.fbsd.questions@rachie.is-a-geek.net> <49ADC1CA.5090703@pp.dyndns.biz> Date: Tue, 3 Mar 2009 20:19:06 -0500 Message-ID: <27ade5280903031719j60679b72r23e3f8fa41a9e86e@mail.gmail.com> From: APseudoUtopia To: =?UTF-8?Q?Morgan_Wesstr=C3=B6m?= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org 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: Wed, 04 Mar 2009 01:19:06 -0000 On Tue, Mar 3, 2009 at 6:48 PM, Morgan Wesstr=C3=B6m wrote: >>>>>> relay=3Dwww@localhost >>>> Isn't "www@localhost" a very weird hostname for a relay? Can you reall= y >>>> 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 >> something is wrong with your email setup. There should at least be one m= ore >> entry from the spooler to pickup final destination. And yes, the >> relay 'www@localhost' seems odd, but since I gave up sendmail for postfi= x >> years ago, I'm not current with how it spits things into syslog. >> > > In my case I only see either "local" there or my smart host as defined > in /var/mail/{hostname}.mc > Can you provide a "diff -u" between /etc/mail/freebsd.mc and > /etc/mail/{hostname}.mc ? > > /Morgan I'd switch over to postfix, but I'm only using this to send output from cron and the daily security run scripts. I don't receive any mail over the network, so I think it'd be pointless to go through the effort of switching and configuring another MTA. Here's the diff. I figured it was too long to include in the email (word wrap will make it hard to read :-P) http://pastebin.ca/1352338 Here's the full contents of /etc/mail/{hostname}.mc http://pastebin.ca/1352340 Thanks for the help.