How can you override the default 'Sender Name' used by mailx or mail in RHEL5?

Solution Unverified - Updated -

Issue

If you use a command like:

cat mymail |mail -s "my test mail" user@redhat.com

A mail will be generated that will use the comments field from /etc/passwd as the user's full name, this may not always be appropriate.

Environment

Red Hat Enterprise Linux 5

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In