Mail dans les spams
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.
question

Mail dans les spams

Par
CalvinG
Créé le 2021-02-22 22:27:36 (edited on 2024-09-04 11:20:38) dans E-mails et solutions Office

Bonjour,

N'étant pas très calé dans ce domaine, je m'arrache un peu les cheveux à essayer de faire passer les mails provenant de mon site, autrement que dans les spams.

J'ai fait le mail-tester qui me dit : Vous devriez publier une entrée DNS (de type MX) sur votre nom de domaine mail-out.cluster030.hosting.ovh.net ou utiliser une adresse de rebond différente.

Est-ce un problème d'entête ? ou de mes DNS ? Car j'ai bien des entrée MX actuellement

Excusez moi d'avance si le problème est stupide, je débute dans cette partie du web ^^

Merci d'avance !


7 réponses ( Latest reply on 2021-02-23 10:52:48 Par
CalvinG
)


Mes entrées MX


Mes entrées MX


Bonjour,
Tout ce que vous montrez ne sert à rien.

Merci de communiquer votre domaine, et si possible les en-têtes SMTP complets d'un mail qui a atterri dans les spams.

S'il s'agit du domaine mentionné dans votre capture d'écran, et que vous utilisez effectivement Gmail et non OVH pour les mails, je vous invite à envoyer vos mails depuis Gmail et adapter votre SPF en correspondance.

```text


Bonjour,
Tout ce que vous montrez ne sert à rien.

Merci de communiquer votre domaine, et si possible les en-têtes SMTP complets d'un mail qui a atterri dans les spams.


https://www.agt-geometre.com/


Delivered-To: calvin.guillemet@gmail.com
Received: by 2002:a54:2ccc:0:0:0:0:0 with SMTP id z12csp1942832ecr;
Mon, 22 Feb 2021 14:19:26 -0800 (PST)
X-Google-Smtp-Source: ABdhPJx4POhiYezXFYoxFUhylTv2a++zvEUebQshXWOMqgfvKWmvLm8hCG0GsIMOqJu3zhvVAXKL
X-Received: by 2002:adf:cd0f:: with SMTP id w15mr12211872wrm.274.1614032366819;
Mon, 22 Feb 2021 14:19:26 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1614032366; cv=none;
d=google.com; s=arc-20160816;
b=ATeNGc5rZIHyWZmrlNBtsTChwzG43Mjj6JX2JGCP+JKUymJTPhanB/1VrEv93T8fLx
1X2FWwKCvvX/eltEyoVfxOH5sxn9hCXIytSznG3SHk9yYv8eSqfEt5L1fh8ZflzllWsC
Bt91zHnsL4l4ZeSQf/rj8RoV3vUY9Uby5/a4gKMBlMu24rStD8iDDeT5rql+YkkUDjqb
XMDl/RHNE5RxY9euXFm0GuoieZgO7aaiw71raJ7TqqY1U0N5Az0KXYnaLcpUMhXyHQbz
sbi3x0+/HhRWRvF5wvH0dTbpAgSbuTCMq1P0/vtjp1fmcgLdeDOCpKZqZxNytvtnhZCy
Uh6Q==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
h=date:message-id:mime-version:reply-to:from:subject:to;
bh=G2VWCbhqHEDj+mi7mCbeuzlS4VWFtFl6+WcgR0wquGM=;
b=hseDTowNZy0WDOETKrcbFZbz2TEPixcXHZtAg67t79H3n+iD6S07Sw7LxFu6Zpuw3e
F/iQhpYUZ4F54nyauxvqObfT5Oa+Lc4MR1dlUlNi3EdAVayDyOl/Ip+Yb85emsksHkfz
l31bsKpNxm1u64zEG24Auz6CI3GEnRR5hKOOvf2PhiNI5jN3Jm5DY8KKUpaW/oXPLuzD
iiI7dnsr5ONHzQL+xSaREK+zoP/gZoa0c2e3aR9aIDVctUabHYCgZrp+XeeIQwZnBJD8
z/Es3Mp8dDzwuNc92vvU92IkdOUuiDKHH4iG+JcygU0+nAp34azSLcmVLq3S+8DV9pFm
97hQ==
ARC-Authentication-Results: i=1; mx.google.com;
spf=pass (google.com: domain of bounce-id=d053=u115504.cluster028.ovh.net=1614032366.26-pbs0c@mail-out.cluster028.hosting.ovh.net designates 178.33.106.226 as permitted sender) smtp.mailfrom="bounce-id=D053=U115504.cluster028.ovh.net=1614032366.26-PBS0C@mail-out.cluster028.hosting.ovh.net";
dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com
Return-Path: U115504.cluster028.ovh.net=1614032366.26-PBS0C@mail-out.cluster028.hosting.ovh.net>
Received: from mo154.mail-out.ovh.net (1.mo154.mail-out.ovh.net. [178.33.106.226])
by mx.google.com with ESMTPS id t23si1568076wra.123.2021.02.22.14.19.26
for gmail.com>
(version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
Mon, 22 Feb 2021 14:19:26 -0800 (PST)
Received-SPF: pass (google.com: domain of bounce-id=d053=u115504.cluster028.ovh.net=1614032366.26-pbs0c@mail-out.cluster028.hosting.ovh.net designates 178.33.106.226 as permitted sender) client-ip=178.33.106.226;
Authentication-Results: mx.google.com;
spf=pass (google.com: domain of bounce-id=d053=u115504.cluster028.ovh.net=1614032366.26-pbs0c@mail-out.cluster028.hosting.ovh.net designates 178.33.106.226 as permitted sender) smtp.mailfrom="bounce-id=D053=U115504.cluster028.ovh.net=1614032366.26-PBS0C@mail-out.cluster028.hosting.ovh.net";
dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com
Received: from director4.derp.mail-out.ovh.net (director4.derp.mail-out.ovh.net [79.137.60.37]) by mo154.mail-out.ovh.net (Postfix) with ESMTPS id 8EFDA24E877 for gmail.com>; Mon, 22 Feb 2021 23:19:26 +0100 (CET)
Received: from mail-out02.cluster028.gra.hosting.ovh.net (unknown [10.110.115.218]) by director4.derp.mail-out.ovh.net (Postfix) with ESMTP id 78A871FDAE for gmail.com>; Mon, 22 Feb 2021 22:19:26 +0000 (UTC)
Received: from mail-out02.cluster028.gra.hosting.ovh.net (localhost.localdomain [127.0.0.1]) by mail-out02.cluster028.gra.hosting.ovh.net (Postfix) with ESMTP id 6C937500072 for gmail.com>; Mon, 22 Feb 2021 23:19:26 +0100 (CET)
Received: from cluster028.hosting.ovh.net (gwc.cluster028.hosting.ovh.net [91.134.248.249]) by mail-out02.cluster028.gra.hosting.ovh.net (Postfix) with ESMTP id A6940500072 for gmail.com>; Mon, 22 Feb 2021 23:19:25 +0100 (CET)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by localhost.domain.tld (Postfix) with ESMTP id 99CAE5FAB0 for gmail.com>; Mon, 22 Feb 2021 23:19:25 +0100 (CET)
Received: by cluster028.hosting.ovh.net (Postfix, from userid 115504) id 74FCA60F8C; Mon, 22 Feb 2021 23:19:25 +0100 (CET)
To: calvin.guillemet@gmail.com
Subject: test spam
From: caca gmail.com>
Reply-to: caca gmail.com>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary=bd8646a7aa17cc1c262e2afad3d0db24
Message-Id: <20210222221925.74FCA60F8C@cluster028.hosting.ovh.net>
Date: Mon, 22 Feb 2021 23:19:25 +0100 (CET)
X-Ovh-Tracer-Id: 3309301304957138794
X-VR-SPAMSTATE: OK
X-VR-SPAMSCORE: 15
X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduledrkeefgdduheekucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucgoteeftdduqddtudculdduhedmnecujfgurhepvffuhfhrgggtsehmtddtredttdejnecuhfhrohhmpedftggrtggrfdeotggrlhhvihhnrdhguhhilhhlvghmvghtsehgmhgrihhlrdgtohhmqeenucggtffrrghtthgvrhhnpefgudeggefffedthfekgeejvdfghefffefhheeugeffffdttdegteehhfdvgfevkeenucfkpheptddrtddrtddrtddpledurddufeegrddvgeekrddvgeelnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmohguvgepshhmthhpqdhouhhtpdhhvghlohepmhgrihhlqdhouhhttddvrdgtlhhushhtvghrtddvkedrghhrrgdrhhhoshhtihhnghdrohhvhhdrnhgvthdpihhnvghtpedtrddtrddtrddtpdhmrghilhhfrhhomhepsghouhhntggvqdhiugepffdtheefpegfudduheehtdegrdgtlhhushhtvghrtddvkedrohhvhhdrnhgvthepudeiudegtdefvdefieeirddviedqrfeuufdtveesmhgrihhlqdhouhhtrdgtlhhushhtvghrtddvkedrhhhoshhtihhnghdrohhvhhdrnhgvthdprhgtphhtthhopegtrghlvhhinhdrghhuihhllhgvmhgvthesghhmrghilhdrtghomh
X-VR-SPAMSTATE: OK
X-VR-SPAMSCORE: 15
X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduledrkeefgdduheekucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucgoteeftdduqddtudculdduhedmnecujfgurhepvffuhfhrgggtsehmtddtredttdejnecuhfhrohhmpedftggrtggrfdeotggrlhhvihhnrdhguhhilhhlvghmvghtsehgmhgrihhlrdgtohhmqeenucggtffrrghtthgvrhhnpefgudeggefffedthfekgeejvdfghefffefhheeugeffffdttdegteehhfdvgfevkeenucfkpheptddrtddrtddrtddpledurddufeegrddvgeekrddvgeelnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmohguvgepshhmthhpqdhouhhtpdhhvghlohepughirhgvtghtohhrgedruggvrhhprdhmrghilhdqohhuthdrohhvhhdrnhgvthdpihhnvghtpedtrddtrddtrddtpdhmrghilhhfrhhomhepsghouhhntggvqdhiugepffdtheefpegfudduheehtdegrdgtlhhushhtvghrtddvkedrohhvhhdrnhgvthepudeiudegtdefvdefieeirddviedqrfeuufdtveesmhgrihhlqdhouhhtrdgtlhhushhtvghrtddvkedrhhhoshhtihhnghdrohhvhhdrnhgvthdprhgtphhtthhopegtrghlvhhinhdrghhuihhllhgvmhgvthesghhmrghilhdrtghomhdphhgvlhhopehmrghilhdqohhuthdtvddrtghluhhsthgvrhdtvdekrdhgrhgrrdhhohhsthhinhhgrdhovhhhrdhnvg ht

--bd8646a7aa17cc1c262e2afad3d0db24
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit

test

--bd8646a7aa17cc1c262e2afad3d0db24-- ```

Je peux comprendre la réaction de Gmail.

Gmail voit arriver un mail dont l'adresse d'expéditeur est calvinXguillemetXgmail.com
mais ce mail provient des serveurs d'OVH.
C'est donc une possibilité de mail frauduleux.

Il faudrait mettre en place sur le site web un envoi via SMTP et non via mail(), et utiliser SMTP.GMAIL.COM comme serveur d'envoi avec des credentials Gmail.
Et conserver une adresse d'expéditeur @gmail.com

pour ça, je peux passer via PHPmailer ?

Certainement, voir par exemple https://blog.mailtrap.io/phpmailer/#How_to_use_PHPMailer_with_Gmail

Merci ! Je vais tester ça

Les réponses sont actuellement désactivées pour cette question.