On Wed, Dec 09, 2020 at 04:55:13AM -0700, @lbutlr wrote:
> On 09 Dec 2020, at 03:00, Chris Green <c...@isbd.net> wrote:
> > On Wed, Dec 09, 2020 at 02:33:37AM -0700, @lbutlr wrote:
> >> On 08 Dec 2020, at 13:04, Chris Green <ch...@isbd.co.uk> wrote:
> >>> On Tue, Dec 08, 2020 at 12:39:07PM -0700, @lbutlr wrote:
> >>>> On 08 Dec 2020, at 10:56, Chris Green <c...@isbd.net> wrote:
> >>>>> While I can look through the E-Mail header to see where the message
> >>>>> has come from it would be good if I could somehow configure things so
> >>>>> that the headers I normally see (From:, To: and Subject:) include
> >>>>> something that indicates where the message is from.
> >>>> 
> >>>> I would configure root to be an alias to root+machineID.
> >>>> 
> >>> So how do I do that?
> >> 
> >> Edit the .../postfix/aliases file and then run postalias on the file.
> >> 
> > Ah, no, it never gets that far, I have:-
> > 
> >    luser_relay = m...@mydomain.co.uk
> >    local_recipient_maps =
> 
> Hmm. Might have to edit the /etc/aliases and run newalaises then.
> 
> But changing the name in /etc/password seems cleaner.
> 
Yes, it seems to work OK, so that's what I'm doing for the moment.

> > There are no local recipients, that's the whole point.  These messages
> > will always be errors/warnings from daemons or cron processes on
> > (mostly) headless systems that I want to see so I'm sending them off
> > to myself.
> 
> Right, but cron and daemon emails do not need or use a postfix install 
> by default, so the question would be does the sendmail process or ssmtp 
> read the /etc/alaises? I THINK it does, but it's been a long time since 
> I needed to do this. 
> 
There is no 'default' sendmail installed on ubuntu or raspbian
systems, thus errors from anacron/cron go nowhere, that's the original
issue that I was addressing.  While I could install ssmtp, for me it's
no easier than Postfix.  The required main.cf to make it work is very
simple and is identical on all these systems.

-- 
Chris Green

Reply via email to