Can't fetch emails from Exchange 2013

Moderator: crythias

ivicav
OTRS newbie
Posts: 21
Joined: 12 Jun 2012, 14:16
OTRS Version?: 5.0.1
Real Name: Ivica Vujovic
Company: BELIT

Can't fetch emails from Exchange 2013

Postby ivicav » 04 Nov 2017, 15:23

Hi,
I set OTRS to fetch emails from Exchange and it worked for almost 3 years without problems. But now it just stopped fetching emails... There is error:
Backend ERROR: OTRS-CGI-10
Perl: 5.16.3
OS: linux Time: Sat Nov 4 13:26:23 2017
Message: IMAPS: Can't connect to mail.server.com
RemoteAddress:
RequestURI: /otrs/index.pl?Action=AdminMailAccount;Subaction=Run;ID=1;ChallengeToken=jZ4qCuM36FjpLXXPhxTbn1top8NFV0Zj; Traceback (2821):
Module: Kernel::System::MailAccount::IMAP::_Fetch Line: 142
Module: Kernel::System::MailAccount::IMAP::Fetch Line: 86
Module: Kernel::System::MailAccount::MailAccountFetch Line: 440
Module: Kernel::Modules::AdminMailAccount::Run Line: 54
Module: Kernel::System::Web::InterfaceAgent::Run Line: 1036
Module: ModPerl::ROOT::ModPerl::Registry::opt_otrs_bin_cgi_2dbin_index_2epl::handler Line: 40
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

I double checked email server so I am 100% sure that IMAPS works as it should.
Email account i OK and emails are arriving.
OTRS server has connectivity to mail server and vice versa so it is not firewall issue.

I ran out of ideas. Anyone has some?

jojo
Moderator
Posts: 13961
Joined: 26 Jan 2007, 14:50
OTRS Version?: Git Master
Contact:

Re: Can't fetch emails from Exchange 2013

Postby jojo » 04 Nov 2017, 15:39

what was changed on OTRS and what was changed on Exchange side
"Production": OTRS Business Solution™ 6, STORM powered by OTRS
"Testing": OTRS git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com :: Share your ideas

ivicav
OTRS newbie
Posts: 21
Joined: 12 Jun 2012, 14:16
OTRS Version?: 5.0.1
Real Name: Ivica Vujovic
Company: BELIT

Re: Can't fetch emails from Exchange 2013

Postby ivicav » 07 Nov 2017, 12:40

That is a problem. Nothing is changed. Didn't even updated server with Exchange when that stopped to work.

jojo
Moderator
Posts: 13961
Joined: 26 Jan 2007, 14:50
OTRS Version?: Git Master
Contact:

Re: Can't fetch emails from Exchange 2013

Postby jojo » 07 Nov 2017, 12:54

Nothing stops without a change...
"Production": OTRS Business Solution™ 6, STORM powered by OTRS
"Testing": OTRS git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com :: Share your ideas

ivicav
OTRS newbie
Posts: 21
Joined: 12 Jun 2012, 14:16
OTRS Version?: 5.0.1
Real Name: Ivica Vujovic
Company: BELIT

Re: Can't fetch emails from Exchange 2013

Postby ivicav » 07 Nov 2017, 14:03

This one does. :) Me and my colleague are only two persons able to do any change. Since he is on sick leave last 2 weeks there it leaves me as only person who can do nay change and I didn't do any update to anything related in last two weeks. Yet, OTRS suddenly cannot connect to SMTP.

Any insights on error? I have no idea where to start to look. All services works on Exchange, cert is self signed as last 16 moths but I still got this error.

reneeb
OTRS guru
Posts: 4363
Joined: 13 Mar 2011, 09:54
OTRS Version?: 3.3.x
Company: Perl-Services.de
Contact:

Re: Can't fetch emails from Exchange 2013

Postby reneeb » 07 Nov 2017, 15:30

Did you try to connect via telnet on the commandline? Maybe some DNS issues.
Perl / OTRS development: http://perl-services.de
Free OTRS add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de

ivicav
OTRS newbie
Posts: 21
Joined: 12 Jun 2012, 14:16
OTRS Version?: 5.0.1
Real Name: Ivica Vujovic
Company: BELIT

Re: Can't fetch emails from Exchange 2013

Postby ivicav » 07 Nov 2017, 15:59

Yes I did. Nothing wrong there.

Right now i think the problem is in certificate because it is self signed. Working on implementing Let's Encrypt on Exchange server right now. Hope it will help.

ivicav
OTRS newbie
Posts: 21
Joined: 12 Jun 2012, 14:16
OTRS Version?: 5.0.1
Real Name: Ivica Vujovic
Company: BELIT

Re: Can't fetch emails from Exchange 2013

Postby ivicav » 09 Nov 2017, 13:04

OK, two days later...

I installed Let's Encrypt cert in Exchange and it works flawlessly. Tested IMAP SSL protocol with some mail client and it works fine. BUT. I still have same error.

Anyone have some idea what I could overlook?

I forgot to mention that sending emails to Exchange relay works flawlessly too. It is just IMAPS that is giving me headache...

Edit: It does work. I forgot to start ImapProxy after I restarted Exchange... So I guess it was certificate issue after all.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 8 guests