I've set up ssmtp with my gmail account (and disabled sendmail) following these and these instructions.
I can now send mail using the following command:
I have two specific questions now:
Does the solution have anything to do with the contents in
/usr/local/etc/ssmtp/revaliases? I am confused about the purpose of this file.
Thank you,
Oliver
I can now send mail using the following command:
echo "Hello" | mail -s subject someemailaddress@gmail.com
I have two specific questions now:
- Any user can now send mail with the above command from my gmail account (the "from" field in a received email is: "User & <mygmailusername@gmail.com>"). Therefore any user can potentially claim to be me as my own gmail address is in the from field??
- Why does the from field contain "User", when an email is sent with the above command from a user account that is not my own (I do not see this when I send the email using my personal user account, but I rather see my real full name followed by my gmail address which is good). And... if I execute the above command as root, the from field is: "Charlie & <mygmailusername@gmail.com>".
Does the solution have anything to do with the contents in
/usr/local/etc/ssmtp/revaliases? I am confused about the purpose of this file.
Thank you,
Oliver