The problem is when I try to reply a ticket, the communication log shows the following error:
1: Trying to connect to 'smtp.gmail.com:587' on znuny.xxxx.com with SMTP type 'SMTPTLS'.
Using SMTP authentication with user 'znuny@xxxx.com' and OAuth2 token config 'znuny@xxxx.com'.
SMTP authentication failed (SMTP code: 535, ErrorMessage: 535, 5.7.8 Username and Password not accepted. Learn more at 5.7.8 https://support.google.com/mail/?p=BadCredentials m4-20020a05600c4f4400b003e209b45f6bsm2886246wmq.29 - gsmtp ).
I've configured the sendmail setting to use the Oauth token as follows:
And having the Oauth2 Token configured as follow:SendMailModule: Kernel::System::Email: SMTPTLS
SendmailModule::AuthUser: znuny@xxxx.com
SendmailModule::AuthenticationType: OAuth2 Token
SendmailModule::Oauth2TokenConfigName: znuny@xxxx.com
SendmailModule::Host: smtp.gmail.com
SendmailModule::Port: 587
I've also tested changing the SendMailModule to use SMTP or SMTPS (port 465) but with the same failed results.
It seems that it is ignoring the SendmailModule::AuthenticationType option when communicating with the gmail's smtp server.
Any idea?
Thanks.