Email GMail Oauth Error on Send

fonze98

Dabbler
Joined
Oct 9, 2021
Messages
23
I am attempting to configure the system notification email and was following Ix Setup guide and after logging in to my Gmail account and authorizing Gmail Oauth and clicking the send test I get an error
Code:
Error: [EINVAL] mail_update.oauth.client_id: attribute required [EINVAL] mail_update.oauth.client_secret: attribute required [EINVAL] mail_update.oauth.refresh_token: attribute required
I got an email in the Gmail account saying that it was authorized but can not seem to get it to save the credentials. Anyone have any ideas?

version TrueNAS-SCALE-22.02.2.1
 
Last edited:

fonze98

Dabbler
Joined
Oct 9, 2021
Messages
23
Anyone have any Ideas?
 

indivision

Guru
Joined
Jan 4, 2013
Messages
806
Is using oauth a requirement in your case?

I find that using SMTP with gmail works more reliably (in TrueNAS and in other cases).

To use SMTP with gmail, use these settings:

server: smtp.gmail.com
port: 587
security: TLS
SMTP Authentication Enabled

For password, you generate an "App Password" through google. The process is within your google security settings. You may have to turn on 2-Factor authentication in order to allow the App Password feature.

Here is more about that part: https://support.google.com/mail/answer/185833?hl=en
 
Top