In my version of mail ( Debian linux 4.0 ) the following options work for controlling the source / reply addresses
so the following sequence
export [email protected]
mail -aFrom:[email protected] -s 'Testing'
The result, in my mail clients, is a mail from [email protected], which any replies to will default to [email protected]
NB: Mac OS users: you don't have -a , but you do have $REPLYTO
NB(2): CentOS users, many commenters have added that you need to use -r
not -a
NB(3): This answer is at least ten years old(1), please bear that in mind when you're coming in from Google.