[SOLVED]Can't send mail

Moderator: crythias

Locked
SebRos
Znuny newbie
Posts: 3
Joined: 18 Jan 2017, 12:01
Znuny Version: 5.0.14

[SOLVED]Can't send mail

Post by SebRos »

Hello,
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
I looked in Module: Kernel::System::Email::SMTP::Send Line: 126 and i saw

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;
    }
Last edited by SebRos on 19 Jan 2017, 11:18, edited 1 time in total.
SebRos
Znuny newbie
Posts: 3
Joined: 18 Jan 2017, 12:01
Znuny Version: 5.0.14

Re: Can't send mail

Post by SebRos »

Hi,
I have more information now.
On Google Chrome or Internet explorer, i can connect on my email with https://mail.mycompany.com
But on FireFox, it don't work. I have error : bad user or password.

My OTRS run in Ubuntu 16.0.1

i'm missing plugin on the email sending server (mail.mycompany.com) ? Or on OTRS ?
SebRos
Znuny newbie
Posts: 3
Joined: 18 Jan 2017, 12:01
Znuny Version: 5.0.14

Re: Can't send mail

Post by SebRos »

Hello,
now it's work!

I select SMTP connexion but i select to password in sendmail config.
OTRS open SMTP connexion and try to connect with SSL/TLS.

For resolve, i unselected password and it's work!
Locked