two method to specify the sender: echo "This is the main body of the mail" | mail -s "Subject of the Email" recipent_address@example.com -- -f from_user@example.com mail -s "Some random subject" -a "From: some@mail.tld" to@mail.tld