IMAP authentication in one domain (my institution) and redirect to Gmail

nunojsilva at ist.utl.pt nunojsilva at ist.utl.pt
Wed Aug 12 10:18:30 UTC 2020


On 2020-08-12, Marcelo Laia wrote:

[...]
>
> My msmtprc is like this:
>
> account YZYZYZ
> host smtp.gmail.com
> from mylogin at YZYZYZ.edu.br
> port 587
> protocol smtp
> tls on
> tls_trust_file /etc/ssl/certs/ca-certificates.crt
> auth oauthbearer
> user mylogin at YZYZYZ.edu.br
> passwordeval /home/myuser/.oauth2token mylogin at 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 mylogin at 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



More information about the Mutt-users mailing list