Chris Green:
> On Tue, Dec 08, 2020 at 07:36:57PM +0100, Luciano Mannucci wrote:
> > On Tue, 8 Dec 2020 17:56:33 +0000
> > Chris Green <[email protected]> wrote:
> >
> > > So, is there something I can configure in postfix to always add some
> > > text of some sort (the hostname is the obvious thing) to one of From:,
> > > To: or Subject: ?
> > Personally, I use the GCOS field in /etc/passwd (the 5th field). Mine
> > looks moreless like "Charlie <hotstname> &", and all my diagnostic
> > messages come fairly recognizable. One real world example:
> >
> > root:*:0:0:Charlie Baobab &:/root:/bin/csh
> >
> So does anything in the GCOS field appear in the From: header?
Yes. You can provide the full name with
The following are used when no From: header exists.
Some mail command-line tools will add a From: header with
information that may or may not be what you want.
sendmail -f full_name, used only when no From: header exists.
The NAME environment variable, used by the sendmal command.
Otherwise it uses the GECOS field. The sendmail command
line fails to mention that.
Wietse