On Fri, Jul 08, 2005 at 12:10:06PM +0200, Robert Svoboda wrote
> Hi,
> 
> * Walter Dnes <[EMAIL PROTECTED]> [2005-07-07 13:00]:
> 
> > If you set up ssmtp with the sendmail symlink, and don't watch what
> > you're doing, chatty cron jobs will send their output to "root"
> 
> I don't think this is the case, ssmtp or bsmtp can't do a
> local delivery.

  It *WASN'T* doing "local delivery".  *THAT* was the problem.  ssmtp
forwards *EVERYTHING*, including email for "root" (no domain specified)
to my ISP's MTA (i.e. "smarthost").  When no domain is specified, the
ISP's MTA defaults to appending the local domain to generate a full
email address.  Root at my ISP was getting my cron job outputs.

  Yes, it did happen to me.  That was my most embarressing moment in
terms of screwing up in linux.  What I *SHOULD* have done is set

root=my_user_ID

in /etc/ssmtp/ssmtp.conf and my_user_ID would've gotten the outputs.  I
have that set now, but I prefer to play it safe by stepping on the .
The root redirection only applies for userid < 10 (e.g. root = 0).  I
don't know if any cron jobs send output to userids between 10 and 999.

-- 
Walter Dnes <[EMAIL PROTECTED]>
My musings on technology and security at http://tech_sec.blog.ca
-- 
gentoo-user@gentoo.org mailing list

Reply via email to