Why can't I set the source email address in mailx using the "-f" flag?
Issue
- Moved from RHEL 4 to RHEL 6 and now
mailx -f
does not work as expected. - I am executing the command below, but something is wrong:
# mailx -s '$SUBJECT' recipient@example.com -- -r sender@example.com
Environment
- Red Hat Enterprise Linux (RHEL)
- 4
- 5
- 6
- 7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.