Can't call method "starttls" on an undefined value

Hilfe zu OTRS Problemen aller Art
Post Reply
Beersteak
Znuny newbie
Posts: 9
Joined: 02 Aug 2022, 08:10
Znuny Version: 6.3.4
Real Name: Frederik

Can't call method "starttls" on an undefined value

Post by Beersteak »

Hallo zusammen,

wir haben nun den Sprung gewagt und sind von OTRS 6.0.25 auf Znuny 6.3.4 gewechselt.

Nach dem Upgrade funktioniert soweit alles (bis auf OAUTH2, aber da habe ich schon gesehen kommt ein Fix in 6.4.1); Ab und zu kommt eine Email vom OTRS Scheduler Daemon mit folgendem Inhalt:

ERROR: OTRS-otrs.Console.pl-Maint::Email::MailQueue-06 Perl: 5.26.1 OS: linux Time: Tue Aug 2 08:34:14 2022

Code: Select all

 Message: SMTP, connection try 1, unexpected error captured: Can't call method "starttls" on an undefined value at /srv/otrs/Kernel/System/Email/SMTP.pm line 486.


 Traceback (34906): 
   Module: Kernel::System::Email::SMTP::Check Line: 118
   Module: Kernel::System::Email::SMTP::Send Line: 291
   Module: Kernel::System::Email::SendExecute Line: 764
   Module: Kernel::System::MailQueue::Send Line: 680
   Module: Kernel::System::Console::Command::Maint::Email::MailQueue::Send Line: 199
   Module: Kernel::System::Console::Command::Maint::Email::MailQueue::Run Line: 148
   Module: (eval) Line: 460
   Module: Kernel::System::Console::BaseCommand::Execute Line: 454
   Module: (eval) Line: 143
   Module: Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker::Cron::Run Line: 122
   Module: Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker::Run Line: 236
   Module: (eval) Line: 331
   Module: main::Start Line: 331
   Module: /srv/otrs/bin/otrs.Daemon.pl Line: 152
Der Emailversand funktioniert aber soweit wir sehen einwandfrei, als SendmailModule ist Kernel::System::Email::SMTPTLS eingestellt.
SendmailModule::Host ist smtp.office365.com
SendmailModule::Port ist 587

Hat da jemand eine Idee was wir tun können?
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Can't call method "starttls" on an undefined value

Post by root »

Hallo,

was sagt denn bin/otrs.CheckModules.pl?

- Roy

P.S.: Der Fix für OAuth2 betrifft nur den Abruf mit POP3 bei Microsoft.
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
Beersteak
Znuny newbie
Posts: 9
Joined: 02 Aug 2022, 08:10
Znuny Version: 6.3.4
Real Name: Frederik

Re: Can't call method "starttls" on an undefined value

Post by Beersteak »

Hier der Auszug:

Code: Select all

  o Apache::DBI......................ok (v1.12)
  o Apache2::Reload..................ok (v0.13)
  o Archive::Tar.....................ok (v2.40)
  o Archive::Zip.....................ok (v1.60)
  o Authen::SASL.....................ok (v2.16)
  o Crypt::Eksblowfish::Bcrypt.......ok (v0.009)
  o CSS::Minifier::XS................Not installed! To install, you can use: 'cpan CSS::Minifier::XS'. (optional - Alternative to CSS::Minifier in XS, which is slightly faster than CSS::Minifier (pure Perl).)
  o Data::UUID.......................ok (v1.226)
  o Date::Format.....................ok (v2.24)
  o DateTime.........................ok (v1.45)
    o DateTime::TimeZone.............ok (v2.15)
    Please consider updating to version 2.20 or higher: This version includes recent time zone changes for Chile.
  o DBI..............................ok (v1.642)
  o DBD::mysql.......................ok (v4.046)
  o DBD::ODBC........................Not installed! To install, you can use: 'cpan DBD::ODBC'. (optional - Required to connect to a MS-SQL database.)
  o DBD::Oracle......................Not installed! To install, you can use: 'cpan DBD::Oracle'. (optional - Required to connect to a Oracle database.)
  o DBD::Pg..........................ok (v3.10.4)
  o Digest::SHA......................ok (v6.02)
  o Encode::HanExtra.................ok (v0.23)
  o Excel::Writer::XLSX..............ok (v0.95)
  o Hash::Merge......................Not installed! To install, you can use: 'cpan Hash::Merge'. (optional - Required for the creation of Excel statistical reports.)
  o IO::Socket::SSL..................ok (v2.074)
  o JavaScript::Minifier::XS.........Not installed! To install, you can use: 'cpan JavaScript::Minifier::XS'. (optional - Alternative to JavaScript::Minifier in XS, which is slightly faster than JavaScript::Minifier (pure Perl).)
  o Jq...............................Not installed! To install, you can use: 'cpan Jq'. (optional - Support for extended condition checking via Jq for the generic interface.)
  o JSON::XS.........................ok (v3.04)
  o List::Util::XS...................ok (v1.62)
  o LWP::UserAgent...................ok (v6.53)
  o Mail::IMAPClient.................ok (v3.42)
    o IO::Socket::SSL................ok (v2.074)
    o Authen::NTLM...................ok (v1.09)
  o ModPerl::Util....................ok (v2.000011)
  o Moo..............................ok (v2.003004)
  o Net::DNS.........................ok (v1.14)
  o Net::LDAP........................ok (v0.65)
  o Net::SMTP........................ok (v3.14)
  o Spreadsheet::XLSX................Not installed! To install, you can use: 'cpan Spreadsheet::XLSX'. (optional - Spreadsheet::XLSX enables import and export of Excel files in certain dialogs.)
  o Template.........................ok (v2.27)
  o Template::Stash::XS..............ok (undef)
  o Text::Diff::FormattedHTML........ok (v0.08)
  o Text::CSV_XS.....................ok (v1.34)
  o Time::HiRes......................ok (v1.9764)
  o XML::LibXML......................ok (v2.0132)
  o XML::LibXSLT.....................ok (v1.95)
  o XML::Parser......................ok (v2.44)
  o YAML::XS.........................ok (v0.69)
PS: Ja wir rufen per POP3 ab, wegen OAUTH sind wir überhaupt erst gewechselt; deshalb warten wir da sehnlichst auf den Fix ;)
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Can't call method "starttls" on an undefined value

Post by root »

Beersteak wrote: 02 Aug 2022, 10:11 PS: Ja wir rufen per POP3 ab, wegen OAUTH sind wir überhaupt erst gewechselt; deshalb warten wir da sehnlichst auf den Fix ;)
JFI: Die 6.4.2 wurde am Donnerstag released.
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
Beersteak
Znuny newbie
Posts: 9
Joined: 02 Aug 2022, 08:10
Znuny Version: 6.3.4
Real Name: Frederik

Re: Can't call method "starttls" on an undefined value

Post by Beersteak »

root wrote: 02 Aug 2022, 11:21
Beersteak wrote: 02 Aug 2022, 10:11 PS: Ja wir rufen per POP3 ab, wegen OAUTH sind wir überhaupt erst gewechselt; deshalb warten wir da sehnlichst auf den Fix ;)
JFI: Die 6.4.2 wurde am Donnerstag released.
Es gibt aber noch kein ITSM für 6.4 oder? Darauf muss ich leider warten
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Can't call method "starttls" on an undefined value

Post by root »

Beersteak wrote: 02 Aug 2022, 11:40
root wrote: 02 Aug 2022, 11:21
Beersteak wrote: 02 Aug 2022, 10:11 PS: Ja wir rufen per POP3 ab, wegen OAUTH sind wir überhaupt erst gewechselt; deshalb warten wir da sehnlichst auf den Fix ;)
JFI: Die 6.4.2 wurde am Donnerstag released.
Es gibt aber noch kein ITSM für 6.4 oder? Darauf muss ich leider warten
Doch, die einzelnen Paket hier: https://download.znuny.org/releases/itsm/packages6x/ und das Bundle hier: https://download.znuny.org/releases/itsm/bundle6x/

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Can't call method "starttls" on an undefined value

Post by root »

Beersteak wrote: 02 Aug 2022, 09:41 Der Emailversand funktioniert aber soweit wir sehen einwandfrei, als SendmailModule ist Kernel::System::Email::SMTPTLS eingestellt.
SendmailModule::Host ist smtp.office365.com
SendmailModule::Port ist 587

Hat da jemand eine Idee was wir tun können?
Ja, eine Idee wäre es auch Kernel::System::Email::SMTP anstelle von Kernel::System::Email::SMTPTLS zu nehmen. Das warum und was der Unterschied zwischen SMTPTLS und STARTTLS ist kann googeln.

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
Beersteak
Znuny newbie
Posts: 9
Joined: 02 Aug 2022, 08:10
Znuny Version: 6.3.4
Real Name: Frederik

Re: Can't call method "starttls" on an undefined value

Post by Beersteak »

Ich habe jetzt mal Kernel::System::Email::SMTP eingestellt. Emailversand geht, ich werde es nun beobachten.

Währenddessen kann ich das Update auf unserem Testsystem installieren.
Als ich die PROD am Samstag aktualisiert habe, war leider das ITSM Bundle noch nicht da, hatte leider nur da geschaut. Doof! :lol:
Beersteak
Znuny newbie
Posts: 9
Joined: 02 Aug 2022, 08:10
Znuny Version: 6.3.4
Real Name: Frederik

Re: Can't call method "starttls" on an undefined value

Post by Beersteak »

Moin,

gestern blieb es ruhig, leider trat der Fehler heute morgen aber wieder auf

Betreff: OTRS Scheduler Daemon Cron: MailQueueSend

Code: Select all

ERROR: OTRS-otrs.Console.pl-Maint::Email::MailQueue-06 Perl: 5.26.1 OS: linux Time: Wed Aug 3 07:52:19 2022

 Message: SMTP, connection try 1, unexpected error captured: Can't call method "starttls" on an undefined value at /srv/otrs/Kernel/System/Email/SMTP.pm line 486.


 Traceback (50348): 
   Module: Kernel::System::Email::SMTP::Check Line: 118
   Module: Kernel::System::Email::SMTP::Send Line: 291
   Module: Kernel::System::Email::SendExecute Line: 764
   Module: Kernel::System::MailQueue::Send Line: 680
   Module: Kernel::System::Console::Command::Maint::Email::MailQueue::Send Line: 199
   Module: Kernel::System::Console::Command::Maint::Email::MailQueue::Run Line: 148
   Module: (eval) Line: 460
   Module: Kernel::System::Console::BaseCommand::Execute Line: 454
   Module: (eval) Line: 143
   Module: Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker::Cron::Run Line: 122
   Module: Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker::Run Line: 236
   Module: (eval) Line: 331
   Module: main::Start Line: 331
   Module: /srv/otrs/bin/otrs.Daemon.pl Line: 152
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Can't call method "starttls" on an undefined value

Post by root »

Beersteak wrote: 03 Aug 2022, 08:15 gestern blieb es ruhig, leider trat der Fehler heute morgen aber wieder auf
Hallo,

welches Linux Distribution nutzt Du und welche Perl-Version (perl -V).

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
Beersteak
Znuny newbie
Posts: 9
Joined: 02 Aug 2022, 08:10
Znuny Version: 6.3.4
Real Name: Frederik

Re: Can't call method "starttls" on an undefined value

Post by Beersteak »

Wir nutzen openSUSE Leap 15.2:

Code: Select all

NAME="openSUSE Leap"
VERSION="15.2"
ID="opensuse-leap"
ID_LIKE="suse opensuse"
VERSION_ID="15.2"
PRETTY_NAME="openSUSE Leap 15.2"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:leap:15.2"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"
Perl ist Version 5.26.1

Code: Select all

perl -V
Summary of my perl5 (revision 5 version 26 subversion 1) configuration:

  Platform:
    osname=linux
    osvers=5.3.18-lp152.19-default
    archname=x86_64-linux-thread-multi
    uname='reproducible'
    config_args='-ds -e -Dprefix=/usr -Dvendorprefix=/usr -Dinstallusrbinperl -Dusethreads -Di_db -Di_dbm -Di_ndbm -Di_gdbm -Dd_dbm_open -Duseshrplib=true -Doptimize=-fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -g -Wall -pipe -Accflags=-DPERL_USE_SAFE_PUTENV -Dotherlibdirs=/usr/lib/perl5/site_perl -Dinc_version_list=none'
    hint=recommended
    useposix=true
    d_sigaction=define
    useithreads=define
    usemultiplicity=define
    use64bitint=define
    use64bitall=define
    uselongdouble=undef
    usemymalloc=n
    default_inc_excludes_dot=define
    bincompat5005=undef
  Compiler:
    cc='cc'
    ccflags ='-D_REENTRANT -D_GNU_SOURCE -DPERL_USE_SAFE_PUTENV -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
    optimize='-fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -g -Wall -pipe'
    cppflags='-D_REENTRANT -D_GNU_SOURCE -DPERL_USE_SAFE_PUTENV -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong'
    ccversion=''
    gccversion='7.5.0'
    gccosandvers=''
    intsize=4
    longsize=8
    ptrsize=8
    doublesize=8
    byteorder=12345678
    doublekind=3
    d_longlong=define
    longlongsize=8
    d_longdbl=define
    longdblsize=16
    longdblkind=3
    ivtype='long'
    ivsize=8
    nvtype='double'
    nvsize=8
    Off_t='off_t'
    lseeksize=8
    alignbytes=8
    prototype=define
  Linker and Libraries:
    ld='cc'
    ldflags =' -L/usr/local/lib64 -fstack-protector-strong'
    libpth=/usr/local/lib /usr/lib64/gcc/x86_64-suse-linux/7/include-fixed /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/lib /usr/lib /lib/../lib64 /usr/lib/../lib64 /lib /lib64 /usr/lib64 /usr/local/lib64
    libs=-lm -ldl -lcrypt -lpthread
    perllibs=-lm -ldl -lcrypt -lpthread
    libc=/lib64/libc-2.26.so
    so=so
    useshrplib=true
    libperl=libperl.so
    gnulibc_version='2.26'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs
    dlext=so
    d_dlsymun=undef
    ccdlflags='-Wl,-E -Wl,-rpath,/usr/lib/perl5/5.26.1/x86_64-linux-thread-multi/CORE'
    cccdlflags='-fPIC'
    lddlflags='-shared -L/usr/local/lib64 -fstack-protector-strong'


Characteristics of this binary (from libperl):
  Compile-time options:
    HAS_TIMES
    MULTIPLICITY
    PERLIO_LAYERS
    PERL_COPY_ON_WRITE
    PERL_DONT_CREATE_GVSV
    PERL_IMPLICIT_CONTEXT
    PERL_MALLOC_WRAP
    PERL_OP_PARENT
    PERL_PRESERVE_IVUV
    PERL_USE_SAFE_PUTENV
    USE_64_BIT_ALL
    USE_64_BIT_INT
    USE_ITHREADS
    USE_LARGE_FILES
    USE_LOCALE
    USE_LOCALE_COLLATE
    USE_LOCALE_CTYPE
    USE_LOCALE_NUMERIC
    USE_LOCALE_TIME
    USE_PERLIO
    USE_PERL_ATOF
    USE_REENTRANT_API
  Built under linux
  Compiled at Jun  9 2020 12:00:00
  @INC:
    /usr/lib/perl5/site_perl/5.26.1/x86_64-linux-thread-multi
    /usr/lib/perl5/site_perl/5.26.1
    /usr/lib/perl5/vendor_perl/5.26.1/x86_64-linux-thread-multi
    /usr/lib/perl5/vendor_perl/5.26.1
    /usr/lib/perl5/5.26.1/x86_64-linux-thread-multi
    /usr/lib/perl5/5.26.1
    /usr/lib/perl5/site_perl
Beersteak
Znuny newbie
Posts: 9
Joined: 02 Aug 2022, 08:10
Znuny Version: 6.3.4
Real Name: Frederik

Re: Can't call method "starttls" on an undefined value

Post by Beersteak »

Update:
Oh ich hatte wohl die Einstellung nicht in Betrieb genommen, als ich das aber jetzt getan habe gingen keine Emails mehr raus.
Auszug aus dem Log:
SMTP authentication failed (SMTP code: 500, ErrorMessage: 500, Command unknown: 'AUTH').

Kernel::System::Email Trying to send the email using backend 'Kernel::System::Email::SMTP'. 03.08.2022 09:36:01
8 Kernel::System::Email::SMTP Received message for sending, validating message contents. 03.08.2022 09:36:01
9 Kernel::System::Email Error sending message using backend 'Kernel::System::Email::SMTP'. 03.08.2022 09:36:01
10 Kernel::System::MailQueue Message could not be sent! Error message: SMTP authentication failed: 500, Command unknown: 'AUTH'! 03.08.2022 09:36:01
11 Kernel::System::MailQueue Permanent sending problem or we reached the sending attempt limit. Message will be removed
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Can't call method "starttls" on an undefined value

Post by root »

Hi,

So, ich habe jetzt noch mal sowhl SMTP als auch SMTPTLS gecheckt und beiden unterstützen STARTTLS. Der einzige Unterschied ist das SMTPTLS vom Verbindungsbeginn an verschlüsselt. Der initiale Fehler deutet darauf hin das der SMTP Server in der EHLO/HELO Sequenz kein STARTTLS zurückliefert. Ich habe das mal mit telnet gecheckt und das kommt immer. Der Fehler ist mir so noch nie untergekommen und wir haben so ziemlich alle Distros im Einsatz, ausser die mit SuSE im Namen. Aber daran sollte das eigentlich nicht liegen.

Habt Ihr evtl. eine Security-Appliance im Einsatz die ausgehende Verbindungen inspiziert? Ich würde jetzt mal auf der Linux-Ebene mit SWAKS die Verbindung mehrmals testen, das gibt den besten Einblick.

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
Beersteak
Znuny newbie
Posts: 9
Joined: 02 Aug 2022, 08:10
Znuny Version: 6.3.4
Real Name: Frederik

Re: Can't call method "starttls" on an undefined value

Post by Beersteak »

Moin,

ich habe mal in der SMTP.pm das Debuglevel auf 1000 gestellt.

Mit Kernel::System::Email::SMTPTLS:

Code: Select all

Net::SMTP>>> Net::SMTP(3.14)
Net::SMTP>>>   Net::Cmd(3.14)
Net::SMTP>>>     Exporter(5.74)
Net::SMTP>>>   IO::Socket::IP(0.41)
Net::SMTP>>>     IO::Socket(1.49)
Net::SMTP>>>       IO::Handle(1.48)
Net::SMTP=GLOB(0x555faf9ee548)<<< 220 AS4P251CA0005.outlook.office365.com Microsoft ESMTP MAIL Service ready at Thu, 4 Aug 2022 07:11:24 +0000
Net::SMTP=GLOB(0x555faf9ee548)>>> EHLO XXX.xxx.de
Net::SMTP=GLOB(0x555faf9ee548)<<< 250-AS4P251CA0005.outlook.office365.com Hello [81.173.210.194]
Net::SMTP=GLOB(0x555faf9ee548)<<< 250-SIZE 157286400
Net::SMTP=GLOB(0x555faf9ee548)<<< 250-PIPELINING
Net::SMTP=GLOB(0x555faf9ee548)<<< 250-DSN
Net::SMTP=GLOB(0x555faf9ee548)<<< 250-ENHANCEDSTATUSCODES
Net::SMTP=GLOB(0x555faf9ee548)<<< 250-STARTTLS
Net::SMTP=GLOB(0x555faf9ee548)<<< 250-8BITMIME
Net::SMTP=GLOB(0x555faf9ee548)<<< 250-BINARYMIME
Net::SMTP=GLOB(0x555faf9ee548)<<< 250-CHUNKING
Net::SMTP=GLOB(0x555faf9ee548)<<< 250 SMTPUTF8
Net::SMTP=GLOB(0x555faf9ee548)>>> STARTTLS
Net::SMTP=GLOB(0x555faf9ee548)<<< 220 2.0.0 SMTP server ready
Net::SMTP::_SSL=GLOB(0x555faf9ee548)>>> EHLO XXX.xxx.de
Net::SMTP::_SSL=GLOB(0x555faf9ee548)<<< 250-AS4P251CA0005.outlook.office365.com Hello [81.173.210.194]
Net::SMTP::_SSL=GLOB(0x555faf9ee548)<<< 250-SIZE 157286400
Net::SMTP::_SSL=GLOB(0x555faf9ee548)<<< 250-PIPELINING
Net::SMTP::_SSL=GLOB(0x555faf9ee548)<<< 250-DSN
Net::SMTP::_SSL=GLOB(0x555faf9ee548)<<< 250-ENHANCEDSTATUSCODES
Net::SMTP::_SSL=GLOB(0x555faf9ee548)<<< 250-AUTH LOGIN XOAUTH2
Net::SMTP::_SSL=GLOB(0x555faf9ee548)<<< 250-8BITMIME
Net::SMTP::_SSL=GLOB(0x555faf9ee548)<<< 250-BINARYMIME
Net::SMTP::_SSL=GLOB(0x555faf9ee548)<<< 250-CHUNKING
Net::SMTP::_SSL=GLOB(0x555faf9ee548)<<< 250 SMTPUTF8
Net::SMTP::_SSL=GLOB(0x555faf9ee548)>>> AUTH LOGIN
Net::SMTP::_SSL=GLOB(0x555faf9ee548)<<< 334 VXXXXXXXXU6
Net::SMTP::_SSL=GLOB(0x555faf9ee548)<<< (decoded) Username:
Net::SMTP::_SSL=GLOB(0x555faf9ee548)>>> (decoded) ticket@xxx.de
Net::SMTP::_SSL=GLOB(0x555faf9ee548)>>> dGXXXXXXXXXXXXXLmRl
Net::SMTP::_SSL=GLOB(0x555faf9ee548)<<< 334 UGXXXXXXXX6
Net::SMTP::_SSL=GLOB(0x555faf9ee548)<<< (decoded) Password:
Net::SMTP::_SSL=GLOB(0x555faf9ee548)>>> (decoded) XXXXX
Net::SMTP::_SSL=GLOB(0x555faf9ee548)>>> Q2XXXXXXXXXX5JCU=
Net::SMTP::_SSL=GLOB(0x555faf9ee548)<<< 235 2.7.0 Authentication successful
Net::SMTP::_SSL=GLOB(0x555faf9ee548)>>> MAIL FROM:<ticket@xxx.de>
Net::SMTP::_SSL=GLOB(0x555faf9ee548)<<< 250 2.1.0 Sender OK
Net::SMTP::_SSL=GLOB(0x555faf9ee548)>>> RCPT TO:<xxx@xxx.de>
Net::SMTP::_SSL=GLOB(0x555faf9ee548)<<< 250 2.1.5 Recipient OK
Net::SMTP::_SSL=GLOB(0x555faf9ee548)>>> DATA
Net::SMTP::_SSL=GLOB(0x555faf9ee548)<<< 354 Start mail input; end with <CRLF>.<CRLF>
Net::SMTP::_SSL=GLOB(0x555faf9ee548)>>> MIME-Version: 1.0
Net::SMTP::_SSL=GLOB(0x555faf9ee548)>>> From: xxx Ticketsystem <ticket@xxx.de>
Net::SMTP::_SSL=GLOB(0x555faf9ee548)>>> Subject: [Ticket#2022071206000145] Test1
Net::SMTP::_SSL=GLOB(0x555faf9ee548)>>> To: "XXX" <xxx@xxx.de>
Net::SMTP::_SSL=GLOB(0x555faf9ee548)>>> Message-ID: <1659597080.259445.089350182@XXX.xxx.de>

Net::SMTP::_SSL=GLOB(0x555faf9ee548)>>> .
Net::SMTP::_SSL=GLOB(0x555faf9ee548)<<< 250 2.0.0 OK <1659597080.259445.089350182@XXX.xxx.de> [Hostname=AM9P193MB1652.EURP193.PROD.OUTLOOK.COM]
Net::SMTP::_SSL=GLOB(0x555faf9ee548)>>> QUIT
Net::SMTP::_SSL=GLOB(0x555faf9ee548)<<< 221 2.0.0 Service closing transmission channel
diese Email kommt auch an, leider ist der "unexpected error captured: Can't call method "starttls" on an undefined value at" sporadisch und trifft nicht jede Email

mit SMTP:

Code: Select all

Net::SMTP>>> Net::SMTP(3.14)
Net::SMTP>>>   Net::Cmd(3.14)
Net::SMTP>>>     Exporter(5.74)
Net::SMTP>>>   IO::Socket::IP(0.41)
Net::SMTP>>>     IO::Socket(1.49)
Net::SMTP>>>       IO::Handle(1.48)
Net::SMTP=GLOB(0x56138e77aea8)<<< 220 FR3P281CA0160.outlook.office365.com Microsoft ESMTP MAIL Service ready at Thu, 4 Aug 2022 07:12:41 +0000
Net::SMTP=GLOB(0x56138e77aea8)>>> EHLO XXXX.xxx.de
Net::SMTP=GLOB(0x56138e77aea8)<<< 250-FR3P281CA0160.outlook.office365.com Hello [81.173.210.194]
Net::SMTP=GLOB(0x56138e77aea8)<<< 250-SIZE 157286400
Net::SMTP=GLOB(0x56138e77aea8)<<< 250-PIPELINING
Net::SMTP=GLOB(0x56138e77aea8)<<< 250-DSN
Net::SMTP=GLOB(0x56138e77aea8)<<< 250-ENHANCEDSTATUSCODES
Net::SMTP=GLOB(0x56138e77aea8)<<< 250-STARTTLS
Net::SMTP=GLOB(0x56138e77aea8)<<< 250-8BITMIME
Net::SMTP=GLOB(0x56138e77aea8)<<< 250-BINARYMIME
Net::SMTP=GLOB(0x56138e77aea8)<<< 250-CHUNKING
Net::SMTP=GLOB(0x56138e77aea8)<<< 250 SMTPUTF8
Net::SMTP=GLOB(0x56138e77aea8)>>> QUIT
Net::SMTP=GLOB(0x56138e77aea8)<<< 221 2.0.0 Service closing transmission channel
ERROR: OTRS-otrs.Console.pl-Maint::Email::MailQueue-06 Perl: 5.26.1 OS: linux Time: Thu Aug 4 09:12:42 2022

 Message: CommunicationLog(ID:2529517,AccountType:-,AccountID:-,Direction:Outgoing,Transport:Email,ObjectLogType:Connection,ObjectLogID:3843222)::Kernel::System::Email::SMTP => SMTP authentication failed (SMTP code: 500, ErrorMessage: 500, Command unknown: 'AUTH').

 Traceback (53558):
   Module: Kernel::System::CommunicationLog::_LogError Line: 535
   Module: Kernel::System::CommunicationLog::ObjectLog Line: 303
   Module: Kernel::System::Email::SMTP::Check Line: 246
   Module: Kernel::System::Email::SMTP::Send Line: 292
   Module: Kernel::System::Email::SendExecute Line: 764
   Module: Kernel::System::MailQueue::Send Line: 680
   Module: Kernel::System::Console::Command::Maint::Email::MailQueue::Send Line: 199
   Module: Kernel::System::Console::Command::Maint::Email::MailQueue::Run Line: 148
   Module: (eval) Line: 460
   Module: Kernel::System::Console::BaseCommand::Execute Line: 454
   Module: Kernel::System::Console::InterfaceConsole::Run Line: 81
   Module: bin/otrs.Console.pl Line: 37
Beersteak
Znuny newbie
Posts: 9
Joined: 02 Aug 2022, 08:10
Znuny Version: 6.3.4
Real Name: Frederik

Re: Can't call method "starttls" on an undefined value

Post by Beersteak »

Moin,

mit Upgrade auf 6.4.2 und Umstellung auf OAuth2 scheint das Thema erledigt zu sein, zumindest kam seit dem Update am Wochenende keine Email mehr. Sehr komisch.
Eingestellt ist weiterhin Kernel::System::Email::SMTPTLS
Post Reply