I'm trying to sending email via ssmtp but getting alway this error
ssmtp: Cannot open mail.gmail.com:465
I followed these istructions: https://openwrt.org/docs/guide-user/services/email/smtp.client on the bottom page, changin user,password etc...
Question: how is UseTLS=YES handled?
Do I have to install certifcate?
If you installed ssmtp, it should have pulled all the necessary dependencies (including certificates). If you're using GMail, your /etc/ssmtp/ssmtp.conf should contain something like this:
This configuration Works For Me™.
I had to enable this from gmail in order to allow the email forwarding: https://www.dev2qa.com/how-do-i-enable-less-secure-apps-on-gmail/
Question: is this communication encrypted? The auth method and then the message sent from my device to gmail and from gmail to my mail address ?
Yes, everything's encrypted. It's just a way to bypass 2FA for a specific app which doesn't support it (in this case, ssmtp).