Não consigo enviar e-mails em nenhum protocolo do OTRS [RESOLVIDO]

Post Reply
fakezero
OTRS newbie
Posts: 7
Joined: 12 Jun 2020, 16:55
OTRS Version?: 6.0.28
Real Name: Alexandre de Sales Santos
Company: Sudacall

Não consigo enviar e-mails em nenhum protocolo do OTRS [RESOLVIDO]

Post by fakezero »

Já tentei de tudo, mas não consigo fazer com que o OTRS envie e-mails.

Minha versão é a 6.0.28

Os e-mails são gerados na queue. Mas não são enviados

Alguém pode me ajudar?

Code: Select all

error	OTRS-otrs.Console.pl-Maint::Email::MailQueue-01	There was an error executing Execute() in Kernel::System::Console::Command::Maint::Email::MailQueue: ERROR: OTRS-otrs.Console.pl-Maint::Email::MailQueue-01 Perl: 5.28.1 OS: linux Time: Sat Jun 20 12:39:17 2020
Last edited by fakezero on 29 Jun 2020, 18:37, edited 1 time in total.

joserribeiro26
OTRS newbie
Posts: 42
Joined: 26 Jan 2012, 16:04
OTRS Version?: 6.0.28
Real Name: José Ribeiro
Company: Service Up- OTRSinBox
Contact:

Re: Não consigo enviar e-mails em nenhum protocolo do OTRS

Post by joserribeiro26 »

Alexandre,

Manda o resultado do CheckModules pra aqui.

fakezero
OTRS newbie
Posts: 7
Joined: 12 Jun 2020, 16:55
OTRS Version?: 6.0.28
Real Name: Alexandre de Sales Santos
Company: Sudacall

Re: Não consigo enviar e-mails em nenhum protocolo do OTRS

Post by fakezero »

Olá, segue:

Utilizo o Google Cloud para hospedar essa aplicação.

perl /opt/otrs/bin/otrs.CheckModules.pl
o Apache::DBI......................ok (v1.12)
o Apache2::Reload..................ok (v0.13)
o Archive::Tar.....................ok (v2.30)
o Archive::Zip.....................ok (v1.64)
o Crypt::Eksblowfish::Bcrypt.......ok (v0.009)
o Date::Format.....................ok (v2.24)
o DateTime.........................ok (v1.50)
o DateTime::TimeZone.............ok (v2.23)
o DBI..............................ok (v1.642)
o DBD::mysql.......................ok (v4.050)
o DBD::ODBC........................ok (v1.60)
o DBD::Oracle......................Not installed! (optional - Required to conn ect to a Oracle database.)
o DBD::Pg..........................ok (v3.7.4)
o Digest::SHA......................ok (v6.01)
o Encode::HanExtra.................ok (v0.23)
o IO::Socket::SSL..................ok (v2.060)
Please consider updating to version 2.066 or higher: This version fixes emai l sending (bug#14357).
o JSON::XS.........................ok (v3.04)
o List::Util::XS...................ok (v1.50)
o LWP::UserAgent...................ok (v6.26)
o Mail::IMAPClient.................ok (v3.42)
o IO::Socket::SSL................ok (v2.060)
Please consider updating to version 2.066 or higher: This version fixes emai l sending (bug#14357).
o Authen::SASL...................ok (v2.16)
o Authen::NTLM...................ok (v1.09)
o ModPerl::Util....................ok (v2.000010)
o Net::DNS.........................ok (v1.19)
o Net::LDAP........................ok (v0.65)
o Net::SMTP........................ok (v3.11)
o Template.........................ok (v2.27)
o Template::Stash::XS..............ok (undef)
o Text::CSV_XS.....................ok (v1.38)
o Time::HiRes......................ok (v1.9759)
o XML::LibXML......................ok (v2.0134)
o XML::LibXSLT.....................ok (v1.96)
o XML::Parser......................ok (v2.44)
o YAML::XS.........................ok (v0.76)

joserribeiro26
OTRS newbie
Posts: 42
Joined: 26 Jan 2012, 16:04
OTRS Version?: 6.0.28
Real Name: José Ribeiro
Company: Service Up- OTRSinBox
Contact:

Re: Não consigo enviar e-mails em nenhum protocolo do OTRS

Post by joserribeiro26 »

Atualize o IO::Socket::SSL

cpan IO::Socket::SSL

Qual e-mail esta usando ? G Suite ?

Att.

fakezero
OTRS newbie
Posts: 7
Joined: 12 Jun 2020, 16:55
OTRS Version?: 6.0.28
Real Name: Alexandre de Sales Santos
Company: Sudacall

Re: Não consigo enviar e-mails em nenhum protocolo do OTRS

Post by fakezero »

Então, atualizei. Me parece o mesmo erro:

Code: Select all

Mon Jun 22 13:47:08 2020 (America/Sao_Paulo)	error	OTRS-otrs.Console.pl-Maint::Email::MailQueue-01	There was an error executing Execute() in Kernel::System::Console::Command::Maint::Email::MailQueue: ERROR: OTRS-otrs.Console.pl-Maint::Email::MailQueue-01 Perl: 5.28.1 OS: linux Time: Mon Jun 22 16:47:08 2020

Code: Select all

CommunicationLog(ID:26079,AccountType:-,AccountID:-,Direction:Outgoing,Transport:Email,ObjectLogType:Message,ObjectLogID:36659)::Kernel::System::MailQueue => Temporary problem returned from server, requeuing message for sending. Message: SMTPCode: -, ErrorMessage: Can't connect to otrs@sudatech.com.br: Resource temporarily unavailable!
Não, estou utilizando um domínio próprio via WHM/Cpanel.

Cheguei a testar via G-Suite também, mas não funcionou.

joserribeiro26
OTRS newbie
Posts: 42
Joined: 26 Jan 2012, 16:04
OTRS Version?: 6.0.28
Real Name: José Ribeiro
Company: Service Up- OTRSinBox
Contact:

Re: Não consigo enviar e-mails em nenhum protocolo do OTRS

Post by joserribeiro26 »

Alexandre, passa o CheckModules novamente pra vermos em qual versão ficou.

Segundo, testa o envio de e-mail via SMTP através do outlook ou outro cliente de e-mail pra ter certeza se esta habilitado e funcionando corretamente.

fakezero
OTRS newbie
Posts: 7
Joined: 12 Jun 2020, 16:55
OTRS Version?: 6.0.28
Real Name: Alexandre de Sales Santos
Company: Sudacall

Re: Não consigo enviar e-mails em nenhum protocolo do OTRS

Post by fakezero »

Pelo jeito não atualizou o cpan IO::Socket::SSL

-------------------------------------------

perl /opt/otrs/bin/otrs.CheckModules.pl
o Apache::DBI......................ok (v1.12)
o Apache2::Reload..................ok (v0.13)
o Archive::Tar.....................ok (v2.30)
o Archive::Zip.....................ok (v1.64)
o Crypt::Eksblowfish::Bcrypt.......ok (v0.009)
o Date::Format.....................ok (v2.24)
o DateTime.........................ok (v1.50)
o DateTime::TimeZone.............ok (v2.23)
o DBI..............................ok (v1.642)
o DBD::mysql.......................ok (v4.050)
o DBD::ODBC........................ok (v1.60)
o DBD::Oracle......................Not installed! (optional - Required to conn ect to a Oracle database.)
o DBD::Pg..........................ok (v3.7.4)
o Digest::SHA......................ok (v6.01)
o Encode::HanExtra.................ok (v0.23)
o IO::Socket::SSL..................ok (v2.060)
Please consider updating to version 2.066 or higher: This version fixes emai l sending (bug#14357).
o JSON::XS.........................ok (v3.04)
o List::Util::XS...................ok (v1.50)
o LWP::UserAgent...................ok (v6.26)
o Mail::IMAPClient.................ok (v3.42)
o IO::Socket::SSL................ok (v2.060)
Please consider updating to version 2.066 or higher: This version fixes emai l sending (bug#14357).
o Authen::SASL...................ok (v2.16)
o Authen::NTLM...................ok (v1.09)
o ModPerl::Util....................ok (v2.000010)
o Net::DNS.........................ok (v1.19)
o Net::LDAP........................ok (v0.65)
o Net::SMTP........................ok (v3.11)
o Template.........................ok (v2.27)
o Template::Stash::XS..............ok (undef)
o Text::CSV_XS.....................ok (v1.38)
o Time::HiRes......................ok (v1.9759)
o XML::LibXML......................ok (v2.0134)
o XML::LibXSLT.....................ok (v1.96)
o XML::Parser......................ok (v2.44)
o YAML::XS.........................ok (v0.76)

Tentei atualizar de novo. Recebi esse resultado:

Code: Select all

Loading internal logger. Log::Log4perl recommended for better logging
Reading '/root/.cpan/Metadata'
  Database was generated on Mon, 22 Jun 2020 16:17:03 GMT
Running install for module 'IO::Socket::SSL'
Checksum for /root/.cpan/sources/authors/id/S/SU/SULLR/IO-Socket-SSL-2.068.tar.gz ok
Configuring S/SU/SULLR/IO-Socket-SSL-2.068.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Warning: prerequisite Mozilla::CA 0 not found.
Generating a Unix-style Makefile
Writing Makefile for IO::Socket::SSL
Writing MYMETA.yml and MYMETA.json
  SULLR/IO-Socket-SSL-2.068.tar.gz
  /usr/bin/perl Makefile.PL INSTALLDIRS=site -- OK
Running make for S/SU/SULLR/IO-Socket-SSL-2.068.tar.gz
---- Unsatisfied dependencies detected during ----
----     SULLR/IO-Socket-SSL-2.068.tar.gz     ----
    Mozilla::CA [requires]
Running install for module 'Mozilla::CA'
Checksum for /root/.cpan/sources/authors/id/A/AB/ABH/Mozilla-CA-20200520.tar.gz ok
Configuring A/AB/ABH/Mozilla-CA-20200520.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Invalid LICENSE value 'mozilla_2_0' ignored
Generating a Unix-style Makefile
Writing Makefile for Mozilla::CA
Invalid LICENSE value 'mozilla_2_0' ignored
Writing MYMETA.yml and MYMETA.json
  ABH/Mozilla-CA-20200520.tar.gz
  /usr/bin/perl Makefile.PL INSTALLDIRS=site -- OK
Running make for A/AB/ABH/Mozilla-CA-20200520.tar.gz
  ABH/Mozilla-CA-20200520.tar.gz
  make -- NOT OK
  No such file or directory
  SULLR/IO-Socket-SSL-2.068.tar.gz
  Has already been unwrapped into directory /root/.cpan/build/IO-Socket-SSL-2.068-6
  SULLR/IO-Socket-SSL-2.068.tar.gz
  Has already been prepared
Running make for S/SU/SULLR/IO-Socket-SSL-2.068.tar.gz
Warning: Prerequisite 'Mozilla::CA => 0' for 'SULLR/IO-Socket-SSL-2.068.tar.gz' failed when processing 'ABH/Mozilla-CA-20200520.tar.gz' with 'make => NO'. Continuing, but chances to succeed are limited.
  SULLR/IO-Socket-SSL-2.068.tar.gz
  make -- NOT OK
  No such file or directory
Adicionei os dois e-mails do OTRS no outlook. Estão funcionando.

Inclusive, a mensagem de configuração do outlook ficou salva como ticket no OTRS:

Image

joserribeiro26
OTRS newbie
Posts: 42
Joined: 26 Jan 2012, 16:04
OTRS Version?: 6.0.28
Real Name: José Ribeiro
Company: Service Up- OTRSinBox
Contact:

Re: Não consigo enviar e-mails em nenhum protocolo do OTRS

Post by joserribeiro26 »

Eu acho que esta faltando alguma biblioteca, faz o seguinte.

yum install make gcc ou apt-get install make gcc (se for debian)

Depois execute isso novamente.

fakezero
OTRS newbie
Posts: 7
Joined: 12 Jun 2020, 16:55
OTRS Version?: 6.0.28
Real Name: Alexandre de Sales Santos
Company: Sudacall

Re: Não consigo enviar e-mails em nenhum protocolo do OTRS

Post by fakezero »

Acho que atualizou o modulo:

Code: Select all

perl /opt/otrs/bin/otrs.CheckModules.pl
  o Apache::DBI......................ok (v1.12)
  o Apache2::Reload..................ok (v0.13)
  o Archive::Tar.....................ok (v2.30)
  o Archive::Zip.....................ok (v1.64)
  o Crypt::Eksblowfish::Bcrypt.......ok (v0.009)
  o Date::Format.....................ok (v2.24)
  o DateTime.........................ok (v1.50)
    o DateTime::TimeZone.............ok (v2.23)
  o DBI..............................ok (v1.642)
  o DBD::mysql.......................ok (v4.050)
  o DBD::ODBC........................ok (v1.60)
  o DBD::Oracle......................Not installed! (optional - Required to connect to a Oracle database.)
  o DBD::Pg..........................ok (v3.7.4)
  o Digest::SHA......................ok (v6.01)
  o Encode::HanExtra.................ok (v0.23)
  o IO::Socket::SSL..................ok (v2.068)
  o JSON::XS.........................ok (v3.04)
  o List::Util::XS...................ok (v1.50)
  o LWP::UserAgent...................ok (v6.26)
  o Mail::IMAPClient.................ok (v3.42)
    o IO::Socket::SSL................ok (v2.068)
    o Authen::SASL...................ok (v2.16)
    o Authen::NTLM...................ok (v1.09)
  o ModPerl::Util....................ok (v2.000010)
  o Net::DNS.........................ok (v1.19)
  o Net::LDAP........................ok (v0.65)
  o Net::SMTP........................ok (v3.11)
  o Template.........................ok (v2.27)
  o Template::Stash::XS..............ok (undef)
  o Text::CSV_XS.....................ok (v1.38)
  o Time::HiRes......................ok (v1.9759)
  o XML::LibXML......................ok (v2.0134)
  o XML::LibXSLT.....................ok (v1.96)
  o XML::Parser......................ok (v2.44)
  o YAML::XS.........................ok (v0.76)
Mas.. A mensagem continua a mesma.

Code: Select all

Mon Jun 22 16:19:08 2020 (America/Sao_Paulo)	error	OTRS-otrs.Console.pl-Maint::Email::MailQueue-01	There was an error executing Execute() in Kernel::System::Console::Command::Maint::Email::MailQueue: ERROR: OTRS-otrs.Console.pl-Maint::Email::MailQueue-01 Perl: 5.28.1 OS: linux Time: Mon Jun 22 19:19:04 2020
Não sei se ajuda, mas segue o lance de comunicação:

Code: Select all

1		Kernel::System::Email	Building message for delivery.	22/06/2020 16:20:08 (America/Sao_Paulo)
2		Kernel::System::Email	Queuing message for delivery.	22/06/2020 16:20:08 (America/Sao_Paulo)
3		Kernel::System::MailQueue	Serializing and saving message (ArticleID: , Sender: otrs@sudatech.com.br, Recipient: chamados@sudatech.com.br, MessageID: )	22/06/2020 16:20:08 (America/Sao_Paulo)
4		Kernel::System::MailQueue	Successfully stored message for sending.	22/06/2020 16:20:08 (America/Sao_Paulo)
5		Kernel::System::Email	Successfully queued message for delivery (To: 'chamados@sudatech.com.br', From: 'otrs@sudatech.com.br', Subject: 'OTRS Scheduler Daemon Cron: MailQueueSend').	22/06/2020 16:20:08 (America/Sao_Paulo)

fakezero
OTRS newbie
Posts: 7
Joined: 12 Jun 2020, 16:55
OTRS Version?: 6.0.28
Real Name: Alexandre de Sales Santos
Company: Sudacall

Re: Não consigo enviar e-mails em nenhum protocolo do OTRS

Post by fakezero »

Resolvido. O servidor de e-mails estava bloqueando o IP da VM com OTRS. pode fechar o tópico.

Post Reply