Hi
we are using znuny 7.1.3
Have the following issue using oauth2 for imap on a gmail account:
- On znuny we created OAuth2 configuration using Google Mail template and configured the related Postmaster Mail account for IMAP
- We successfully created first request (from znuny gui: Admin -> OAuth2 click on refresh and a pop for user Authentication request appears)
Znuny correctly accesses the email
- When the token expires, a new is requested: we see the updated validation time in the GUI. We also checked the token with https://www.googleapis.com/oauth2/v1/to ... _token=xxx it results valid
- After one day it stopped working; the email fetch from cli gives the following error:
imap.gmail.com (IMAPS)...
Started at Wed Apr 16 17:37:42 2025
Using Mail::IMAPClient version 3.43 on perl 5.036000
Connecting with IO::Socket::SSL PeerAddr imap.gmail.com PeerPort 993 Proto tcp Timeout 600 Debug 1 SSL_verify_mode 0
Connected to imap.gmail.com
Read: * OK Gimap ready for requests from xxx.xxx.xxx.xxx j32mb33028445wms
Sending: 1 AUTHENTICATE XOAUTH2
Sent 24 bytes
Read: +
Sending: [Redact: Count=1 Showcredentials=OFF]
Sent 354 bytes
Read: + eyJzdGF0dXMiOiI0MDAiLCJzY2hlbWVzIjoiQmVhcmVyIiwic2NvcGUiOiJodHRwczovL21haWwuZ29vZ2xlLmNvbS8ifQ==
Sending: [Redact: Count=1 Showcredentials=OFF]
Sent 354 bytes
Read: 1 NO [AUTHENTICATIONFAILED] Invalid credentials (Failure)
ERROR: 1 NO [AUTHENTICATIONFAILED] Invalid credentials (Failure) at /usr/share/perl5/Mail/IMAPClient.pm line 3319.
Mail::IMAPClient::authenticate(Mail::IMAPClient=HASH(0x5595b762f300), "XOAUTH2", CODE(0x5595b762f198)) called at /srv/znuny-7.1.3/Kernel/System/MailAccount/IMAP.pm line 124
Could You please suggest how to perform further analysis or any ideas on what's happening?
Waiting for hearing from You
Alberto
we are using znuny 7.1.3
Have the following issue using oauth2 for imap on a gmail account:
- On znuny we created OAuth2 configuration using Google Mail template and configured the related Postmaster Mail account for IMAP
- We successfully created first request (from znuny gui: Admin -> OAuth2 click on refresh and a pop for user Authentication request appears)
Znuny correctly accesses the email
- When the token expires, a new is requested: we see the updated validation time in the GUI. We also checked the token with https://www.googleapis.com/oauth2/v1/to ... _token=xxx it results valid
- After one day it stopped working; the email fetch from cli gives the following error:
imap.gmail.com (IMAPS)...
Started at Wed Apr 16 17:37:42 2025
Using Mail::IMAPClient version 3.43 on perl 5.036000
Connecting with IO::Socket::SSL PeerAddr imap.gmail.com PeerPort 993 Proto tcp Timeout 600 Debug 1 SSL_verify_mode 0
Connected to imap.gmail.com
Read: * OK Gimap ready for requests from xxx.xxx.xxx.xxx j32mb33028445wms
Sending: 1 AUTHENTICATE XOAUTH2
Sent 24 bytes
Read: +
Sending: [Redact: Count=1 Showcredentials=OFF]
Sent 354 bytes
Read: + eyJzdGF0dXMiOiI0MDAiLCJzY2hlbWVzIjoiQmVhcmVyIiwic2NvcGUiOiJodHRwczovL21haWwuZ29vZ2xlLmNvbS8ifQ==
Sending: [Redact: Count=1 Showcredentials=OFF]
Sent 354 bytes
Read: 1 NO [AUTHENTICATIONFAILED] Invalid credentials (Failure)
ERROR: 1 NO [AUTHENTICATIONFAILED] Invalid credentials (Failure) at /usr/share/perl5/Mail/IMAPClient.pm line 3319.
Mail::IMAPClient::authenticate(Mail::IMAPClient=HASH(0x5595b762f300), "XOAUTH2", CODE(0x5595b762f198)) called at /srv/znuny-7.1.3/Kernel/System/MailAccount/IMAP.pm line 124
Could You please suggest how to perform further analysis or any ideas on what's happening?
Waiting for hearing from You
Alberto
Statistics: Posted by sirconsultant — 22 Apr 2025, 10:34 — Replies 0 — Views 117