Je rencontre cependant un problème lorsque je veux me faire renvoyer un nouveau mot de passe, il semble que le header du mail n'est pas bien formé (du moins selon les exigences gmail), voila les log du serveur smtp:
nicolas.blondiau@imio.be R=dnslookup T=remote_smtp H=ASPMX.L.GOOGLE.COM [64.233.167.26] X=TLS1.3:ECDHE_X25519__ECDSA_SECP256R1_SHA256__AES_256_GCM:256 CV=yes DN="CN=mx.google.com": SMTP error from remote mail server after pipelined end of data: 550-5.7.1 [51.38.198.217] Messages missing a valid address in From: header, or\n550 5.7.1 having no From: header, are not accepted. a5-20020adfe5c5000000b0021011ff3a72si5819301wrn.609 - gsmtp
> Je rencontre cependant un problème lorsque je veux me faire renvoyer un nouveau mot de passe, il semble que le header du mail n'est pas bien formé (du moins selon les exigences gmail), voila les log du serveur smtp:
nicolas.blondiau@imio.be R=dnslookup T=remote_smtp H=ASPMX.L.GOOGLE.COM [64.233.167.26] X=TLS1.3:ECDHE_X25519__ECDSA_SECP256R1_SHA256__AES_256_GCM:256 CV=yes DN="CN=mx.google.com": SMTP error from remote mail server after pipelined end of data: 550-5.7.1 [51.38.198.217] Messages missing a valid address in From: header, or\n550 5.7.1 having no From: header, are not accepted. a5-20020adfe5c5000000b0021011ff3a72si5819301wrn.609 - gsmtp
juminet
added the bug label 2022-07-11 09:08:36 +00:00
Parviens pas à reproduire le bug. Peut-être solutionné par 7d5d821bae ?
Parviens pas à reproduire le bug. Peut-être solutionné par https://gitea.champs-libres.be/champs-libres/biommap/commit/7d5d821baeabdbd468b3b94ddeea392b9666d0b8 ?
Je viens de remarquer que le mail pour le reset du password ne passe toujours pas.
Voici la trace au niveau du serveur sortant, on voit que le champ FROM n'est toujours pas populé, raison pour laquelle il est rejeté par le serveur de destination.
biommap-mail-1 | 286 SMTP>> STARTTLS
biommap-mail-1 | 286 SMTP<< 220 2.0.0 Ready to start TLS
biommap-mail-1 | 286 SMTP>> EHLO a7210978c4bd
biommap-mail-1 | 286 SMTP<< 250-mx.google.com at your service, [51.38.198.217]
biommap-mail-1 | 286 250-SIZE 157286400
biommap-mail-1 | 286 250-8BITMIME
biommap-mail-1 | 286 250-ENHANCEDSTATUSCODES
biommap-mail-1 | 286 250-PIPELINING
biommap-mail-1 | 286 250-CHUNKING
biommap-mail-1 | 286 250 SMTPUTF8
biommap-mail-1 | 286 SMTP>> MAIL FROM:<> SIZE=2355
biommap-mail-1 | 286 SMTP>> RCPT TO:<nicolas.blondiau@imio.be>
biommap-mail-1 | 286 will write message using CHUNKING
biommap-mail-1 | 286 SMTP>> BDAT 1332 LAST
biommap-mail-1 | 286 SMTP<< 250 2.1.0 OK h11-20020adf9ccb000000b0021d6f03b51csi14250024wre.69 - gsmtp
biommap-mail-1 | 286 SMTP<< 250 2.1.5 OK h11-20020adf9ccb000000b0021d6f03b51csi14250024wre.69 - gsmtp
biommap-mail-1 | 286 SMTP<< 550-5.7.1 [51.38.198.217] Messages missing a valid address in From: header, or
biommap-mail-1 | 286 550 5.7.1 having no From: header, are not accepted. h11-20020adf9ccb000000b0021d6f03b51csi14250024wre.69 - gsmtp biommap-mail-1 | 286 SMTP>> QUIT
biommap-mail-1 | 286 SMTP(close)>>
> Je viens de remarquer que le mail pour le reset du password ne passe toujours pas.
> Voici la trace au niveau du serveur sortant, on voit que le champ FROM n'est toujours pas populé, raison pour laquelle il est rejeté par le serveur de destination.
biommap-mail-1 | 286 SMTP>> STARTTLS
biommap-mail-1 | 286 SMTP<< 220 2.0.0 Ready to start TLS
biommap-mail-1 | 286 SMTP>> EHLO a7210978c4bd
biommap-mail-1 | 286 SMTP<< 250-mx.google.com at your service, [51.38.198.217]
biommap-mail-1 | 286 250-SIZE 157286400
biommap-mail-1 | 286 250-8BITMIME
biommap-mail-1 | 286 250-ENHANCEDSTATUSCODES
biommap-mail-1 | 286 250-PIPELINING
biommap-mail-1 | 286 250-CHUNKING
biommap-mail-1 | 286 250 SMTPUTF8
biommap-mail-1 | 286 SMTP>> MAIL FROM:<> SIZE=2355
biommap-mail-1 | 286 SMTP>> RCPT TO:<nicolas.blondiau@imio.be>
biommap-mail-1 | 286 will write message using CHUNKING
biommap-mail-1 | 286 SMTP>> BDAT 1332 LAST
biommap-mail-1 | 286 SMTP<< 250 2.1.0 OK h11-20020adf9ccb000000b0021d6f03b51csi14250024wre.69 - gsmtp
biommap-mail-1 | 286 SMTP<< 250 2.1.5 OK h11-20020adf9ccb000000b0021d6f03b51csi14250024wre.69 - gsmtp
biommap-mail-1 | 286 SMTP<< 550-5.7.1 [51.38.198.217] Messages missing a valid address in From: header, or
biommap-mail-1 | 286 550 5.7.1 having no From: header, are not accepted. h11-20020adf9ccb000000b0021d6f03b51csi14250024wre.69 - gsmtp biommap-mail-1 | 286 SMTP>> QUIT
biommap-mail-1 | 286 SMTP(close)>>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Parviens pas à reproduire le bug. Peut-être solutionné par
7d5d821bae?La fct
reset_passwordappellesend_user_emailoù
msg["From"] = current_app.config["MAIL"]["MAIL_AUTH_LOGIN"]Si la variable "MAIL_AUTH_LOGIN" est bien définie, cela devrait passer.
Chez moi cela passe avec:
solutionné ?
cfr https://github.com/Champs-Libres/GeoNature-citizen/commit/ad9ea61bc43977f0d60bf7ea707f76c0ef891fc7