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 email@example.com -s "solaris subject" firstname.lastname@example.org
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.