Dnia  9.12.2020 o godz. 06:04:58 @lbutlr pisze:
> > /etc/aliases works for incoming email.
> 
> No, that is definitely not correct. It works for internal local mail as
> well, otherwise I would never see mail sent to root.

But what is important is that /etc/aliases applies when mail is *received*,
not sent. In this context it's "incoming" mail. It doesn't matter that it is
both sent and received on local machine.

/etc/aliases ensures that eg. mail sent to "root" goes to "mysuer". But it
doesn't help if you want mail sent *from* "root" have in "From:" field
something like "root-machineA". And that's what OP wanted. He wanted to be
able to distinguish messages sent from "root" on different machines, where
each sender address is the same "root@domain", by somehow including machine
name in the "From:" header. /etc/aliases won't help in that.
-- 
Regards,
   Jaroslaw Rafa
   r...@rafa.eu.org
--
"In a million years, when kids go to school, they're gonna know: once there
was a Hushpuppy, and she lived with her daddy in the Bathtub."

Reply via email to