Gentoo Archives: gentoo-user

From: Troy Curtis Jr <troycurtisjr@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] vixie-cron and ssmtp
Date: Sat, 16 Sep 2006 04:35:18
Message-Id: 4148457f0609152130h6912c8a1pa1ccac9aae443718@mail.gmail.com
1 On 9/15/06, David Grant <davidgrant@×××××.com> wrote:
2 > Forget it, I gave up on ssmtp as it is the problem. I've now gone to postfix
3 > and it is so much easier. Setting up postfix involed 3 simple steps. Setting
4 > relayhost in /etc/postfix/main.cf and creating .forward files in root and
5 > normal user directories. ssmtp should be tree-cleaned. It's not even
6 > maintained upstream and it sucks wind.
7 >
8 > David
9 >
10 >
11 > On 9/14/06, David Grant <davidgrant@×××××.com> wrote:
12 > >
13 > >
14 > >
15 > >
16 > >
17 > > On 9/14/06, David Grant < davidgrant@×××××.com > wrote:
18 > >
19 > > >
20 > > >
21 > > >
22 > > >
23 > > >
24 > > >
25 > > > Hmm, it turns out that setting MAILTO=root in my own user's crontab
26 > makes it send mail. MAILTO=root is already in /etc/cron/crontab by the way
27 > so this is all very strange.
28 > >
29 > >
30 > >
31 > > I tried setting MAILTO=david and that didn't work. I decided ssmtp might
32 > be the problem, so I isolated it and tried this:
33 > >
34 > > 1. echo test |mail -s "testing ssmtp to external" davidgrant@×××××.com
35 > > 2. echo test |mail -s "testing ssmtp mail to root" root
36 > > 3. echo test |mail -s "testing ssmtp mail to david" david
37 > > 4. echo test |mail -s "testing ssmtp mail to sarah" sarah
38 > >
39 > > 1. The first one worked. So ssmtp can send to external addresses fine.
40 > >
41 > > 2. The second one worked. So ssmtp can look at the "root=" command (which
42 > tells it where to send mail to user ids < 1000) properly and send to
43 > whatever root= is set to.
44 > >
45 > > 3. The third one didn't work. So for some reason I can't send mail to a
46 > normal user. But maybe something is weird with that user. I used to run a
47 > mail server on this machine with that user
48 > (postfix/procmail/blah/blah/blah) so maybe some leftover
49 > thing was screwing things up.
50 > >
51 > > 4. Sending mail to this user didn't work either. The users in 3. and 4.
52 > are both in /etc/ssmtp/revaliases. User 3 is in the 'mail' group (does that
53 > even matter) and I tried user 4. with and without that user in the
54 > revaliases file.
55 > >
56 > > It looks like maybe ssmtp isn't seeing my revaliases file? Or maybe I'm
57 > not using is properly?
58 > >
59 > > david:someuserNOSPAM@×××××.com:smtp.vc.shawcable.net
60 > > sarah:someuserNOSPAM@×××××.com :smtp.vc.shawcable.net
61 > >
62 > >
63 > >
64 > > --
65 > > David Grant
66 > > http://www.davidgrant.ca
67 >
68 >
69 >
70 > --
71 > David Grant
72 > http://www.davidgrant.ca
73
74 I totally agree. I have never even been able to get it to compile
75 cleanly. It was the first failed emerge that I had to troubleshoot
76 when I started using Gentoo. Later, it prompted me to drop to good
77 'ol CLI install when I was doing the 2006.0 install. Postfix has
78 always been good to me. I am glad to see that someone else is as fed
79 up with it as I am, why is it still around??
80
81 Troy
82 --
83 "Beware of spyware. If you can, use the Firefox browser." - USA Today
84 Download now at http://getfirefox.com
85 Registered Linux User #354814 ( http://counter.li.org/)
86 --
87 gentoo-user@g.o mailing list