Bonjour,
Avant de rentrer dans les détails (logs ..), est-ce normal que Gmail bloque (spam) les mails envoyé par php (À l'aide de PHPMailer), tandis que les Mails envoyés par la fonction mail
de linux (mailx) ne sont pas bloqués ?
J'ai correctement configuré un serveur SMTP pour mon nom de domaine (rDNS, openkdim …), et à l'aide les deux méthodes utilisent bien ce serveur (Je le vois à l'aide des logs de postfix).
Voici le code source d'un mail envoyé à l'aide de PHPMailer (et qui est donc bloqué par Gmail ..) ;
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | Delivered-To: ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ Received: by 10.66.76.103 with SMTP id j7csp2820644paw; Tue, 25 Aug 2015 03:28:24 -0700 (PDT) X-Received: by 10.195.13.200 with SMTP id fa8mr49109951wjd.9.1440498504216; Tue, 25 Aug 2015 03:28:24 -0700 (PDT) Return-Path: <▇▇▇▇▇▇▇▇▇▇▇▇▇> Received: from ▇▇▇▇▇▇ (▇▇▇▇▇▇. [▇▇▇.▇▇▇.▇▇▇.▇▇▇]) by mx.google.com with ESMTP id d6si2412687wiy.99.2015.08.25.03.28.22 for <▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇>; Tue, 25 Aug 2015 03:28:24 -0700 (PDT) Received-SPF: pass (google.com: domain of ▇▇▇▇▇▇▇▇▇▇▇▇▇ designates ▇▇▇.▇▇▇.▇▇▇.▇▇▇ as permitted sender) client-ip=▇▇▇.▇▇▇.▇▇▇.▇▇▇; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ▇▇▇▇▇▇▇▇▇▇▇▇▇ designates ▇▇▇.▇▇▇.▇▇▇.▇▇▇ as permitted sender) smtp.mailfrom=▇▇▇▇▇▇▇▇▇▇▇▇▇; dkim=pass header.i=@▇▇▇▇▇▇▇ Received: from ▇▇▇▇▇▇▇ (▇▇▇▇▇▇▇ [172.17.0.218]) by ▇▇▇▇▇▇▇ (Postfix) with ESMTPSA id 305E061C for <▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇>; Tue, 25 Aug 2015 10:28:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=▇▇▇▇▇▇; s=mail; t=1440498502; bh=GDtbQezdjXFT+YGF▇▇▇▇▇▇3RK/cD8cufJXm9fWI150s=; h=Date:To:From:Reply-To:Subject:From; b=▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇dkn44sJXWDeGOOQltwN12GCgBtexrzmsKTLOQzqe J▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇GY0QrBEFA3s9B25qiplARdl/e5Jq+VKg8ndE39Xm GDmVnOxeS/nAh▇▇▇▇▇gteDrwVuj/OtdGAQw2tDInM= Date: Tue, 25 Aug 2015 10:28:22 +0000 To: ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ From: ▇▇▇▇▇▇▇▇▇▇▇▇ <▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇> Reply-To: NoReply <▇▇▇▇▇▇▇▇▇▇▇▇> Subject: Here is the subject Message-ID: <a706799e60af9269825b2c116a691bd9@▇▇▇▇▇▇▇> X-Priority: 3 X-Mailer: PHPMailer 5.2.10 (https://github.com/PHPMailer/PHPMailer/) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="b1_a706799e60af9269825b2c116a691bd9" Content-Transfer-Encoding: 8bit This is a multi-part message in MIME format. --b1_a706799e60af9269825b2c116a691bd9 Content-Type: text/plain; charset=us-ascii This is the body in plain text for non-HTML mail clients --b1_a706799e60af9269825b2c116a691bd9 Content-Type: text/html; charset=us-ascii This is the HTML message body <b>in bold!</b> --b1_a706799e60af9269825b2c116a691bd9-- |
EDIT : En faisant un diff des headers (mail bloqué et mail non bloqué), j'ai l'impression que les seuls champs qui changent sont X-Mailer
et Message-ID
+0
-0