Sending a message from the Unix command line using mail TO_ADDR results in an email from $USER@$HOSTNAME. Is there a way to change the \"From:\" ad
mail TO_ADDR
$USER@$HOSTNAME
echo "test" | mailx -r fake@example.com -s 'test' email@example.com
It works in OpenBSD.