From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1GORte-0001ZK-BV for garchives@archives.gentoo.org; Sat, 16 Sep 2006 04:35:18 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.6) with SMTP id k8G4YcwA027288; Sat, 16 Sep 2006 04:34:38 GMT Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.181]) by robin.gentoo.org (8.13.8/8.13.6) with ESMTP id k8G4UHei026421 for ; Sat, 16 Sep 2006 04:30:18 GMT Received: by py-out-1112.google.com with SMTP id d42so3418456pyd for ; Fri, 15 Sep 2006 21:30:17 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=FP5s7YPCiMtf4f09n5SrRI6Qdd4iLmQGeZQtHpvEJiry/IHJF69r+ZQRf/bEGt1O6c7xlW9A8II3ZDz7uGPUh3sAfk4U4qvu20HY30a44eO7z9BOz+nUez/IWTi7lj8W/j8tVQKsA/CE5IZrmQplXGFPvFe4Y40W8aGE9BU9iSs= Received: by 10.35.27.1 with SMTP id e1mr18711491pyj; Fri, 15 Sep 2006 21:30:17 -0700 (PDT) Received: by 10.35.94.14 with HTTP; Fri, 15 Sep 2006 21:30:17 -0700 (PDT) Message-ID: <4148457f0609152130h6912c8a1pa1ccac9aae443718@mail.gmail.com> Date: Fri, 15 Sep 2006 23:30:17 -0500 From: "Troy Curtis Jr" To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] vixie-cron and ssmtp In-Reply-To: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20060914235141.2c918661@hactar.digimed.co.uk> X-Archives-Salt: 19b7e71c-27c4-43c1-a54f-5f768fbd1283 X-Archives-Hash: 5c19d255b5c9de9c0d410cafc0003115 On 9/15/06, David Grant wrote: > Forget it, I gave up on ssmtp as it is the problem. I've now gone to postfix > and it is so much easier. Setting up postfix involed 3 simple steps. Setting > relayhost in /etc/postfix/main.cf and creating .forward files in root and > normal user directories. ssmtp should be tree-cleaned. It's not even > maintained upstream and it sucks wind. > > David > > > On 9/14/06, David Grant wrote: > > > > > > > > > > > > On 9/14/06, David Grant < davidgrant@gmail.com > wrote: > > > > > > > > > > > > > > > > > > > > > > > Hmm, it turns out that setting MAILTO=root in my own user's crontab > makes it send mail. MAILTO=root is already in /etc/cron/crontab by the way > so this is all very strange. > > > > > > > > I tried setting MAILTO=david and that didn't work. I decided ssmtp might > be the problem, so I isolated it and tried this: > > > > 1. echo test |mail -s "testing ssmtp to external" davidgrant@gmail.com > > 2. echo test |mail -s "testing ssmtp mail to root" root > > 3. echo test |mail -s "testing ssmtp mail to david" david > > 4. echo test |mail -s "testing ssmtp mail to sarah" sarah > > > > 1. The first one worked. So ssmtp can send to external addresses fine. > > > > 2. The second one worked. So ssmtp can look at the "root=" command (which > tells it where to send mail to user ids < 1000) properly and send to > whatever root= is set to. > > > > 3. The third one didn't work. So for some reason I can't send mail to a > normal user. But maybe something is weird with that user. I used to run a > mail server on this machine with that user > (postfix/procmail/blah/blah/blah) so maybe some leftover > thing was screwing things up. > > > > 4. Sending mail to this user didn't work either. The users in 3. and 4. > are both in /etc/ssmtp/revaliases. User 3 is in the 'mail' group (does that > even matter) and I tried user 4. with and without that user in the > revaliases file. > > > > It looks like maybe ssmtp isn't seeing my revaliases file? Or maybe I'm > not using is properly? > > > > david:someuserNOSPAM@gmail.com:smtp.vc.shawcable.net > > sarah:someuserNOSPAM@gmail.com :smtp.vc.shawcable.net > > > > > > > > -- > > David Grant > > http://www.davidgrant.ca > > > > -- > David Grant > http://www.davidgrant.ca I totally agree. I have never even been able to get it to compile cleanly. It was the first failed emerge that I had to troubleshoot when I started using Gentoo. Later, it prompted me to drop to good 'ol CLI install when I was doing the 2006.0 install. Postfix has always been good to me. I am glad to see that someone else is as fed up with it as I am, why is it still around?? Troy -- "Beware of spyware. If you can, use the Firefox browser." - USA Today Download now at http://getfirefox.com Registered Linux User #354814 ( http://counter.li.org/) -- gentoo-user@gentoo.org mailing list