I cannot get the mailx -r option to set the sender "From" field correctly.
echo "email text" | mail -s "test 123" -r donotreply@domain.com user@domain.com
The email gets sent if the "-r" field is a fake domain. If it is a real domain, the email does not get sent. The username does not matter, only the domain name.
Where should I check to fix this?
RHEL6.4