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 1GO2iB-0006uv-CA for garchives@archives.gentoo.org; Fri, 15 Sep 2006 01:41:47 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.6) with SMTP id k8F1dX54025335; Fri, 15 Sep 2006 01:39:33 GMT Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.169]) by robin.gentoo.org (8.13.8/8.13.6) with ESMTP id k8F1XVqS007862 for ; Fri, 15 Sep 2006 01:33:31 GMT Received: by ug-out-1314.google.com with SMTP id p27so120879ugc for ; Thu, 14 Sep 2006 18:33:31 -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:references; b=DMqBiUE2RTDhdnHeCPnnsx2cm0OGjQIcxNcKc7akJ90fa/3fFqqEjZwHlBsFLyjcT7Ea9i5uFDBnE1lVxIRICKvkCct3JuiLBsOOHdOBdPW+DOwOKCLgRsBwdy2aIzLy5GCwSX+hqBMT6eWamHMRtEvPaEn+S10fk8MHjzBY1vs= Received: by 10.66.221.19 with SMTP id t19mr5176252ugg; Thu, 14 Sep 2006 18:33:31 -0700 (PDT) Received: by 10.66.245.16 with HTTP; Thu, 14 Sep 2006 18:33:30 -0700 (PDT) Message-ID: Date: Thu, 14 Sep 2006 18:33:30 -0700 From: "David Grant" 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: multipart/alternative; boundary="----=_Part_208913_10308794.1158284010909" References: <20060914235141.2c918661@hactar.digimed.co.uk> X-Archives-Salt: a5299b9a-17a7-4936-bd1c-a9ab49af8fbd X-Archives-Hash: 2fa45fe53113cf55a10a0d2b90f989ad ------=_Part_208913_10308794.1158284010909 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 9/14/06, David Grant 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 ------=_Part_208913_10308794.1158284010909 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline

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 ------=_Part_208913_10308794.1158284010909-- -- gentoo-user@gentoo.org mailing list