Crontab da erro - Failed to process message due to a permanent exception with message [BeginDiagnos

1. Crontab da erro - Failed to process message due to a permanent exception with message [BeginDiagnos

Silvio Rodrigues
silvio1976

(usa Outra)

Enviado em 13/11/2022 - 10:54h

Ola prezados amigos

Espero que alguém possa me ajudar:
fiz o cadastro do cron conforme segue abaixo:
33 8 13 * * ssmtp -v contato@comprascomigo.com.br < /media/sf_Backup/agenda-diaria-via-email/Paga_Conta_De_Agua
Porém quando é executado não é concluido com sucesso, confome segue log abaixo:

Nov 13 11:49:01 comprascomigo sSMTP[15783]: Creating SSL connection to host
Nov 13 11:49:01 comprascomigo sSMTP[15783]: SSL connection using ECDHE_RSA_AES_256_GCM_SHA384
Nov 13 11:49:01 comprascomigo sSMTP[16071]: Creating SSL connection to host
Nov 13 11:49:02 comprascomigo sSMTP[16071]: SSL connection using ECDHE_RSA_AES_256_GCM_SHA384
Nov 13 11:49:03 comprascomigo cron[422]: sendmail: 554 5.2.0 STOREDRV.Submission.Exception:InvalidRecipientsException; Failed to process message due to a permanent exception with message [BeginDiagnosticData]Recipient 'root' is not resolved. All recipients must be resolved before a message can be submitted. InvalidRecipientsException: Recipient 'root' is not resolved. All recipients must be resolved before a message can be submitted.[EndDiagnosticData] [Hostname=FR1PR80MB1880.lamprd80.prod.outlook.com]
Nov 13 11:49:03 comprascomigo sSMTP[15783]: 554 5.2.0 STOREDRV.Submission.Exception:InvalidRecipientsException; Failed to process message due to a permanent exception with message [BeginDiagnosticData]Recipient 'root' is not resolved. All recipients must be resolved before a message can be submitted. InvalidRecipientsException: Recipient 'root' is not resolved. All recipients must be resolved before a message can be submitted.[EndDiagnosticData] [Hostname=FR1PR80MB1880.lamprd80.prod.outlook.com]
Nov 13 11:49:04 comprascomigo CRON[15778]: (root) MAIL (mailed 29 bytes of output but got status 0x0001 from MTA#012)
Nov 13 11:49:04 comprascomigo cron[422]: sendmail: 554 5.2.0 STOREDRV.Submission.Exception:InvalidRecipientsException; Failed to process message due to a permanent exception with message [BeginDiagnosticData]Recipient 'root' is not resolved. All recipients must be resolved before a message can be submitted. InvalidRecipientsException: Recipient 'root' is not resolved. All recipients must be resolved before a message can be submitted.[EndDiagnosticData] [Hostname=FR1PR80MB1880.lamprd80.prod.outlook.com]
Nov 13 11:49:04 comprascomigo sSMTP[16071]: 554 5.2.0 STOREDRV.Submission.Exception:InvalidRecipientsException; Failed to process message due to a permanent exception with message [BeginDiagnosticData]Recipient 'root' is not resolved. All recipients must be resolved before a message can be submitted. InvalidRecipientsException: Recipient 'root' is not resolved. All recipients must be resolved before a message can be submitted.[EndDiagnosticData] [Hostname=FR1PR80MB1880.lamprd80.prod.outlook.com]
Nov 13 11:49:04 comprascomigo CRON[15777]: (root) MAIL (mailed 55 bytes of output but got status 0x0001 from MTA#012)


Porém se executo o mesmo comando na mão, tenho sucesso:
veja abaixo:
root@comprascomigo:/etc/ssmtp# ssmtp -v contato@comprascomigo.com.br < /media/sf_Backup/agenda-diaria-via-email/Paga_Conta_De_Agua
[<-] 220 CP4P284CA0033.outlook.office365.com Microsoft ESMTP MAIL Service ready at Sun, 13 Nov 2022 13:51:46 +0000
[->] EHLO localhost
[<-] 250 SMTPUTF8
[->] STARTTLS
[<-] 220 2.0.0 SMTP server ready
[->] EHLO localhost
[<-] 250 SMTPUTF8
[->] AUTH LOGIN
[<-] 334 VXNlcm5hbWU6
[->] anVzdGl0MDAwMUBob3RtYWlsLmNvbQ==
[<-] 334 UGFzc3dvcmQ6
[<-] 235 2.7.0 Authentication successful
[->] MAIL FROM:<justit0001@hotmail.com>
[<-] 250 2.1.0 Sender OK
[->] RCPT TO:<contato@comprascomigo.com.br>
[<-] 250 2.1.5 Recipient OK
[->] DATA
[<-] 354 Start mail input; end with <CRLF>.<CRLF>
[->] Received: by localhost (sSMTP sendmail emulation); Sun, 13 Nov 2022 11:51:46 -0200
[->] From: "root" <justit0001@hotmail.com>
[->] Date: Sun, 13 Nov 2022 11:51:46 -0200
[->] #From:contato@comprascomigo.com.br
[->] Subject: Pagar Conta De Agua
[->]
[->] Ola Silvio Hoje de deve ser paga até o dia 11 desse Mês
[->]
[->]
[->] .
[<-] 250 2.0.0 OK <FR1PR80MB1880D3CDCF8D4F57C2B954E9CB029@FR1PR80MB1880.lamprd80.prod.outlook.com> [Hostname=FR1PR80MB1880.lamprd80.prod.outlook.com]
[->] QUIT
[<-] 221 2.0.0 Service closing transmission channel


Alguém sabe como faço pra ter sucesso executando esses crontab? infelizmente ta dando o erro acima.

Muito obrigado a todos
Silvio Rodrigues
Site: www.comprascomigo.com.br
instagram : https://www.instagram.com/comprascomigoonline/






  


2. Re: Crontab da erro - Failed to process message due to a permanent exception with message [BeginDiagnos

Buckminster
Buckminster

(usa Debian)

Enviado em 13/11/2022 - 14:12h

https://www.vivaolinux.com.br/dica/Configurando-o-cron-para-enviar-email-de-output-para-o-root-(Debi...


________________________________________________
Always listen the Buck!
Sanou tua dúvida, resolveu teu problema?
Então marque como Resolvido e escolha a Melhor Resposta.



3. Infelizmente sem sucesso.

Silvio Rodrigues
silvio1976

(usa Outra)

Enviado em 13/11/2022 - 21:10h


Realizei o procedimento do post, porém segue com os mesmo resultado ou seja não sucesso!






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts