unexpected error captured: Can't call method "starttls"

Hilfe zu OTRS Problemen aller Art
Post Reply
sarcasticat
Znuny newbie
Posts: 3
Joined: 18 Apr 2023, 14:35
Znuny Version: 6.5.1
Real Name: Sebastian

unexpected error captured: Can't call method "starttls"

Post by sarcasticat »

Guten Morgen,

wir versuchen verzweifelt E-Mails mit OAuth 2.0 über SMTPTLS zu verschicken. Der Empfang mit OAuth 2.0 über IMAPS funktioniert. Folgende Fehlermeldung sehe ich im Systemprotokoll:

Code: Select all

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

Code: Select all

CommunicationLog(ID:19800,AccountType:-,AccountID:-,Direction:Outgoing,Transport:Email,ObjectLogType:Connection,ObjectLogID:23859)::Kernel::System::Email::SMTPTLS => Could not connect to host 'smtp.office365.com'. ErrorMessage: Resource temporarily unavailable
Die Znuny-Version 6.5.1 läuft bei uns unter Debian und im Container. Folgende Module sind installiert:

Code: Select all

  o Apache::DBI......................ok (v1.12)
  o Apache2::Reload..................ok (v0.13)
  o Archive::Tar.....................ok (v3.02)
  o Archive::Zip.....................ok (v1.68)
  o Authen::SASL.....................ok (v2.16)
  o CPAN::Audit......................ok (v0.15)
  o Crypt::Eksblowfish::Bcrypt.......ok (v0.009)
  o Crypt::JWT.......................ok (v0.032)
  o Crypt::OpenSSL::X509.............ok (v1.902)
  o CSS::Minifier::XS................ok (v0.11)
  o Data::UUID.......................ok (v1.226)
  o Date::Format.....................ok (v2.24)
  o DateTime.........................ok (v1.54)
    o DateTime::TimeZone.............ok (v2.47)
  o DBI..............................ok (v1.643)
  o DBD::mysql.......................ok (v4.050)
  o DBD::ODBC........................Not installed! To install, you can use: 'apt-get install -y libdbd-odbc-perl'. (optional - Required to connect to a MS-SQL database.)
  o DBD::Oracle......................Not installed! (optional - Required to connect to a Oracle database.)
  o DBD::Pg..........................Not installed! To install, you can use: 'apt-get install -y libdbd-pg-perl'. (optional - Required to connect to a PostgreSQL database.)
  o Digest::SHA......................ok (v6.02)
  o Encode::HanExtra.................ok (v0.23)
  o Excel::Writer::XLSX..............ok (v0.95)
  o Hash::Merge......................ok (v0.302)
  o iCal::Parser.....................ok (v1.21)
  o IO::Socket::SSL..................ok (v2.081)
  o JavaScript::Minifier::XS.........ok (v0.13)
  o Jq...............................Not installed! (optional - Support for extended condition checking via Jq for the generic interface.)
  o JSON::XS.........................ok (v4.03)
  o List::Util::XS...................ok (v1.55)
  o LWP::UserAgent...................ok (v6.53)
  o Mail::IMAPClient.................ok (v3.42)
    o IO::Socket::SSL................ok (v2.081)
    o Authen::NTLM...................ok (v1.09)
  o ModPerl::Util....................ok (v2.000011)
  o Moo..............................ok (v2.004004)
  o Net::DNS.........................ok (v1.29)
  o Net::LDAP........................ok (v0.68)
  o Net::LDAP::Constant..............ok (v0.24)
  o Net::SMTP........................ok (v3.15)
  o Spreadsheet::XLSX................ok (v0.15)
  o Template.........................ok (v2.27)
  o Template::Stash::XS..............ok (undef)
  o Text::Diff::FormattedHTML........ok (v0.08)
  o Text::CSV_XS.....................ok (v1.45)
  o Time::HiRes......................ok (v1.9764)
  o Time::Piece......................ok (v1.3401)
  o XML::LibXML......................ok (v2.0134)
  o XML::LibXSLT.....................ok (v1.99)
  o XML::Parser......................ok (v2.46)
  o YAML::XS.........................ok (v0.82)

Bundled modules:

  o Algorithm::Diff..................ok (v1.1903)
  o Apache::DBI......................ok (v1.12)
  o CGI..............................ok (v4.36)
  o CSS::Minifier....................ok (v0.01)
  o Class::Inspector.................ok (v1.31)
  o Crypt::PasswdMD5.................ok (v1.40)
  o Crypt::Random::Source............ok (v0.14)
  o Email::Valid.....................ok (v1.202)
  o Encode::Locale...................ok (v1.05)
  o Exporter::Tiny...................ok (v1.002001)
  o IO::Interactive..................ok (v1.022)
  o JSON.............................ok (v2.94)
  o JSON::PP.........................ok (v2.27203)
  o JavaScript::Minifier.............ok (v1.15)
  o LWP..............................ok (v6.53)
  o Linux::Distribution..............ok (v0.23)
  o Locale::Codes....................ok (v3.52)
  o MIME::Tools......................ok (v5.509)
  o Mail::Address....................ok (v2.18)
  o Mail::Internet...................ok (v2.18)
  o Math::Random::ISAAC..............ok (v1.004)
  o Math::Random::Secure.............ok (v0.080001)
  o Module::Find.....................ok (v0.15)
  o Module::Refresh..................ok (v0.17)
  o Moo..............................ok (v2.004004)
  o Mozilla::CA......................ok (v20211001)
  o Net::HTTP........................ok (v6.17)
  o Net::IMAP::Simple................ok (v1.2209)
  o Net::SSLGlue.....................ok (v1.058)
  o PDF::API2........................ok (v2.033)
  o SOAP::Lite.......................ok (v1.20)
  o Sisimai..........................ok (vv4.25.11)
  o Sys::Hostname::Long..............ok (v1.5)
  o Text::CSV........................ok (v1.95)
  o Text::Diff.......................ok (v1.44)
  o Types::TypeTiny..................ok (v1.010000)
  o URI..............................ok (v1.71)
  o YAML.............................ok (v1.23)
  o namespace::clean.................ok (v0.27)
  o parent...........................ok (v0.236)
Desweiteren haben wir folgende Systemkonfigurationen für das Sendmail-Module vorgenommen (Siehe Anhang).

Habt ihr noch eine Idee, wie ich den Fehler weiter debuggen/lösen könnte?

Beste Grüße
Sebastian
You do not have the required permissions to view the files attached to this post.
root
Administrator
Posts: 3965
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: unexpected error captured: Can't call method "starttls"

Post by root »

Hi,

die Meldung "Could not connect to host 'smtp.office365.com'" ist eindeutig. Das System kann sich nicht mit smtp.office365.com auf Port 587 verbinden. In der Regel ist das ein Infrastruktur-Problem: Firewall, DNS, IPv6/IPv4 Messup, ...

- 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 ?
sarcasticat
Znuny newbie
Posts: 3
Joined: 18 Apr 2023, 14:35
Znuny Version: 6.5.1
Real Name: Sebastian

Re: unexpected error captured: Can't call method "starttls"

Post by sarcasticat »

Hey Roy,

vielen Dank für die Antwort, das war natürlich mein erster Anhaltspunkt. Aus dem Container kann ich smtp.office365.com aber korrekt auflösen, eine Firewall haben wir nicht im Einsatz. Die Meldung "Could not connect to host 'smtp.office365.com'" erscheint erst nach "unexpected error captured: Can't call method "starttls"", daher sah es für mich so aus, als wäre irgendwo eine Fehlkonfiguration oder ein fehlendes Modul oÄ.
Hast du noch einen Tipp, wie ich das Problem weiter debuggen kann?

Beste Grüße
root
Administrator
Posts: 3965
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: unexpected error captured: Can't call method "starttls"

Post by root »

sarcasticat wrote: 20 Apr 2023, 06:15 Hey Roy,

vielen Dank für die Antwort, das war natürlich mein erster Anhaltspunkt. Aus dem Container kann ich smtp.office365.com aber korrekt auflösen, eine Firewall haben wir nicht im Einsatz. Die Meldung "Could not connect to host 'smtp.office365.com'" erscheint erst nach "unexpected error captured: Can't call method "starttls"", daher sah es für mich so aus, als wäre irgendwo eine Fehlkonfiguration oder ein fehlendes Modul oÄ.
Hast du noch einen Tipp, wie ich das Problem weiter debuggen kann?
Hi,

funktioniert denn

Code: Select all

telnet smtp.office365.com 587
von Ticketsystem aus?

- 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 ?
sarcasticat
Znuny newbie
Posts: 3
Joined: 18 Apr 2023, 14:35
Znuny Version: 6.5.1
Real Name: Sebastian

Re: unexpected error captured: Can't call method "starttls"

Post by sarcasticat »

Hey Roy,

nein - auch nicht von anderen System aus unserem Netzwerk. Da wir mehrere physische Netze haben, habe ich es testweise aus einem anderen Netz heraus probiert und dort funktioniert Telnet. Es ist also wie du bereits vermutet hattest - ein Firewall/Netzwerk-Problem.

Ich danke dir vielmals für die Denkanstöße.

Beste Grüße
Post Reply