I am having issues getting gmail to connect for fetching mail. I have setup IMAPS with OAuth2 authentication but it does not work and gives me the following error:
Code: Select all
Znuny-znuny.Console.pl-Maint::PostMaster::MailAccountFetch-96
CommunicationLog(ID:244102,AccountType:-,AccountID:-,Direction:Incoming,Transport:Email,ObjectLogType:Connection,ObjectLogID:247844)::Kernel::System::MailAccount::IMAPS => IMAPS: Can't connect to imap.gmail.com: Unable to connect to imap.gmail.com: IO::Socket::IP configuration failed
Code: Select all
RemoteAddress: 169.235.30.154
RequestURI: /znuny/index.pl?Action=AdminMailAccount;Subaction=Run;ID=4;ChallengeToken=AvOxDCegDSJ3CH6FiTGDNjQBABlgQ1s6;
Traceback (78329):
Module: Kernel::Modules::AdminMailAccount::Run Line: 66
Module: Kernel::System::Web::InterfaceAgent::Run Line: 1091
Module: ModPerl::ROOT::ModPerl::Registry::opt_znuny_bin_cgi_2dbin_index_2epl::handler Line: 39
Module: (eval) (v1.99) Line: 207
Module: ModPerl::RegistryCooker::run (v1.99) Line: 207
Module: ModPerl::RegistryCooker::default_handler (v1.99) Line: 173
Module: ModPerl::Registry::handler (v1.99) Line: 32
When I look at the OAuth2 token configurations I do see the Token status as "vaild" but there is no Refresh Token status
Code: Select all
gmail-test2 Token is valid until 09/25/2024 11:25 (America/Los_Angeles). No refresh token was requested yet. valid