Can't fetch emails from Exchange 2013

Moderator: crythias

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

Can't fetch emails from Exchange 2013

Post by ivicav »

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
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Can't fetch emails from Exchange 2013

Post by jojo »

what was changed on OTRS and what was changed on Exchange side
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
ivicav
Znuny newbie
Posts: 21
Joined: 12 Jun 2012, 14:16
Znuny Version: 5.0.1
Real Name: Ivica Vujovic
Company: BELIT

Re: Can't fetch emails from Exchange 2013

Post by ivicav »

That is a problem. Nothing is changed. Didn't even updated server with Exchange when that stopped to work.
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Can't fetch emails from Exchange 2013

Post by jojo »

Nothing stops without a change...
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
ivicav
Znuny newbie
Posts: 21
Joined: 12 Jun 2012, 14:16
Znuny Version: 5.0.1
Real Name: Ivica Vujovic
Company: BELIT

Re: Can't fetch emails from Exchange 2013

Post by ivicav »

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
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Can't fetch emails from Exchange 2013

Post by reneeb »

Did you try to connect via telnet on the commandline? Maybe some DNS issues.
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
ivicav
Znuny newbie
Posts: 21
Joined: 12 Jun 2012, 14:16
Znuny Version: 5.0.1
Real Name: Ivica Vujovic
Company: BELIT

Re: Can't fetch emails from Exchange 2013

Post by ivicav »

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
Znuny newbie
Posts: 21
Joined: 12 Jun 2012, 14:16
Znuny Version: 5.0.1
Real Name: Ivica Vujovic
Company: BELIT

Re: Can't fetch emails from Exchange 2013

Post by ivicav »

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.
Post Reply