From: Willie Wong <wwong@princeton.edu>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] weird cron mail problem
Date: Tue, 6 Jan 2009 14:31:16 -0500 [thread overview]
Message-ID: <20090106193116.GA8188@math.princeton.edu> (raw)
In-Reply-To: <20090106182228.GE4567@ca.inter.net>
On Tue, Jan 06, 2009 at 01:22:28PM -0500, Philip Webb wrote:
> 090106 Willie Wong wrote:
> > this suggests that either cron or your mailer is misconfigured.
> > From the logs, you are running ssmtp. Check the config files for it
> > to see why mail intended for root@localhost
> > is delivered to root@ca.inter.net.
>
> /etc/ssmtp/ssmtp.conf has the lines (the last refers to my ISP):
>
> ...
> # The person who gets all mail for userids < 1000
> # Make this empty to disable rewriting.
> root=postmaster
> ...
> # The full hostname
> hostname=ca.inter.net
> ...
>
> It looks as if this combination causes it to send to root@ca.inter.net .
> I can't find a man file for ssmtp.conf , only for ssmtp ,
> tho' the latter says the former should exist,
> so I can't check in any more detail just how the lines above work,
> eg what "rewriting" refers to or how the hostname is used.
>
Okay, I am now a bit confused. What is "ca.inter.net"? A whois shows
no match. Does it refer to your ISP? or to your personal box?
In any case, you may want to change the root line to
"root=purslow" so the mail gets sent to purslow instead of postmaster
(which according to /etc/mail/aliases becomes root again).
Also, just a personal preference: but on systems that are on for long
enough of periods to have daemon process that will be emailing stuff
to sys admins (processes like cron and such), I'd usually install an
actual MTA instead of something like ssmtp.
W
--
Willie W. Wong wwong@math.princeton.edu
408 Fine Hall, Department of Mathematics, Princeton University, Princeton
A mathematician's reputation rests on the number of bad proofs he has given.
next prev parent reply other threads:[~2009-01-06 19:31 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-05 16:42 [gentoo-user] weird cron mail problem Philip Webb
2009-01-05 17:06 ` Willie Wong
2009-01-05 18:04 ` Philip Webb
2009-01-05 18:18 ` Willie Wong
2009-01-05 22:28 ` Philip Webb
2009-01-06 0:22 ` [gentoo-user] " Harry Putnam
2009-01-06 10:26 ` Philip Webb
2009-01-06 16:56 ` [gentoo-user] " Willie Wong
2009-01-06 17:05 ` Willie Wong
2009-01-06 18:22 ` Philip Webb
2009-01-06 19:31 ` Willie Wong [this message]
2009-01-06 20:36 ` Philip Webb
2009-01-06 21:39 ` [gentoo-user] " Harry Putnam
2009-01-07 18:20 ` [gentoo-user] Re: weird cron mail problem: basically solved Philip Webb
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090106193116.GA8188@math.princeton.edu \
--to=wwong@princeton.edu \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox