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

Solution Unverified - Updated -


If you use a command like:

cat mymail |mail -s "my test mail"

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.


Red Hat Enterprise Linux 5

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content