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 1LKGZW-0000yf-GV for garchives@archives.gentoo.org; Tue, 06 Jan 2009 18:22:34 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9E9D1E043D; Tue, 6 Jan 2009 18:22:32 +0000 (UTC) Received: from smtp-relay2.uniserve.ca (smtp-relay2h.uniserve.ca [216.113.194.206]) by pigeon.gentoo.org (Postfix) with ESMTP id 6EA59E043D for ; Tue, 6 Jan 2009 18:22:32 +0000 (UTC) Received: from ip-108.59.99.216.dsl-cust.ca.inter.net ([216.99.59.108] helo=ca.inter.net) by smtp-relay2.uniserve.ca with smtp (Exim 4.63) (envelope-from ) id 1LKGZS-0007gH-6B for gentoo-user@lists.gentoo.org; Tue, 06 Jan 2009 10:22:31 -0800 Received: by ca.inter.net (sSMTP sendmail emulation); Tue, 06 Jan 2009 13:22:28 -0500 Date: Tue, 6 Jan 2009 13:22:28 -0500 From: Philip Webb To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] weird cron mail problem Message-ID: <20090106182228.GE4567@ca.inter.net> Mail-Followup-To: gentoo-user@lists.gentoo.org 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> 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: <20090106165655.GA19012@princeton.edu> User-Agent: Mutt/1.5.16 (2007-06-09) X-Scanner: OK. Scanned. X-Uniserve-Spam-Score: 0.0 0 (/) X-Uniserve-Spam-Report: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- X-Archives-Salt: bb817f4b-10d1-4b56-97ee-fbe3751bafd4 X-Archives-Hash: a6c9adb6733057e0d7c48ecdd3a56a69 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. > And check /etc/crontab to see whether the MAILTO field is set properly > to where you want the mail to be delivered. MAILTO=root this is for system cron jobs, which are run by & for root. > Also, I don't know which implementation of cron you are using, > but if your crontab is under , ... Yes, with mail that's necessary for security. > ... then usually cron will demand notification e-mails sent to : > Try 'ls -l /var/spool/cron/crontabs/' : > is your user's crontab owned by root for some reason? No : root:550 crontabs> ls -l -rw------- 1 purslow crontab 234 2007-11-04 23:46 purslow > I have my fetchmail line as > /usr/bin/fetchmail > /dev/null > so I only get e-mails when it writes to stderr (when there's an error). That looks like the quick fix. > Writing "fetchmail -s" instead shouldn't be a problem. > Why do you think it needs a script? I didn't know if cron will ignore stuff after the space otherwise, but obviously it does, if your line above works. > I still think you MTA is misconfigured for local mail. Like you, I'ld like to understand the real cause of the problem: Gentoo is for people like us ... (smile) Rewriting .fetchmailrc using fetchmailconf thro'out didn't help, so that's one set of possibilities ruled out & I will try the suggestions above (thanks) next. Your or others' further comments are very welcome. -- ========================,,============================================ SUPPORT ___________//___, Philip Webb ELECTRIC /] [] [] [] [] []| Cities Centre, University of Toronto TRANSIT `-O----------O---' purslowatchassdotutorontodotca