On 9/15/06, David Grant <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> On 9/14/06, David Grant < [EMAIL PROTECTED] > 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" [EMAIL PROTECTED]
> 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:[EMAIL PROTECTED]:smtp.vc.shawcable.net
> sarah:[EMAIL PROTECTED] :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/)
--
[email protected] mailing list

Reply via email to