I'm setting up OTRS 5.0.16 on Ubuntu 16.04 and all was proceeding well until I hit a snag. Whenever I try to send email tickets with attachments larger than 8Kb, I get a generic error message: "Impossible to send". After turning on more detailed logs I can see in the Apache error log that there is an Unexpected EOF right after the last line of the attachment is encoded:
Code: Select all
Net::SMTP::_SSL=GLOB(0x7f7a38512318)>>> dr/ZoNVb8kraUP8VnZ6K9w7HgLifMSmuvycWobG+7EaZyqfAt8tmc8KpbxkR
Net::SMTP::_SSL=GLOB(0x7f7a38512318)>>> Fh7CulE/DmbdbzawmZQpY2LSkwSeJfW8VTs6Abf/J9FBG0tJ5PsYdeB6tJB9
Net::SMTP::_SSL=GLOB(0x7f7a38512318)>>> x4SYG8h1zLrfzJAqDPklYpXWjCBEIByNQrpzcjyZPEBFek/nNImkeuhhoJlR
Net::SMTP::_SSL=GLOB(0x7f7a38512318)>>> EMLwlJDEmBu/BhFm3W9ahPAZt42LiYngOOxOmx0tYTlgXAcMTw4mEfFWqz2I
Net::SMTP::_SSL=GLOB(0x7f7a38512318)>>> S50yLmYwcB2z7n8J1DWpmtu0k26JGuDVcvJLxcCukSmhJNJgsar/L8AAfPvt
Net::SMTP::_SSL=GLOB(0x7f7a38512318)>>> u4Xr39EAAAAASUVORK5CYII=
Net::SMTP::_SSL=GLOB(0x7f7a38512318)>>>
Net::SMTP::_SSL=GLOB(0x7f7a38512318)>>> ------------=_1488271084-15590-1--
[Tue Feb 28 08:38:04 2017] -e: Net::SMTP::_SSL: Net::Cmd::datasend(): unexpected EOF on command channel: at /opt/otrs/Kernel/System/Email/SMTP.pm line 170.
ERROR: OTRS-CGI-89 Perl: 5.22.1 OS: linux Time: Tue Feb 28 08:38:04 2017
Message: Can't send message: 421[Net::SMTP::_SSL] Connection closed! Enable Net::SMTP debug for more info!
RemoteAddress: {{ IP redacted }}
RequestURI: /otrs/index.pl
Traceback (15590):
Module: Kernel::System::Email::SMTP::Send Line: 172
Module: Kernel::System::Email::Send Line: 769
Module: Kernel::System::Ticket::Article::ArticleSend Line: 2263
Module: Kernel::Modules::AgentTicketEmail::Run Line: 1340
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
I've also copied the entire base64 string and converted it back to binary, I get the original file, so it's not truncated anywhere, it fails right at the end.
Interesting to note perhaps is that whenever I attach 2 files that combined exceed 8Kb but each are smaller individually, there is no problem. I've tried several different SMTP configurations and hosts, but the problem remains. I'm all out of ideas. Can aynone help?
Thanks,
Roy