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 1LKHe7-0000rv-5U for garchives@archives.gentoo.org; Tue, 06 Jan 2009 19:31:23 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5490CE046D; Tue, 6 Jan 2009 19:31:21 +0000 (UTC) Received: from sentinel.math.Princeton.EDU (sentinel.math.Princeton.EDU [128.112.16.31]) by pigeon.gentoo.org (Postfix) with ESMTP id 35391E046D for ; Tue, 6 Jan 2009 19:31:21 +0000 (UTC) Received: from sentinel.math.Princeton.EDU (localhost.localdomain [127.0.0.1]) by sentinel.math.Princeton.EDU (Postfix) with ESMTP id E2C072980B1 for ; Tue, 6 Jan 2009 14:31:20 -0500 (EST) X-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,SPF_HELO_SOFTFAIL X-Spam-Check-By: sentinel.math.Princeton.EDU Received: from localhost.localdomain (HELO sentinel.math.Princeton.EDU) (127.0.0.1) by sentinel.math.Princeton.EDU (qpsmtpd/0.32) with ESMTP; Tue, 06 Jan 2009 14:31:16 -0500 Received: from math.Princeton.EDU (math.Princeton.EDU [128.112.18.16]) by sentinel.math.Princeton.EDU (Postfix) with ESMTP for ; Tue, 6 Jan 2009 14:31:16 -0500 (EST) Received: from math.Princeton.EDU (localhost.localdomain [127.0.0.1]) by math.Princeton.EDU (8.13.8/8.13.8) with ESMTP id n06JVGO2008975 for ; Tue, 6 Jan 2009 14:31:16 -0500 Received: (from wwong@localhost) by math.Princeton.EDU (8.13.8/8.13.8/Submit) id n06JVGta008972 for gentoo-user@lists.gentoo.org; Tue, 6 Jan 2009 14:31:16 -0500 X-Authentication-Warning: math.Princeton.EDU: wwong set sender to wwong@princeton.edu using -f Date: Tue, 6 Jan 2009 14:31:16 -0500 From: Willie Wong To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] weird cron mail problem Message-ID: <20090106193116.GA8188@math.princeton.edu> References: <20090105164240.GA4573@ca.inter.net> <20090105170635.GA27047@math.princeton.edu> <20090105180445.GB4573@ca.inter.net> <20090105181825.GB8629@princeton.edu> <20090105222841.GA4578@ca.inter.net> <20090106165655.GA19012@princeton.edu> <20090106182228.GE4567@ca.inter.net> 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-Disposition: inline In-Reply-To: <20090106182228.GE4567@ca.inter.net> User-Agent: Mutt/1.4.2.2i X-Archives-Salt: 0490c97c-0933-4fd9-ac2a-c2899458f3f6 X-Archives-Hash: e3626bf01192996ccefd7f2d66fd5719 On Tue, Jan 06, 2009 at 01:22:28PM -0500, Philip Webb wrote: > 090106 Willie Wong wrote: > > this suggests that either cron or your mailer is misconfigured. > > From the logs, you are running ssmtp. Check the config files for it > > to see why mail intended for root@localhost > > is delivered to root@ca.inter.net. > > /etc/ssmtp/ssmtp.conf has the lines (the last refers to my ISP): > > ... > # The person who gets all mail for userids < 1000 > # Make this empty to disable rewriting. > root=postmaster > ... > # The full hostname > hostname=ca.inter.net > ... > > It looks as if this combination causes it to send to root@ca.inter.net . > I can't find a man file for ssmtp.conf , only for ssmtp , > tho' the latter says the former should exist, > so I can't check in any more detail just how the lines above work, > eg what "rewriting" refers to or how the hostname is used. > Okay, I am now a bit confused. What is "ca.inter.net"? A whois shows no match. Does it refer to your ISP? or to your personal box? In any case, you may want to change the root line to "root=purslow" so the mail gets sent to purslow instead of postmaster (which according to /etc/mail/aliases becomes root again). Also, just a personal preference: but on systems that are on for long enough of periods to have daemon process that will be emailing stuff to sys admins (processes like cron and such), I'd usually install an actual MTA instead of something like ssmtp. W -- Willie W. Wong wwong@math.princeton.edu 408 Fine Hall, Department of Mathematics, Princeton University, Princeton A mathematician's reputation rests on the number of bad proofs he has given.