On 2020-08-12, Marcelo Laia wrote:

[...]
>
> My msmtprc is like this:
>
> account YZYZYZ
> host smtp.gmail.com
> from mylo...@yzyzyz.edu.br
> port 587
> protocol smtp
> tls on
> tls_trust_file /etc/ssl/certs/ca-certificates.crt
> auth oauthbearer
> user mylo...@yzyzyz.edu.br
> passwordeval /home/myuser/.oauth2token mylo...@yzyzyz.edu.br YZYZYZ
>
> However, when I try to send a message, I got:
>
> sh: 1: /home/myuser/.oauth2token: Permission denied
> msmtp: was not possible to read the stdout from
> "/home/myuser/.oauth2token mylo...@yzyzyz.edu.br YZYZYZ"

I have not used anything like this so far, but my guess would be that
.oauth2token is lacking the execute permission.

What is the output of

    ls -l /home/myuser/.oauth2token

?

-- 
Nuno Silva

Reply via email to