Gmail nije uspio potvrditi da poruku šalje - onaj tko je šalje

Pozdrav,

ako šaljem email programski sa PHP-om (class.smtp.php) i u gmailu mi je poruka naznačena kao:

Gmail nije uspio potvrditi da tu poruku šalje mojadomena.com (a ne pošaljitelj neželjenog sadržaja)

Znam da sam tu obavijest imao ako bi umjetno zakačio drugi email pošaljitelja od onoga koji je definiran sa SMTP username. Znači ako bi postavljao nekog drugog pošaljitelja sa:

$email->SetFrom(...)

…onda bi Gmail upozorio da ne može potvrditi pošaljitelja.

Ali ovdje postavim pravog pošaljitelja:

$email->SetFrom($smtp_username, $smtp_username)

…pa opet dobijem upozorenje. U čemu bi još mogao biti problem? Hvala.

Daj zalijepi ovdje header zaprimljene poruke iz Gmaila, bit ćemo pametniji…

Ne kužim na kakav header misliš?? Ako misliš na to upozorenje…evo print screen kako to izgleda:

Posebno ova tri podatka.

Baš čitam: https://www.csoonline.com/article/3254234/mastering-email-security-with-dmarc-spf-and-dkim.html

…čini se da sam na pravom putu. :smiley: …evo sad će i header…

Delivered-To: bozoou@gmail.com
Received: by 2002:a92:1b9d:0:0:0:0:0 with SMTP id f29csp340653ill;
        Wed, 3 Jun 2020 01:09:34 -0700 (PDT)
X-Google-Smtp-Source: ABdhPJy2x3AdtvMQC6x4z7UHW5yD2wWy94E+0NmXIMZlaACYRMm1WlSJFmluZdwZSTWruCMkxVsA
X-Received: by 2002:a17:907:7294:: with SMTP id dt20mr4511308ejc.355.1591171774498;
        Wed, 03 Jun 2020 01:09:34 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1591171774; cv=none;
        d=google.com; s=arc-20160816;
        b=cuBYIWRk3P8TVnddsBVV+fEPFYLrziRNqyZNmLnWyhKiGTAzJFm7uzXL3gjE84y9VV
         VxYUbX8w8OZEi6oystxO6q90kIbkgRpjuPl/LrpbXOnrli3U/l3+8lk+f98ggk5VLKlP
         thmsJVy6Ix/KsF7Ha2AKQuOku0oiq1RrcjV4iu+iyNrLtg3nV3nU+QfgAaGZVPakJaQv
         rC7hQZ9jHMU0Ww5tEBY1woA6+j/XCwyOLUXR5wi6yiJOMJNzeouKGit6/w90U/m8HBrt
         y/5PphBXwWZiKI2200DrxGBfp7pK2hf+CbtMIqkWEXapYQXeQMuFsu5cgyANztpfOdN0
         kNnQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=mime-version:message-id:subject:reply-to:from:to:date
         :dkim-signature;
        bh=bHxjtO/99hAR7QxjSCEoJnmUH3/coewmD6vQTyKKfWw=;
        b=PRM6QaZbnVC69W7r0qlj4ShEcdv65SE83XKlqqn7LrpDIZxEGszDPRESSopRuKhGzf
         UVbguwbiHmzXf1DwMm5BCNUUdbKEbJSc44bpK+Wj5Qdlzbdo5rrjXiYCY3qZq/vKSZMF
         2bITYKHm7IWFxgxEv9AdiFKnTP8KXvE30yRLNKm5nT6TM+GodQ+B0F+aWwwNjI8aWGeZ
         7KuqWm9U7RKuNPh/n/TcXnqFLCbOL9mSHogChA71/HOHZ+FCcKH3pNzKE2HWJFYBqAdJ
         CZssu8oPy06u25QwKbDue1qxSXreYBg4flUUN3e7bpIbomVURKhj8CP7z3pMP3dVNmuW
         5v+g==
ARC-Authentication-Results: i=1; mx.google.com;
       dkim=neutral (bad format) header.i=@bnb-direct.com header.s=phpmailer;
       spf=neutral (google.com: 80.74.139.248 is neither permitted nor denied by best guess record for domain of web@croatiatourist.net) smtp.mailfrom=web@croatiatourist.net
Return-Path: <web@croatiatourist.net>
Received: from arvandus6.metanet.ch (arvandus6.metanet.ch. [80.74.139.248])
        by mx.google.com with ESMTPS id g23si665166eds.168.2020.06.03.01.09.34
        for <bozoou@gmail.com>
        (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
        Wed, 03 Jun 2020 01:09:34 -0700 (PDT)
Received-SPF: neutral (google.com: 80.74.139.248 is neither permitted nor denied by best guess record for domain of web@croatiatourist.net) client-ip=80.74.139.248;
Authentication-Results: mx.google.com;
       dkim=neutral (bad format) header.i=@bnb-direct.com header.s=phpmailer;
       spf=neutral (google.com: 80.74.139.248 is neither permitted nor denied by best guess record for domain of web@croatiatourist.net) smtp.mailfrom=web@croatiatourist.net
Received: from localhost (cpe-109-60-8-224.st3.cable.xnet.hr [109.60.8.224]) by arvandus6.metanet.ch (Postfix) with ESMTPSA id EF1E9D8203DF for <bozoou@gmail.com>; Wed,
  3 Jun 2020 10:09:33 +0200 (CEST)
Authentication-Results: arvandus.metanet.ch; spf=pass (sender IP is 109.60.8.224) smtp.mailfrom=web@croatiatourist.net smtp.helo=localhost
Received-SPF: pass (arvandus.metanet.ch: connection is authenticated)
X-PHPMAILER-DKIM: phpmailer.worxware.com
DKIM-Signature: v=1; a=rsa-sha1; q=dns/txt; l=322; s=phpmailer; t=1591171773; c=relaxed/simple; h=From:To:Subject; d=bnb-direct.com; i=noreply@bnb-direct.com; z= | |Subject:=20test=20email=20subject; bh=O0/mPz216sr3Su7GR4vponYUAik=; b=
Date: Wed, 3 Jun 2020 04:09:33 -0400
To: bozoou@gmail.com
From: "web@croatiatourist.net" <web@croatiatourist.net>
Reply-to: "info@technoangels.hr" <info@technoangels.hr>
Subject: test email subject
Message-ID: <e4b5329d3658df8325111c40ea90b00b@localhost>
X-Priority: 3
X-Mailer: PHPMailer 5.1 (phpmailer.sourceforge.net)
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="b1_e4b5329d3658df8325111c40ea90b00b"

--b1_e4b5329d3658df8325111c40ea90b00b
Content-Type: text/plain; charset = "UTF-8"
Content-Transfer-Encoding: 8bit

test email body


--b1_e4b5329d3658df8325111c40ea90b00b
Content-Type: text/html; charset = "UTF-8"
Content-Transfer-Encoding: 8bit

test email body



--b1_e4b5329d3658df8325111c40ea90b00b--

Sredi redom SPF, DKIM i DMARC središ da su PASS umjesto FAIL.

1 Like

Hmm…već gledam za taj SPF i da provjerim što kužim što ne…

Add an SPF TXT record to your domain host

Your domain host keeps text settings (called DNS records) that direct web traffic to your domain. An SPF TXT record lists the mail servers that can send email from your domain. If a message is sent from a server that’s not in the record, the recipient’s server might consider it spam.

Note : A domain can only have one SPF record, but your record can list multiple servers. For details, see Add multiple servers to an SPF record.

  1. Sign in to your domain account at your domain host (not your Google Admin console).
  2. Go to the page for updating your domain’s DNS records.
    This page might be called something like: DNS management, name server management, or advanced settings.
  3. Find your TXT records and check if your domain has an existing SPF record.
    The SPF record starts with “v=spf1”.
  4. If your domain already has an SPF record, remove it. If not, skip to step 5.
  5. Create a TXT record with these values:
  • Name/Host/Alias —Enter @ or leave blank.
    Other DNS records for your domain might indicate the correct entry.
  • Time to Live (TTL) —Enter 3600 or leave the default.
  • Value/Answer/Destination —Enter v=spf1 include:_spf.google.com ~all
  1. Save the record.

Your new SPF record takes effect within 48 hours.

  1. Idem na host panel…tamo gdje je uvezena domena
  2. Imam DNS settings
  3. Vidim nekakve recorde…ništa što bi asociralo na SPF record
  4. Nisam baš siguran kako da ove tri točke unesem pod novi record, kada me traži samo jedan text line da unesem…što samo da unesem v=spf1 include:_spf.google.com ~all ?? hmm…

…ako i probam to unesti, vrisne error:

The specified domain name is not valid. You need to specify a valid domain name like domain.com.

Pročitaj ponovo tačku 3, uputstvo ne može biti jednostavnije.

Pa tocka 3. mi je (valjda) jasna …koliko vidim nemam spf rekorde.

…al tocka 5. mi nije bas jasna sto bi trebao unest.

TXT record sa ostavljenim podacima.

a) Tamo gdje stoji Name ili Host ili Alias (Šta god od ovoga je predefinisano od strane provider-a) - treba unijeti @ ili ostaviti prazno
b) Tamo gdje stoji TTL staviti 3600 ili ostaviti kako jeste po default-u već
c) Tamo gdje stoji nešto poput Value ili Answer ili Destination treba unijeti v=spf1 include:_spf.google.com ~all

Jbg, stižu te nečitanja dokumentacije u životu i ovo ozbiljno mislim. Ogroman hendikep.

Pa zato sam i napisao da sam zapeo na točki 5.
Ne kužim što trebam unesti.

Evo sto zapinje: …

U editovanom odgovoru sam pokuš’o pojednostavniti.
Na kojem slovu padaš: a, b, ili c?
Imaš li ta polja [koja su pomenuta pod tim slovima]?
Ako nemaš ta, napravi screen shot ili detaljno opiši koja imaš.

Ja se poveselim da će tvoja pomoć proć bez gov*ana, al ti se trudiš baš. I sada ih još edituješ …pa nam nekako tok konverzacije nema preveć smisla…al dobro. Mislim, nekako je OK ako postaviš protupitanje, a ja se nastavim na to…da se ti postovi više ne editiraju…barem ne iz temelja, pa da konverzacija gubi svoj smisao :smiley:

Što god…di smo stali…
Već sam napisao da mi točka 5 sugerira tri unosa, dok kod unosa recorda mogu unesti samo single tekstualni line. Na slici to izgleda ovako:

DNS settings:
screenShoot032

Add Record izgleda:

screenShoot031

Pod taj record sam probao unesti: v=spf1 include:_spf.google.com ~all što mi je u startu djelovalo malo sumnjivo…i štovite, taj unos mi niti ne prihvaća i baci mi sljedeću grešku:

The specified domain name is not valid. You need to specify a valid domain name like domain.com.

Ovdje su ti uputstva kako to dodati, dovoljno je gledati na slike: https://www.metanet.ch/support/780

2 Likes

TXT record treba podesiti kako i piše 10 postova iznad (, ne NS).

Evo ti je naš’o @mestro67 za konkretnog provider-a gdje/kako se podešava.

@bozoou kratko i jasno: imaš krš od hostiga.
https://mxtoolbox.com/domain/croatiatourist.net/

Neke stvari možeš sam srediti, neke na žalost ne.

Bez obzira na linkano, skužio sam da se neke stvari na hostingu ne ponašaju kako bi trebale, ali gore je 50+ projekata i boli me i pomisao na selidbu.

Znam da si ti u tim vodama, budem te malo kasnije na PM cimnuo da priupitam o tvojoj ponudi. :slight_smile:
Slobodno mi pošalješ neki link sa vašom ponudom na PM. Naravno, ako si još u tim vodama.

Bolno ili ne, selidba je neminovna (bar ako misliš raditi ozbiljne projekte).
Ponuda tvrtke koju predstavljam nije nikakva tajna.

Baci pogled na AWS SES - imaju SDK za PHP, samim tim se relativno jednostavno integrira.

Mada to i dalje ne rijesava problem loseg hostinga :slight_smile:

1 Like

Copyright © 2020 WM Forum - AboutContact - Sponsored by: Mydataknox & Profit Monkey