RHEL how to change the "From:" address in mail command
Issue
In HP Unix, there is a mailx command contains the "-r" option to set the specific outgoing mail address.
For example:
# mailx -r root@outgoing.com -s test user@destination.com
Environment
Red Hat Enterprise Linux 5
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.