Domaines et DNS - DNS retour depuis Gmail - hard 550-5.7.26 fail policy
BMPCreated with Sketch.BMPZIPCreated with Sketch.ZIPXLSCreated with Sketch.XLSTXTCreated with Sketch.TXTPPTCreated with Sketch.PPTPNGCreated with Sketch.PNGPDFCreated with Sketch.PDFJPGCreated with Sketch.JPGGIFCreated with Sketch.GIFDOCCreated with Sketch.DOC Error Created with Sketch.
Frage

DNS retour depuis Gmail - hard 550-5.7.26 fail policy

Von
Community Deleted user
Erstellungsdatum 2024-06-10 07:13:58 (edited on 2024-09-04 12:12:26) in Domaines et DNS

Bonjour,

Quand j'envoie des mails sur des boîtes Gmail, j'ai ce retour. Je ne sais pas comment le fixer :

This is the mail system at host mo548.mail-out.ovh.net.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

The mail system

: host gmail-smtp-in.l.google.com[64.233.167.27] said:
550-5.7.26 The MAIL FROM domain [xxx] has an SPF record with a
hard 550-5.7.26 fail policy (-all) but it fails to pass SPF checks with the
ip: 550-5.7.26 [46.105.45.231]. To best protect our users from spam and
phishing, 550-5.7.26 the message has been blocked. For instructions on
setting up 550-5.7.26 authentication, go to 550 5.7.26
https://support.google.com/mail/answer/81126#authentication
5b1f17b1804b1-42181eb8007si12423645e9.202 - gsmtp (in reply to end of DATA
command)
Reporting-MTA: dns; mo548.mail-out.ovh.net
X-Postfix-Queue-ID: 4Vy4Tv4R66z10BS
X-Postfix-Sender: rfc822; xxx
Arrival-Date: Sun, 9 Jun 2024 19:18:27 +0000 (UTC)

Final-Recipient: rfc822; xxx
Original-Recipient: rfc822;xxx
Action: failed
Status: 5.7.26
Remote-MTA: dns; gmail-smtp-in.l.google.com
Diagnostic-Code: smtp; 550-5.7.26 The MAIL FROM domain [xxx] has an
SPF record with a hard 550-5.7.26 fail policy (-all) but it fails to pass
SPF checks with the ip: 550-5.7.26 [46.105.45.231]. To best protect our
users from spam and phishing, 550-5.7.26 the message has been blocked. For
instructions on setting up 550-5.7.26 authentication, go to 550 5.7.26
https://support.google.com/mail/answer/81126#authentication
5b1f17b1804b1-42181eb8007si12423645e9.202 - gsmtp

De: xx
Objet: test
Date: 9 juin 2024 à 21:18:16 UTC+2
À: xx


Test

Merci.


7 Antworten ( Latest reply on 2024-07-12 08:47:43 Von
fritz2cat officiel (d'avant la migration)
)


saminghiasi.com


Bonjour,

Vous avez deux enregistrements SPF qui sont tous les deux faux.

saminghiasi.com. 600 IN TXT "v=spf1 a mx ptr ~all"
saminghiasi.com. 600 IN TXT "v=spf1 -all"


Supprimez les tous les deux, et ajoutez-en un qui dit:
"v=spf1 include:mx.ovh.com ~all"


Est-ce que le DMARC est bon également ?


où ça un enregistrement DMARC ?

Tant que vous n'avez pas de DKIM, je ne recommande pas de configurer DMARC.

DKIM n'est pas encore proposé sur les MX Mail.


Mon SPF actuel est SPF v=spf1 include:mx.ovh.com ~all

c'est correct

DKIM n'est pas encore proposé sur les MX Mail.

Pour DKIM les choses ont évoulé depuis juin.
Vous pouvez l'activer sans attendre que OVH le fasse pour vous.

Voyez ce guide:
https://help.ovhcloud.com/csm/fr-dns-zone-dkim?id=kb_article_view&sysparm_article=KB0058101#confemail

et allez directement au chapitre: Configuration complète du DKIM
sans prendre le temps de lire la théorie (qui s'adresse à un public _très averti_)


maintenant pour le DMARC, est-ce correcte?


Non.

Voici votre DMARC:

"v=DMARC1;p=none;pct=90;rua=v=DMARC1; p=none; rua=mailto:saminghiasi.com;sp=none;aspf=r;"

> p=none;pct=90

c'est un peu contradictoire de spécifier 90% avec p=none

> rua=v=DMARC1; p=none; rua=mailto

il me semble que vous avez un peu cafouillé là


comment vous arrivez à voir mes details


Bonjour,

Tout ce qui est dans DNS est public quand on sait ce qu'on doit chercher.
Dans le cas présent je cherche un enregistrement TXT à l'adresse _dmarc.saminghiasi.com et je trouve :

"v=DMARC1;p=none;pct=90;rua=v=DMARC1; p=none; rua=mailto:saminghiasi.com;sp=none;aspf=r;"

Je vois que vous n'avez pas corrigé "rua=v=DMARC1"
Regardez bien : vous avez repris des fragments des exemples, mais vous avez reconstitué un enregistrement à la syntaxe illégale.


je ne comprends pas ce que je dois ajouter d'autre


Le "wizard" que vous utilisez continue à générer un enregistrement dont le format est incorrect.
Supprimez-le et ajoutez cet enregistrement à la bonne vieille méthode,
ajouter un enregistrement DNS
de type TXT
sous-domaine: "\_dmarc"
valeur: "v=DMARC1;p=none;sp=none;aspf=r;"