How to setup OTRS to fetch Gmail

Moderator: crythias

Post Reply
sare
Znuny newbie
Posts: 1
Joined: 18 Feb 2021, 21:49
Znuny Version: 6.0
Real Name: Reginald

How to setup OTRS to fetch Gmail

Post by sare »

Hi,

I am trying to let OTRS (community edition, v6.0.17) fetch email from a Gmail account. But I'm getting some errors.

1. When I try as type = POP3S, I get the following error:
Kernel::System::MailAccount::POP3 POP3S: Auth for user xxxxxxxx@gmail.com/pop.gmail.com failed!

And when I "Run now" - "fetch mail":

Backend ERROR: OTRS-CGI-65 Perl: 5.16.3 OS: linux Time: Fri Feb 19 01:25:13 2021

Message: CommunicationLog(ID:24263,AccountType:-,AccountID:-,Direction:Incoming,Transport:Email,ObjectLogType:Connection,ObjectLogID:30413)::Kernel::System::MailAccount::POP3 => POP3S: Auth for user xxxxxxxxx@gmail.com/pop.gmail.com failed!

RemoteAddress: 185.6.235.204
RequestURI: /otrs/index.pl?Action=AdminMailAccount;Subaction=Run;ID=2;ChallengeToken=MXhDC62EnbsRB6WXy6pch2zapQvYoiHs;

Traceback (1280):
Module: Kernel::System::CommunicationLog::_LogError Line: 538
Module: Kernel::System::CommunicationLog::ObjectLog Line: 300
Module: Kernel::System::MailAccount::POP3::Fetch Line: 197
Module: Kernel::System::MailAccount::MailAccountFetch Line: 566
Module: Kernel::Modules::AdminMailAccount::Run Line: 76
Module: Kernel::System::Web::InterfaceAgent::Run Line: 1116
Module: ModPerl::ROOT::ModPerl::Registry::opt_otrs_bin_cgi_2dbin_index_2epl::handler Line: 38
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


2. When I try a Gmail account as type = IMAPS, I get the following error:
Kernel::System::MailAccount::IMAP IMAPS: Auth for user yyyyyyyyy@gmail.com/pop.gmail.com failed!

And when I "Run now" - "fetch mail": it says "Finished" but in my Communication Log it will say IMAPS: "Auth for user yyyyyyyyy@gmail.com/pop.gmail.com failed!"


How do I set up Gmail? Is it POP3S (which used to work a while ago) or IMAPS?

Thanks.
skullz
Znuny superhero
Posts: 621
Joined: 24 Feb 2012, 03:58
Znuny Version: LTS and Features
Real Name: Mo Azfar
Location: Kuala Lumpur, MY
Contact:

Re: How to setup OTRS to fetch Gmail

Post by skullz »

Back in the day, i have to enable 'less secure' functions in the gmail..

Alternatively, try to setup specific password for app also in gmail setting..

Good luck.
crythias
Moderator
Posts: 10169
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: How to setup OTRS to fetch Gmail

Post by crythias »

BTW, you probably don't want to fetch Gmail via POP3 (insecure), but rather it is strongly suggested to forward emails to your OTRS box (SMTP server) and handle emails immediately via procmail.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Post Reply