Project

General

Profile

Tâche #33779

Scénario #33481: Zéphir : alertes par email non envoyées

Erreur de syntaxe signalée sur le mail envoyé

Added by Joël Cuissinat over 2 years ago. Updated over 2 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
02/04/2022
Due date:
% Done:

100%

Remaining (hours):
0.0

Description

C'est peut-être lié à notre infrastructure mais le message n'est pas accepté :

This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

  jcuissinat@ac-dijon.fr
    host gateway.ac-test.fr [192.168.0.1]
    SMTP error from remote mail server after pipelined end of data:
    550 header syntax
Reporting-MTA: dns; zephir.ac-test.fr

Action: failed
Final-Recipient: rfc822;jcuissinat@ac-dijon.fr
Status: 5.0.0
Remote-MTA: dns; gateway.ac-test.fr
Diagnostic-Code: smtp; 550 header syntax
Objet     [Zephir] fin d'alerte : [95]
De     fromuser@ac-test.fr

 fin d'alerte pour le serveur etb1.amon-default-2.7.2 (95 - amon-2.7.2)
 établissement : 00000001 (etb1)

Associated revisions

Revision 46d1fa8d (diff)
Added by Emmanuel GARETTE over 2 years ago

changement dans le from et to des mails (ref #33779)

History

#1 Updated by Joël Cuissinat over 2 years ago

<gnunux> jc89, ligne 1082 de /usr/lib/python3/dist-packages/zephir/backend/uucp_rpc.py
<gnunux> si tu rajoute :
<gnunux> msg['To'] = Header('', 'utf-8')

==> /var/log/rsyslog/local/zephir_backend/zephir_backend.alert.log <==
2022-02-04T18:01:42.980140+01:00 zephir.ac-test.fr zephir_backend: [-] Traceback (most recent call last):
2022-02-04T18:01:42.980637+01:00 zephir.ac-test.fr zephir_backend: [-]   File "/usr/lib/python3/dist-packages/zephir/backend/uucp_rpc.py", line 1364, in _send_alerte3
2022-02-04T18:01:42.980731+01:00 zephir.ac-test.fr zephir_backend: [-]     envoi_ok, detail = self._sendmail(destinataires,subject + str(list(msg.keys())),"\n".join(list(msg.values())))
2022-02-04T18:01:42.980778+01:00 zephir.ac-test.fr zephir_backend: [-]   File "/usr/lib/python3/dist-packages/zephir/backend/uucp_rpc.py", line 1083, in _sendmail
2022-02-04T18:01:42.980830+01:00 zephir.ac-test.fr zephir_backend: [-]     msg['To'] = Header('jcuissinat@ac-dijon.fr', 'utf-8')
2022-02-04T18:01:42.980875+01:00 zephir.ac-test.fr zephir_backend: [-] TypeError: 'str' object does not support item assignment

#2 Updated by Emmanuel GARETTE over 2 years ago

  • Status changed from Nouveau to En cours

#3 Updated by Emmanuel GARETTE over 2 years ago

  • Assigned To set to Emmanuel GARETTE

#4 Updated by Emmanuel GARETTE over 2 years ago

  • Status changed from En cours to Résolu
  • % Done changed from 0 to 100

#5 Updated by Joël Cuissinat over 2 years ago

  • Status changed from Résolu to Fermé
  • Remaining (hours) set to 0.0
zephir-parc$ git branch -r --contains 46d1fa8d 
  origin/2.8.0/master
  origin/2.8.1/master
  origin/HEAD -> origin/master
  origin/dist/eole/2.8.0/master
  origin/dist/eole/2.8.1/master
  origin/dist/eole/2.9.0/master
  origin/master

Also available in: Atom PDF