I am seeing a strange issue on my new OTRS 5.0.21 ticket system (Ubuntu 16.04 LTS).
The outbound e-mails are using:
-SMTPTLS on port 587
-authentication
Whenever i want to send an outbound e-mail containing an attachment, the sending process fails.
When i don't have an attachment, it works fine.
Additionally, when i use plain SMTP (with auth) it also works but this cannot be the solution as i need TLS.
The debug output when sending an attachment is:
Code: Select all
Net::SMTP>>> Net::SMTP(3.05)
Net::SMTP>>> Net::Cmd(3.05)
Net::SMTP>>> Exporter(5.72)
Net::SMTP>>> IO::Socket::IP(0.37)
Net::SMTP>>> IO::Socket(1.38)
Net::SMTP>>> IO::Handle(1.35)
...
Net::SMTP::_SSL=GLOB(0x7f4387776a78)>>> SUQgWzwyNEQ1RUVFMDdENzg0N0RGNTM4Q0NDRjU3OTQ1NUUyMz4gPDI0RDVF
Net::SMTP::_SSL=GLOB(0x7f4387776a78)>>> RUUwN0Q3ODQ3REY1MzhDQ0NGNTc5NDU1RTIzPl0gPj4Kc3RhcnR4cmVmCjI5
Net::SMTP::_SSL=GLOB(0x7f4387776a78)>>> MjkzCiUlRU9GCg==
Net::SMTP::_SSL=GLOB(0x7f4387776a78)>>>
Net::SMTP::_SSL=GLOB(0x7f4387776a78)>>> ------------=_1502115482-26396-1--
[Mon Aug 7 16:18:02 2017] -e: Net::SMTP::_SSL: Net::Cmd::datasend(): unexpected EOF on command channel: at /opt/otrs/Kernel/System/Email/SMTP.pm line 171.
ERROR: OTRS-CGI-44 Perl: 5.22.1 OS: linux Time: Mon Aug 7 16:18:02 2017
Message: Can't send message: 421[Net::SMTP::_SSL] Connection closed! Enable Net::SMTP debug for more info!
RemoteAddress: xxx.xxx.xxx.xxx
RequestURI: /otrs/index.pl
Traceback (26396):
Module: Kernel::System::Email::SMTP::Send Line: 173
Module: Kernel::System::Email::Send Line: 770
Module: Kernel::System::Ticket::Article::ArticleSend Line: 2264
Module: Kernel::Modules::AgentTicketCompose::Run Line: 860
Module: Kernel::System::Web::InterfaceAgent::Run Line: 1054
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
[Mon Aug 7 16:18:02 2017] -e: Net::SMTP::_SSL: Net::Cmd::_is_closed(): unexpected EOF on command channel: at /opt/otrs/Kernel/System/Email/SMTP.pm line 177.
ERROR: OTRS-CGI-44 Perl: 5.22.1 OS: linux Time: Mon Aug 7 16:18:02 2017
Message: Impossible to send message to: Thomas Stather <Thomas.Sxxx@xxxxxxx.de> .
RemoteAddress: xxx.xxx.xxx.xxx
RequestURI: /otrs/index.pl
Traceback (26396):
Module: Kernel::System::Ticket::Article::ArticleSend Line: 2271
Module: Kernel::Modules::AgentTicketCompose::Run Line: 860
Module: Kernel::System::Web::InterfaceAgent::Run Line: 1054
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
Best,
Thomas