Mail Fetch problem. "Undeliverable: OTRS Scheduler Daemon Cron: MailAccountFetch"

Moderator: crythias

Post Reply
spike1197
Znuny newbie
Posts: 9
Joined: 02 Feb 2015, 18:48
Znuny Version: 5.0.5
Real Name: Paul

Mail Fetch problem. "Undeliverable: OTRS Scheduler Daemon Cron: MailAccountFetch"

Post by spike1197 »

I am getting new tickets in the system after some process runs that I can't track down.
our exchange system is failing on delivery to root@localhost. I understand that error. The error i don't understand follows:

Code: Select all

ERROR: OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-10 Perl: 5.=0.1 OS: linux Time: Mon Jan 18 10:42:33 2016

 Message: POP3: Auth for user OTRSUSER/MAILSERVER.DOMAIN.COM failed!

 Traceback (9568): 
   Module: Kernel::System::MailAccount::POP3::Fetch Line: 144
   Module: Kernel::System::MailAccount::MailAccountFetch Line: 440
   Module: Kernel::System::Console::Command::Maint::PostMaster::MailAccount=etch::Run Line: 94
   Module: (eval) Line: 436
   Module: Kernel::System::Console::BaseCommand::Execute Line: 430
   Module: (eval) Line: 147
   Module: Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker::Cron=:Run Line: 131
   Module: Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker::Run =ine: 259
   Module: (eval) Line: 316
   Module: main::Start Line: 316
   Module: bin/otrs.Daemon.pl Line: 138
the /var/log/message file contain this:

Code: Select all

Jan 18 10:42:33 ei-otrs OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-10[9568]: [Error][Kernel::System::Daemon::DaemonModules::BaseTaskWorker::_HandleError][Line:51]: There was an error executing Execute() in Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch: ERROR: OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-10 Perl: 5.10.1 OS: linux Time: Mon Jan 18 10:42:33 2016#012#012 Message: POP3: Auth for user OTRSUSER/MAILSERVER.DOMAIN.COM failed!#012#012 Traceback (9568): #012   Module: Kernel::System::MailAccount::POP3::Fetch Line: 144#012   Module: Kernel::System::MailAccount::MailAccountFetch Line: 440#012   Module: Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch::Run Line: 94#012   Module: (eval) Line: 436#012   Module: Kernel::System::Console::BaseCommand::Execute Line: 430#012   Module: (eval) Line: 147#012   Module: Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker::Cron::Run Line: 131#012   Module: Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker::Run Line: 259#012   Module: (eval) Line: 316#012   Module: main::Start Line: 316#012   Module: bin/otrs.Daemon.pl Line: 138#012
the /opt/otrs/var/log/Daemon

Code: Select all

ERROR: OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-10 Perl: 5.10.1 OS: linux Time: Mon Jan 18 10:42:33 2016

 Message: There was an error executing Execute() in Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch: ERROR: OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-10 Perl: 5.10.1 OS: linux Time: Mon Jan 18 10:42:33 2016

 Message: POP3: Auth for user OTRSUSER/MAILSERVER.DOMAIN.COM failed!

 Traceback (9568): 
   Module: Kernel::System::MailAccount::POP3::Fetch Line: 144
   Module: Kernel::System::MailAccount::MailAccountFetch Line: 440
   Module: Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch::Run Line: 94
   Module: (eval) Line: 436
   Module: Kernel::System::Console::BaseCommand::Execute Line: 430
   Module: (eval) Line: 147
   Module: Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker::Cron::Run Line: 131
   Module: Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker::Run Line: 259
   Module: (eval) Line: 316
   Module: main::Start Line: 316
   Module: bin/otrs.Daemon.pl Line: 138



 Traceback (9568): 
   Module: Kernel::System::Daemon::DaemonModules::BaseTaskWorker::_HandleError Line: 51
   Module: Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker::Cron::Run Line: 178
   Module: Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker::Run Line: 259
   Module: (eval) Line: 316
   Module: main::Start Line: 316
   Module: bin/otrs.Daemon.pl Line: 138
FETCHMail seems to be working correctly for incoming tickets and ticket responses. The occurrence interval seems random.
Thoughts?
otrs version 5
CentOS 6.3
jnelson
Znuny newbie
Posts: 72
Joined: 18 Jul 2014, 14:40
Znuny Version: 5.0.4
Real Name: Jerry Nelson

Re: Mail Fetch problem. "Undeliverable: OTRS Scheduler Daemon Cron: MailAccountFetch"

Post by jnelson »

It appears your server (unless you edited it for this post) is attempting to auth: OTRSUSER/MAILSERVER.DOMAIN.COM

Is this user account an edit or is the server actually trying to execute this? If it's an edit are you sure about the auth/fetch type? I use office365.com and am using IMAPTLS with the settings noted on the site.

See attached mail account snip
emailconfig.JPG
You do not have the required permissions to view the files attached to this post.
OTRS 5 on CentOS 7.1
jnelson
Znuny newbie
Posts: 72
Joined: 18 Jul 2014, 14:40
Znuny Version: 5.0.4
Real Name: Jerry Nelson

Re: Mail Fetch problem. "Undeliverable: OTRS Scheduler Daemon Cron: MailAccountFetch"

Post by jnelson »

Log entries for my configuration look like this

Tue Jan 19 08:05:06 2016 notice OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-93 IMAPTLS: Fetched 1 email(s) from helpdesk@XXXXXXXXXXX.com/smtp.office365.com.
OTRS 5 on CentOS 7.1
spike1197
Znuny newbie
Posts: 9
Joined: 02 Feb 2015, 18:48
Znuny Version: 5.0.5
Real Name: Paul

Re: Mail Fetch problem. "Undeliverable: OTRS Scheduler Daemon Cron: MailAccountFetch"

Post by spike1197 »

I never had any of these issues until I upgraded to otrs 5. ran without these errors in the logs or bounces for about a year. I understand that things changed from 3.10 to 5 but again. not an issue until the upgrade.

the username/server edited for the post.
eturconi
Znuny newbie
Posts: 35
Joined: 27 Dec 2011, 15:18
Znuny Version: 3

Re: Mail Fetch problem. "Undeliverable: OTRS Scheduler Daemon Cron: MailAccountFetch"

Post by eturconi »

Same behaviour.....Did u understand what is changed in version 5?
spike1197
Znuny newbie
Posts: 9
Joined: 02 Feb 2015, 18:48
Znuny Version: 5.0.5
Real Name: Paul

[SOLVED] Re: Mail Fetch problem. "Undeliverable: OTRS Scheduler Daemon Cron: MailAccountFetch"

Post by spike1197 »

Sorry for letting this go stale.

The fix was editing the Kernel/Config.pm file and adding the code below int he "own config options" area.

Code: Select all

    delete $Self->{"Daemon::SchedulerCronTaskManager::Task"}->{"OTRSBusinessEntitlementCheck"};
    delete $Self->{"Daemon::SchedulerCronTaskManager::Task"}->{"OTRSBusinessAvailabilityCheck"};
Post Reply