Specify the from user when sending email using the mail command February 25, 2023 by Tarik You can specify any extra header you may need with -a $mail -s "Some random subject" -a "From: some@mail.tld" to@mail.tld