I am porting scripts from Solaris to RHEL 5.x that contains mailx commands. It looks like Linux does not support the -r for return address in Linux?
On Solaris, this works:
mailx -r firstname.lastname@example.org -s "solaris subject" email@example.com
but on RHEL 5, it returns:
mailx: invalid option -- r
Is there an alternative for a return address in Linux using mailx? I would like to avoid changing all these scripts.