Too bad its not a little easier to get full “From” headers with mailx. Two possibilities:
- Postfix canonical header rewrites to include full name in message headers (not currently available)
- Mailrc would grab the information from the passwd getent
Its possible to manually add a customized from message header with mailx on the command line, but for some reason its not possible to set the message header in .mailrc.
I found a workaround here, which creates a wrapper to /usr/lib/sendmail and sets the full name in the from header like this:
#!/bin/sh (echo "From: Full Name <email@example.com>"; cat ) | /usr/lib/sendmail $@