sorry for my bad English,
I try to send a email from OTRS but it can't work.
The configuration is:
SendmailModule = I try with SMTP, SMTPS and SMTPTLS
SendmailModule::Host = mail.mycompany.com
sendmail::Port = i try with 25, 465 and 587
SendmailModule::AuthUser = my.adresse@my.company.com.....
SendmailModule::AuthPassword = mypassword
i'm sure of my user and my password.
In error.log of Apache2 i can see:
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=GLOB(0x5628ee80dc08)<<< 220 mail.mycompany.com Microsoft ESMTP MAIL Service ready at Wed, 18 Jan 2017 10:54:40 +0100
Net::SMTP=GLOB(0x5628ee80dc08)>>> EHLO 172.16.9.37
Net::SMTP=GLOB(0x5628ee80dc08)<<< 250- mail.mycompany.com Hello [172.16.9.70]
Net::SMTP=GLOB(0x5628ee80dc08)<<< 250-SIZE 104857600
Net::SMTP=GLOB(0x5628ee80dc08)<<< 250-PIPELINING
Net::SMTP=GLOB(0x5628ee80dc08)<<< 250-DSN
Net::SMTP=GLOB(0x5628ee80dc08)<<< 250-ENHANCEDSTATUSCODES
Net::SMTP=GLOB(0x5628ee80dc08)<<< 250-STARTTLS
Net::SMTP=GLOB(0x5628ee80dc08)<<< 250-X-ANONYMOUSTLS
Net::SMTP=GLOB(0x5628ee80dc08)<<< 250-AUTH NTLM
Net::SMTP=GLOB(0x5628ee80dc08)<<< 250-X-EXPS GSSAPI NTLM
Net::SMTP=GLOB(0x5628ee80dc08)<<< 250-8BITMIME
Net::SMTP=GLOB(0x5628ee80dc08)<<< 250-BINARYMIME
Net::SMTP=GLOB(0x5628ee80dc08)<<< 250-CHUNKING
Net::SMTP=GLOB(0x5628ee80dc08)<<< 250 XRDST
Net::SMTP=GLOB(0x5628ee80dc08)>>> QUIT
Net::SMTP=GLOB(0x5628ee80dc08)<<< 221 2.0.0 Service closing transmission channel
ERROR: OTRS-CGI-78 Perl: 5.22.1 OS: linux Time: Wed Jan 18 10:54:41 2017
Message: SMTP authentication failed: mail.mycompany.com Hello [172.16.9.70]
SIZE 104857600
PIPELINING
DSN
ENHANCEDSTATUSCODES
STARTTLS
X-ANONYMOUSTLS
AUTH NTLM
X-EXPS GSSAPI NTLM
8BITMIME
BINARYMIME
CHUNKING
XRDST
! Enable Net::SMTP debug for more info!
RemoteAddress: 172.16.9.43
RequestURI: /otrs/index.pl
Traceback (3194):
Module: Kernel::System::Email::SMTP::Send Line: 126
Module: Kernel::System::Email::Send Line: 765
Module: Kernel::System::Ticket::Article::ArticleSend Line: 2248
Module: Kernel::Modules::AgentTicketEmailOutbound::SendEmail Line: 1169
Module: Kernel::Modules::AgentTicketEmailOutbound::Run Line: 68
Module: Kernel::System::Web::InterfaceAgent::Run Line: 1053
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
ERROR: OTRS-CGI-78 Perl: 5.22.1 OS: linux Time: Wed Jan 18 10:54:41 2017
Message: Impossible to send message to: toto@gmail.com .
RemoteAddress: 172.16.9.43
RequestURI: /otrs/index.pl
Traceback (3194):
Module: Kernel::System::Ticket::Article::ArticleSend Line: 2255
Module: Kernel::Modules::AgentTicketEmailOutbound::SendEmail Line: 1169
Module: Kernel::Modules::AgentTicketEmailOutbound::Run Line: 68
Module: Kernel::System::Web::InterfaceAgent::Run Line: 1053
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
Code: Select all
# check mail configuration - is there a working smtp host?
my %Result = $Self->Check();
if ( !$Result{Successful} ) {
$Kernel::OM->Get('Kernel::System::Log')->Log(
Priority => 'error',
Message => $Result{Message},
);
return;
}