Does anyone know how to change the from user when sending email using the mail command? I have looked through the man page and can not see how to do this.
We are running Redhat Linux 5.
You can specify any extra header you may need with -a
$mail -s "Some random subject" -a "From: [email protected]" [email protected]