Code: Select all
su -c "/opt/otrs/bin/otrs.Console.pl Maint::PostMaster::MailAccountFetch --debug" -s /bin/bash otrs
Spawning child process to fetch incoming messages from mail accounts...
outlook.office365.com (IMAPTLS)...
IMAPTLS: Connection to outlook.office365.com closed.
Started at Fri Mar 31 08:49:40 2023
Using Mail::IMAPClient version 3.42 on perl 5.032001
Connecting with IO::Socket::IP PeerAddr outlook.office365.com PeerPort 143 Proto tcp Timeout 600 Debug 1
Connected to outlook.office365.com
Read: * OK The Microsoft Exchange IMAP4 service is ready. [UABSADAAUAAyADYANABDAEEAMAAwADYAMwAuAEYAUgBBAFAAMgA2ADQALgBQAFIATwBEAC4ATwBVAFQATABPAE8ASwAuAEMATwBNAA==]
Sending: 1 STARTTLS
Sent 12 bytes
Read: 1 OK Begin TLS negotiation now.
Sending: 2 AUTHENTICATE XOAUTH2
Sent 24 bytes
Read: +
Sending: [Redact: Count=2 Showcredentials=OFF]
Sent 2670 bytes
Read: 2 OK AUTHENTICATE completed.
Sending: 3 SELECT INBOX
Sent 16 bytes
Read: 3 BAD User is authenticated but not connected.
ERROR: 3 BAD User is authenticated but not connected. at /usr/share/perl5/Mail/IMAPClient.pm line 1378.
Mail::IMAPClient::__ANON__("3 BAD User is authenticated but not connected.\x{d}\x{a}") called at /usr/share/perl5/Mail/IMAPClient.pm line 1414
Mail::IMAPClient::_get_response(Mail::IMAPClient=HASH(0x5628639ff4d8), 3, undef) called at /usr/share/perl5/Mail/IMAPClient.pm line 1340
Mail::IMAPClient::_imap_command_do(Mail::IMAPClient=HASH(0x5628639ff4d8), "SELECT INBOX") called at /usr/share/perl5/Mail/IMAPClient.pm line 1238
Mail::IMAPClient::_imap_command(Mail::IMAPClient=HASH(0x5628639ff4d8), "SELECT INBOX") called at /usr/share/perl5/Mail/IMAPClient.pm line 854
Mail::IMAPClient::select(Mail::IMAPClient=HASH(0x5628639ff4d8), "INBOX") called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 301
eval {...} called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 305
Kernel::System::MailAccount::IMAP::__ANON__("select", "INBOX") called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 331
eval {...} called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 345
Kernel::System::MailAccount::IMAP::_Fetch(Kernel::System::MailAccount::IMAPTLS=HASH(0x5628629ee5a8), "CMD", 1, "CreateTime", "2016-02-26 11:09:36", "Comment", "", "IMAPFolder", ...) called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 157
Kernel::System::MailAccount::IMAP::Fetch(Kernel::System::MailAccount::IMAPTLS=HASH(0x5628629ee5a8), "Comment", "", "IMAPFolder", "INBOX", "CMD", 1, "CreateTime", ...) called at /opt/znuny-6.3.4/Kernel/System/MailAccount.pm line 649
Kernel::System::MailAccount::MailAccountFetch(Kernel::System::MailAccount=HASH(0x562862832f48), "QueueID", 0, "********ConfigID", 7, "DispatchingBy", "From", "ChangeTime", ...) called at /opt/znuny-6.3.4/Kernel/System/Console/Command/Maint/PostMaster/MailAccountFetch.pm line 173
eval {...} called at /opt/znuny-6.3.4/Kernel/System/Console/Command/Maint/PostMaster/MailAccountFetch.pm line 165
Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch::Run(Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch=HASH(0x56285f896e88)) called at /opt/znuny-6.3.4/Kernel/System/Console/BaseCommand.pm line 460
eval {...} called at /opt/znuny-6.3.4/Kernel/System/Console/BaseCommand.pm line 454
Kernel::System::Console::BaseCommand::Execute(Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch=HASH(0x56285f896e88), "--debug") called at /opt/znuny-6.3.4/Kernel/System/Console/InterfaceConsole.pm line 81
Kernel::System::Console::InterfaceConsole::Run(Kernel::System::Console::InterfaceConsole=HASH(0x562862087e20), "Maint::PostMaster::MailAccountFetch", "--debug") called at /opt/otrs/bin/otrs.Console.pl line 37
ERROR: 3 BAD User is authenticated but not connected. at /usr/share/perl5/Mail/IMAPClient.pm line 1288.
Mail::IMAPClient::_imap_command(Mail::IMAPClient=HASH(0x5628639ff4d8), "SELECT INBOX") called at /usr/share/perl5/Mail/IMAPClient.pm line 854
Mail::IMAPClient::select(Mail::IMAPClient=HASH(0x5628639ff4d8), "INBOX") called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 301
eval {...} called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 305
Kernel::System::MailAccount::IMAP::__ANON__("select", "INBOX") called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 331
eval {...} called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 345
Kernel::System::MailAccount::IMAP::_Fetch(Kernel::System::MailAccount::IMAPTLS=HASH(0x5628629ee5a8), "CMD", 1, "CreateTime", "2016-02-26 11:09:36", "Comment", "", "IMAPFolder", ...) called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 157
Kernel::System::MailAccount::IMAP::Fetch(Kernel::System::MailAccount::IMAPTLS=HASH(0x5628629ee5a8), "Comment", "", "IMAPFolder", "INBOX", "CMD", 1, "CreateTime", ...) called at /opt/znuny-6.3.4/Kernel/System/MailAccount.pm line 649
Kernel::System::MailAccount::MailAccountFetch(Kernel::System::MailAccount=HASH(0x562862832f48), "QueueID", 0, "********ConfigID", 7, "DispatchingBy", "From", "ChangeTime", ...) called at /opt/znuny-6.3.4/Kernel/System/Console/Command/Maint/PostMaster/MailAccountFetch.pm line 173
eval {...} called at /opt/znuny-6.3.4/Kernel/System/Console/Command/Maint/PostMaster/MailAccountFetch.pm line 165
Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch::Run(Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch=HASH(0x56285f896e88)) called at /opt/znuny-6.3.4/Kernel/System/Console/BaseCommand.pm line 460
eval {...} called at /opt/znuny-6.3.4/Kernel/System/Console/BaseCommand.pm line 454
Kernel::System::Console::BaseCommand::Execute(Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch=HASH(0x56285f896e88), "--debug") called at /opt/znuny-6.3.4/Kernel/System/Console/InterfaceConsole.pm line 81
Kernel::System::Console::InterfaceConsole::Run(Kernel::System::Console::InterfaceConsole=HASH(0x562862087e20), "Maint::PostMaster::MailAccountFetch", "--debug") called at /opt/otrs/bin/otrs.Console.pl line 37
ERROR: OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 Perl: 5.32.1 OS: linux Time: Fri Mar 31 08:49:43 2023
Message: Error while retrieving the messages 'IMAPTLS': Could not select:
Traceback (9013):
Module: Kernel::System::MailAccount::IMAP::_Fetch Line: 347
Module: Kernel::System::MailAccount::IMAP::Fetch Line: 157
Module: Kernel::System::MailAccount::MailAccountFetch Line: 649
Module: (eval) Line: 173
Module: Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch::Run Line: 165
Module: (eval) Line: 460
Module: Kernel::System::Console::BaseCommand::Execute Line: 454
Module: Kernel::System::Console::InterfaceConsole::Run Line: 81
Module: /opt/otrs/bin/otrs.Console.pl Line: 37
Sending: 4 CLOSE
Sent 9 bytes
Read: 4 BAD User is authenticated but not connected.
* BYE Connection closed. 14
ERROR: 4 BAD User is authenticated but not connected. at /usr/share/perl5/Mail/IMAPClient.pm line 1378.
Mail::IMAPClient::__ANON__("4 BAD User is authenticated but not connected.\x{d}\x{a}") called at /usr/share/perl5/Mail/IMAPClient.pm line 1414
Mail::IMAPClient::_get_response(Mail::IMAPClient=HASH(0x5628639ff4d8), 4, undef) called at /usr/share/perl5/Mail/IMAPClient.pm line 1340
Mail::IMAPClient::_imap_command_do(Mail::IMAPClient=HASH(0x5628639ff4d8), "CLOSE") called at /usr/share/perl5/Mail/IMAPClient.pm line 1238
Mail::IMAPClient::_imap_command(Mail::IMAPClient=HASH(0x5628639ff4d8), "CLOSE") called at /usr/share/perl5/Mail/IMAPClient.pm line 2369
Mail::IMAPClient::close(Mail::IMAPClient=HASH(0x5628639ff4d8)) called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 301
eval {...} called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 305
Kernel::System::MailAccount::IMAP::__ANON__("close") called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 521
Kernel::System::MailAccount::IMAP::_Fetch(Kernel::System::MailAccount::IMAPTLS=HASH(0x5628629ee5a8), "CMD", 1, "CreateTime", "2016-02-26 11:09:36", "Comment", "", "IMAPFolder", ...) called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 157
Kernel::System::MailAccount::IMAP::Fetch(Kernel::System::MailAccount::IMAPTLS=HASH(0x5628629ee5a8), "Comment", "", "IMAPFolder", "INBOX", "CMD", 1, "CreateTime", ...) called at /opt/znuny-6.3.4/Kernel/System/MailAccount.pm line 649
Kernel::System::MailAccount::MailAccountFetch(Kernel::System::MailAccount=HASH(0x562862832f48), "QueueID", 0, "********ConfigID", 7, "DispatchingBy", "From", "ChangeTime", ...) called at /opt/znuny-6.3.4/Kernel/System/Console/Command/Maint/PostMaster/MailAccountFetch.pm line 173
eval {...} called at /opt/znuny-6.3.4/Kernel/System/Console/Command/Maint/PostMaster/MailAccountFetch.pm line 165
Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch::Run(Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch=HASH(0x56285f896e88)) called at /opt/znuny-6.3.4/Kernel/System/Console/BaseCommand.pm line 460
eval {...} called at /opt/znuny-6.3.4/Kernel/System/Console/BaseCommand.pm line 454
Kernel::System::Console::BaseCommand::Execute(Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch=HASH(0x56285f896e88), "--debug") called at /opt/znuny-6.3.4/Kernel/System/Console/InterfaceConsole.pm line 81
Kernel::System::Console::InterfaceConsole::Run(Kernel::System::Console::InterfaceConsole=HASH(0x562862087e20), "Maint::PostMaster::MailAccountFetch", "--debug") called at /opt/otrs/bin/otrs.Console.pl line 37
ERROR: * BYE Connection closed. 14 at /usr/share/perl5/Mail/IMAPClient.pm line 1429.
Mail::IMAPClient::_get_response(Mail::IMAPClient=HASH(0x5628639ff4d8), 4, undef) called at /usr/share/perl5/Mail/IMAPClient.pm line 1340
Mail::IMAPClient::_imap_command_do(Mail::IMAPClient=HASH(0x5628639ff4d8), "CLOSE") called at /usr/share/perl5/Mail/IMAPClient.pm line 1238
Mail::IMAPClient::_imap_command(Mail::IMAPClient=HASH(0x5628639ff4d8), "CLOSE") called at /usr/share/perl5/Mail/IMAPClient.pm line 2369
Mail::IMAPClient::close(Mail::IMAPClient=HASH(0x5628639ff4d8)) called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 301
eval {...} called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 305
Kernel::System::MailAccount::IMAP::__ANON__("close") called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 521
Kernel::System::MailAccount::IMAP::_Fetch(Kernel::System::MailAccount::IMAPTLS=HASH(0x5628629ee5a8), "CMD", 1, "CreateTime", "2016-02-26 11:09:36", "Comment", "", "IMAPFolder", ...) called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 157
Kernel::System::MailAccount::IMAP::Fetch(Kernel::System::MailAccount::IMAPTLS=HASH(0x5628629ee5a8), "Comment", "", "IMAPFolder", "INBOX", "CMD", 1, "CreateTime", ...) called at /opt/znuny-6.3.4/Kernel/System/MailAccount.pm line 649
Kernel::System::MailAccount::MailAccountFetch(Kernel::System::MailAccount=HASH(0x562862832f48), "QueueID", 0, "********ConfigID", 7, "DispatchingBy", "From", "ChangeTime", ...) called at /opt/znuny-6.3.4/Kernel/System/Console/Command/Maint/PostMaster/MailAccountFetch.pm line 173
eval {...} called at /opt/znuny-6.3.4/Kernel/System/Console/Command/Maint/PostMaster/MailAccountFetch.pm line 165
Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch::Run(Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch=HASH(0x56285f896e88)) called at /opt/znuny-6.3.4/Kernel/System/Console/BaseCommand.pm line 460
eval {...} called at /opt/znuny-6.3.4/Kernel/System/Console/BaseCommand.pm line 454
Kernel::System::Console::BaseCommand::Execute(Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch=HASH(0x56285f896e88), "--debug") called at /opt/znuny-6.3.4/Kernel/System/Console/InterfaceConsole.pm line 81
Kernel::System::Console::InterfaceConsole::Run(Kernel::System::Console::InterfaceConsole=HASH(0x562862087e20), "Maint::PostMaster::MailAccountFetch", "--debug") called at /opt/otrs/bin/otrs.Console.pl line 37
ERROR: * BYE Connection closed. 14 at /usr/share/perl5/Mail/IMAPClient.pm line 1288.
Mail::IMAPClient::_imap_command(Mail::IMAPClient=HASH(0x5628639ff4d8), "CLOSE") called at /usr/share/perl5/Mail/IMAPClient.pm line 2369
Mail::IMAPClient::close(Mail::IMAPClient=HASH(0x5628639ff4d8)) called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 301
eval {...} called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 305
Kernel::System::MailAccount::IMAP::__ANON__("close") called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 521
Kernel::System::MailAccount::IMAP::_Fetch(Kernel::System::MailAccount::IMAPTLS=HASH(0x5628629ee5a8), "CMD", 1, "CreateTime", "2016-02-26 11:09:36", "Comment", "", "IMAPFolder", ...) called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 157
Kernel::System::MailAccount::IMAP::Fetch(Kernel::System::MailAccount::IMAPTLS=HASH(0x5628629ee5a8), "Comment", "", "IMAPFolder", "INBOX", "CMD", 1, "CreateTime", ...) called at /opt/znuny-6.3.4/Kernel/System/MailAccount.pm line 649
Kernel::System::MailAccount::MailAccountFetch(Kernel::System::MailAccount=HASH(0x562862832f48), "QueueID", 0, "********ConfigID", 7, "DispatchingBy", "From", "ChangeTime", ...) called at /opt/znuny-6.3.4/Kernel/System/Console/Command/Maint/PostMaster/MailAccountFetch.pm line 173
eval {...} called at /opt/znuny-6.3.4/Kernel/System/Console/Command/Maint/PostMaster/MailAccountFetch.pm line 165
Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch::Run(Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch=HASH(0x56285f896e88)) called at /opt/znuny-6.3.4/Kernel/System/Console/BaseCommand.pm line 460
eval {...} called at /opt/znuny-6.3.4/Kernel/System/Console/BaseCommand.pm line 454
Kernel::System::Console::BaseCommand::Execute(Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch=HASH(0x56285f896e88), "--debug") called at /opt/znuny-6.3.4/Kernel/System/Console/InterfaceConsole.pm line 81
Kernel::System::Console::InterfaceConsole::Run(Kernel::System::Console::InterfaceConsole=HASH(0x562862087e20), "Maint::PostMaster::MailAccountFetch", "--debug") called at /opt/otrs/bin/otrs.Console.pl line 37
Done.
But where can I check this? and especially validate that my account has all the permissions?