I am sending a mail with Amazon SES.
The following mail is delivered but although the CC address is in the mail Amazon doesn't actually deliver an email to the CC'd address.
I can't see what I'm doing wrong.
Here is the raw email:
Delivered-To: personToAddres#gmail.com
Received: by xx.xxx.xxx.1x5 with SMTP id i7xxx3xxx4qaz6;
Wed, 26 Mar 2014 04:33:49 -0700 (PDT)
X-Received: by xx.xxx.xx.xxx7 with SMTP id xxx5057wiw.xx8;
Wed, 26 Mar 2014 04:33:48 -0700 (PDT)
Return-Path: <xxx-xxxx-xxx-x9xx-xx-xxx#xxxx.amazonses.com>
Received: from xx-xxx.smtp-out.x10xx.amazonses.com (xxx.smtp-out.xxx.amazonses.com. [xx.xxx.xx.xxx])
by mx.google.com with ESMTPS id fxxx.x11xx.xxx.xx
for <personToAddres#gmail.com>
(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
Wed, 26 Mar 2014 04:33:48 -0700 (PDT)
Received-SPF: pass (google.com: domain of xxx12x-xxx-xxx-xxx-xxx-xxx-xxx#xxx.amazonses.com designates xx.x15xx.x.xxx as permitted sender) client-ip=xx.xxx.x.xxx;
Authentication-Results: mx.google.com;
spf=pass (google.com: domain of xxx-xx13x-xxx-xx-xx-xx#xxx.amazonses.com designates xx.xx16.x.x as permitted sender) smtp.mail=x14xx#.amazonses.com
Return-Path: xx17x#.amazonses.com
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="=xxx18x"
From: no-reply#x19xx.co
Subject: Your February Report
Cc: info#carbonCopyAddress.com
Date: Wed, 26 Mar 2014 11:33:46 +0000
Message-ID: <xx20x#xxx.amazonses.com>
X-SES-Outgoing: 2014.03.26-xx.x21xx.x.1xx
--=_xxxxx22xxx1
Content-Type: multipart/alternative;
boundary="=_xxx23xxxxxxx2"
--=_xx24xxxxxxxx3
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=ISO-8859-1
this is additional email text
--=_xxxxx25xxx4
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset=ISO-8859-1
<p>Dear Mr and Mrs Peson</p>...
If you are using SendRawEmailRequest to send emails, you need to make sure that cc and bcc addresses are added to Destinations collection
Related
I am really confused. I have tested my mail server with mail-tester.com, I got 10/10 but Gmail still puts my emails into spam folder.
I have PTR, DKIM and SPF records, all valid.
The mailserver hostname is: domain.tld
The email viewed from the destination:
Delivered-To: email
Received: by 10.176.71.30 with SMTP id h30csp57228uac;
Wed, 3 May 2017 06:54:08 -0700 (PDT)
X-Received: by 10.28.35.207 with SMTP id j198mr6661610wmj.17.1493819648744;
Wed, 03 May 2017 06:54:08 -0700 (PDT)
Return-Path: <eamil>
Received: from ironforge.meatkult.com (diamondshine.hu. [31.14.134.231])
by mx.google.com with ESMTPS id n6si7712651wra.196.2017.05.03.06.54.08
for <email>
(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
Wed, 03 May 2017 06:54:08 -0700 (PDT)
Received-SPF: pass (google.com: domain of eamil designates 31.14.134.231 as permitted sender) client-ip=31.14.134.231;
Authentication-Results: mx.google.com;
dkim=pass header.i=#meatkult.com;
spf=pass (google.com: domain of email designates 31.14.134.231 as permitted sender) smtp.mailfrom=email
Received: from localhost (ironforge.meatkult.com [127.0.0.1]) by ironforge.meatkult.com (Postfix) with ESMTP id C0D5561DE3 for <email>; Wed,
3 May 2017 15:54:07 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=meatkult.com; h= content-transfer-encoding:content-type:content-type:mime-version :user-agent:date:date:message-id:subject:subject:from:from; s= default; t=1493819647; x=1495634048; bh=gSWT9V3EBSVx0zLNz5M9KT0K Z1jXGsJ1lUMr6hpFhDU=; b=gcFh4x2hIg9hXPzOzokAZBF8ewYZQk1+sVtlq2r6 TsBQcZU+8fdswJoBgrt/9y2nXc+zfyE8dZiGoqnndXRyvfzKC7IF2aIjTcoZzHxW UdH7GTT7cn3FTur6ceaOi6BGIXzbN+ovNr8+SC7fvO9f6r3xxb/4op4qoT3GpQXA LO4=
X-Virus-Scanned: Debian amavisd-new at ironforge.meatkult.com
Received: from ironforge.meatkult.com ([127.0.0.1]) by localhost (ironforge.meatkult.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 9mCr5x49RMat for <email>; Wed,
3 May 2017 15:54:07 +0200 (CEST)
Received: from [192.168.1.163] (s10.ip4.lp01.wwdh.hu [217.65.97.10]) (Authenticated sender: arape#meatkult.com) by ironforge.meatkult.com (Postfix) with ESMTPSA id 55FDB6027A for <emial>; Wed,
3 May 2017 15:54:07 +0200 (CEST)
To: email
From: Peter Arany <email>
Subject: I don't know what's going on
Message-ID: <a41512a6-eddc-7fd1-d897-37415b7ed766#meatkult.com>
Date: Wed, 3 May 2017 15:53:27 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Still not receiving mails
I have valid SSL certification by letsencrypt, I think everything should be fine, but its not. Does anyone has experience in this case? Did I miss something?
Peter
Check your filters. You may have some filters to move your mails to Spam Folder. You can learn about filters here - https://support.google.com/mail/answer/6579?hl=en
My mails that I send from my vps keeps going to the spam folder of Google mail (gmail), only gmail, all other receivers get the mail!
I've been struggling with the following problem for a couple of hours now.
First of all the mail went straight to the spam, with a soft fail on the SPF records. After some googling and adjusting the dns and everything is correct on all the tests I do on internet.
What am I doing wrong, see the email headers below:
Delivered-To: info#MYWEBSITE.nl
Received: by 10.140.49.2 with SMTP id p2csp254884qga;
Wed, 18 Dec 2013 05:09:01 -0800 (PST)
X-Received: by 10.180.103.193 with SMTP id fy1mr8266239wib.10.1387372141146;
Wed, 18 Dec 2013 05:09:01 -0800 (PST)
Return-Path: <info#SENDINGWEBSITE.nl>
Received: from www.SENDINGVPS.nl ([2a02:1234::777:3eff:fed6:7ef6])
by mx.google.com with ESMTPS id s9si717710wiw.41.2013.12.18.05.09.00
for <info#MYWEBSITE.nl>
(version=TLSv1 cipher=RC4-SHA bits=128/128);
Wed, 18 Dec 2013 05:09:01 -0800 (PST)
Received-SPF: pass (google.com: domain of info#SENDINGWEBSITE.nl designates 2a02:1234::777:3eff:fed6:7ef6 as permitted sender) client-ip=2a02:1234::777:3eff:fed6:7ef6;
Authentication-Results: mx.google.com;
spf=pass (google.com: domain of info#SENDINGWEBSITE.nl designates 2a02:1234::777:3eff:fed6:7ef6 as permitted sender) smtp.mail=info#SENDINGWEBSITE.nl
Received: from i12345.upc-i.chello.nl ([62.195.XX.XXX] helo=[192.168.1.12])
by www.SENDINGVPS.nl with esmtpsa (TLSv1:AES128-SHA:128)
(Exim 4.76)
(envelope-from <info#SENDINGWEBSITE.nl>)
id 1VtGrz-0004Rq-8k; Wed, 18 Dec 2013 14:08:59 +0100
Subject: Mail gmail hotmail
Mime-Version: 1.0 (1.0)
From: "info#SENDINGWEBSITE.nl" <info#SENDINGWEBSITE.nl>
Content-Type: text/plain;
charset=us-ascii
X-Mailer: iPhone Mail (11B554a)
Message-Id: <62D8B201-8243-43A5-B15D-6371DD208D23#SENDINGWEBSITE.nl>
Date: Wed, 18 Dec 2013 14:08:58 +0100
Content-Transfer-Encoding: 7bit
To: "info#MYWEBSITE.nl" <info#MYWEBSITE.nl>
Hi
Verstuurd vanaf mijn iPhone
Everyone knows changing mail address in address bar and pretending to send mail from someone else's accout is easy..
so i looked up on google "find out where email came from"
some of the links suggest-- 1. Log into your account and open the email in question.
Click on the down arrow that’s to the right of the Reply link. Choose Show Original from the list.
Now here’s the technical part that I was telling you about earlier! You need to look for the lines of text that start with “Received: from“.
I did all above steps but found out that gmail uses mail client ip as sender ip and not the ip of that particular PC(For security purpose they say...) It has sender's IP as mr. google.com and some private netwk IP(10.43.103.195)
so now my problem is -- is there any damn way in the world to trace where the hell did this mail come from??!!(at least IP of sender)?
This is the header i got when i followed above 3 steps which is of no use...--
Delivered-To: xxxxxxxx#gmail.com
Received: by 10.204.40.79 with SMTP id j15csp110512bke;
Fri, 22 Mar 2013 01:55:20 -0700 (PDT)
Return-Path: <xxxxxxxxxxx#gmail.com>
Received-SPF: pass (google.com: domain of xxxxxxxxxxx#gmail.com designates 10.43.103.195 as permitted sender) client-ip=10.43.103.195
Authentication-Results: mr.google.com;
spf=pass (google.com: domain of xxxxxxxxxxxx#gmail.com designates 10.43.103.195 as permitted sender) smtp.mail=xxxxxxxxxxxx#gmail.com;
dkim=pass header.i=#gmail.com
X-Received: from mr.google.com ([10.43.103.195])
by 10.43.103.195 with SMTP id dj3mr548753icc.3.1363942518977 (num_hops = 1);
Fri, 22 Mar 2013 01:55:18 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20120113;
h=x-received:mime-version:from:date:message-id:subject:to
:content-type;
bh=Vi/MI39WKoec07maKoVjz5/ZzUxhO1k+BoeRUkBbWOc=;
b=kZ/EniFvV15mZ9iBeKNiKsJsQvWHL5N8zqrazVxeKmAARQLotyAAIDU7Or9Xc1OBwY
cwuPqSKmVX1RV7tX5wwcdYyzEA/gmskzgGteimv0BInTzVO7dwgi4gU5cZYdm6Qj/GMo
rJfGs5ty6VjidYMFwyn0K5Z0frh2NX2e7RXP0R6da6U5WMU2bQ9epOD4ZhKF+bSdUvb9
WGu3/HWJNTgwrFivspsA6q0M6JkQWYFM6J83h62kIgU897gsXkRlwPacn63tHySC6CNm
DJZGzRJryQZEJTI4owOImP6XDrK+uxPDFAiTnIG5xFR8PBXsQp+FP+XcsqIHqXSjCtl1
xXdQ==
X-Received: by 10.43.103.195 with SMTP id dj3mr548753icc.3.1363942518971; Fri,
22 Mar 2013 01:55:18 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.64.134.164 with HTTP; Fri, 22 Mar 2013 01:54:58 -0700 (PDT)
From: xxxxxxxxxxxx#gmail.com
Date: Fri, 22 Mar 2013 14:24:58 +0530
Message-ID: <CACD4ahHmkbNCj9G5taUkXYC=K=n4qVvxY75SSSv3hUG00r6dkQ#mail.gmail.com>
Subject:
To: xxxxxxxx#gmail.com
Content-Type: multipart/alternative; boundary=bcaec5171a235666e504d87f9dd8
--bcaec5171a235666e504d87f9dd8
Content-Type: text/plain; charset=ISO-8859-1
If the sender uses gmail/yahoo/hotmail etc. to send an email (ie. if they don't use a third-party software like Outlook or Thunderbird), there is no way to find out the "PC IP address" because it's hidden for 'privacy reasons.' Probably the only legitimate way (other than through legal means) is to ask the sender to reveal their IP address (using such tools like https://verifyyourip.com).
I tried many ways, to solve the problem, that mails are throw to spam in gmail... I set the Received: from, before it shown in gmail the note "noreply#odsantu.sk via lvps83-169-17-110.dedicated.hosteurope.de"... Now I have no idea, what can be wrong...
Delivered-To: dobikos#gmail.com
Received: by 10.14.125.5 with SMTP id y5csp282730eeh;
Thu, 22 Nov 2012 16:08:08 -0800 (PST)
Received: by 10.14.0.198 with SMTP id 46mr6776443eeb.21.1353629288333;
Thu, 22 Nov 2012 16:08:08 -0800 (PST)
Return-Path: <anonymous#vipfp.eu>
Received: from vipfp.eu (lvps83-169-17-110.dedicated.hosteurope.de. [83.169.17.110])
by mx.google.com with ESMTPS id a9si9044494eeo.114.2012.11.22.16.08.08
(version=TLSv1/SSLv3 cipher=OTHER);
Thu, 22 Nov 2012 16:08:08 -0800 (PST)
Received-SPF: neutral (google.com: 83.169.17.110 is neither permitted nor denied by best guess record for domain of anonymous#vipfp.eu) client-ip=83.169.17.110;
Authentication-Results: mx.google.com; spf=neutral (google.com: 83.169.17.110 is neither permitted nor denied by best guess record for domain of anonymous#vipfp.eu) smtp.mail=anonymous#vipfp.eu
Received: (qmail 13333 invoked by uid 33); 23 Nov 2012 01:08:07 +0100
To: dobikos#gmail.com
Subject: =?UTF-8?B?UG90dnJkZW5pZSBvYmplZG7DoXZreSBsaXN0dSBvZCBTYW4=?= =?UTF-8?B?dHU=?=
X-PHP-Originating-Script: 0:SendmailMailer.php
MIME-Version: 1.0
X-Mailer: Nette Framework
Date: Fri, 23 Nov 2012 01:08:07 +0100
From: "OdSantu.sk" <noreply#odsantu.sk>
Message-ID: <hyzaah4290#odsantu.sk>
Content-Type: multipart/alternative;
boundary="--------6p2unvd5n4"
----------6p2unvd5n4
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
.
.
.
contents
.
.
.
----------6p2unvd5n4
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit
.
.
.
contents
.
.
.
----------6p2unvd5n4--
Thanks
Staying out of spam filters is a bit like search engine optimization: it's a moving target.
But some basics:
send from a known hostname not some random IP
include user details (eg username, firstname, etc) in the content
make sure the From and Reply-to match
include actual text (empty or image emails often show as spam)
don't include links that look like spoofs
There are sites out there that track the latest trends you should be able to find them on Google.
Received: from vipfp.eu (lvps83-169-17-110.dedicated.hosteurope.de.
your system has a generic rDNS pointer which does not match the HELO, this can trigger spam filters. set your PTR to vipfp.eu as well in your vps control panel (or tell your vps hoster to do it for you if there is no reverse dns option in the control panel)
Received-SPF: neutral
consider adding SPF
I've been struggling to figure out why this is happening, but my emails are being marked as spam by Gmail and Hotmail (they work in Yahoo.)
SPF, DKIM, rDNS, and sender-id all pass. What's weirder is I've send the EXACT same email with its exact contents from my dev server and Gmail accepts it as not spam even though every one of those checks which passes in production fails in dev. Hotmail still marks it as spam though.
Any idea what could be going on? Here is an example header from Gmail (with IPs and domains changed for privacy):
Delivered-To: REMOVED#gmail.com
Received: by 10.194.16.130 with SMTP id g2csp192349wjd;
Mon, 13 Aug 2012 14:04:10 -0700 (PDT)
Received: by 10.236.193.105 with SMTP id j69mr12819871yhn.21.1344891849751;
Mon, 13 Aug 2012 14:04:09 -0700 (PDT)
Return-Path: <mailer#mydomain.com>
Received: from mail.mydomain.com (mydomain.com. [xxx.xxx.xxx.xxx])
by mx.google.com with ESMTPS id e22si563514yhh.132.2012.08.13.14.04.08
(version=TLSv1/SSLv3 cipher=OTHER);
Mon, 13 Aug 2012 14:04:09 -0700 (PDT)
Received-SPF: pass (google.com: domain of mailer#mydomain.com designates xxx.xxx.xxx.xxx as permitted sender) client-ip=xxx.xxx.xxx.xxx;
Authentication-Results: mx.google.com; spf=pass (google.com: domain of mailer#mydomain.com designates xxx.xxx.xxx.xxx as permitted sender) smtp.mail=mailer#mydomain.com; dkim=pass header.i=#mydomain.com
Received: from mydomain.com (localhost [127.0.0.1])
by mail.mydomain.com (8.14.4/8.14.4/Debian-2ubuntu1) with ESMTP id q7DL48tq019625
for <REMOVED#gmail.com>; Mon, 13 Aug 2012 17:04:08 -0400
X-DKIM: OpenDKIM Filter v2.3.2 mail.mydomain.com q7DL48tq019625
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mydomain.com;
s=server; t=1344891848;
bh=lpw+5POmINBjQYgQBdJvY2d+m84MY8hwTqZ6riNfH8I=;
h=Date:From:To:Message-ID:Subject:Mime-Version:Content-Type:
Content-Transfer-Encoding;
b=KnYSvSzFewOGFyYWvP1DfCvyRfp6y31BfOPTOgRsZ7nGB4PXuau84euzuhs82V4lx
++DjN3iPxSj07euW+y7aRe9R2YiXKJFVNh7cbcJX8+tc3LMmnR7Cv27iP3Yvv6mQMd
uz4Engql3bXLVVDKcLLj/Fj2eiwtWzW4chA2GNTQ=
Received: (from root#localhost)
by mydomain.com (8.14.4/8.14.4/Submit) id q7DL48Dm019624
for REMOVED#gmail.com; Mon, 13 Aug 2012 17:04:08 -0400
Date: Mon, 13 Aug 2012 17:04:08 -0400
From: "Website" <mailer#mydomain.com>
To: REMOVED#gmail.com
Message-ID: <50296bc866dfc_4b8593bd18556b8#mydomain.com.mail>
Subject: You've received a message from Bob.
Mime-Version: 1.0
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mydomain.com; q=dns/txt; s=server; t=1344891848; bh=LfadLl6eJEB+NgiTbBlcBhOt/9NKcG0wapkrAjlGqfg=; h=content-transfer-encoding:content-type:date:from:message-id:mime-version:subject:to; b=mTB8TBb+gG7ESxeVbfqHANKUMeNbdwK/hSIq58oin5ERNSMKOIvZKY9cQJRoY/Q96PQ7J+7b3ZkZuwcg+zMkQyhK7YACvFAz4SUWqpdqiZrBDw8Vqy3PjkGFcz2V5vyUOjI6vN/Y6iOj1zlocC+/p8lkpw3upwxr7cNoe5/Kwu8=
The other guy doesn't know what he's talking about and just guessing.
'Received: (from root#localhost)' is your problem. That needs to reflect the from email...
You problem is:
domain: mydomain.com
ip: xxx.xxx.xxx.xxx
and root#localhost too
You need change informations in your mail client!
I have the exact same problem. In my case, I have configured my mail client correctly. I have one main domain (mydomain.com), my mail server also supports another domain (mydomain2.com) using virtual_domains. However, the emails for (mydomain2.com) always end up in Spam in Gmail. The mail-tester score for mydomain2.com is 9.7/10. Here is the original header from Gmail (i have replaced IP and email address with example ips)
Delivered-To: myemail#gmail.com
Received: by 10.80.177.154 with SMTP id m26csp9759783edd;
Sat, 7 Jan 2017 16:28:58 -0800 (PST)
X-Received: by 10.84.128.67 with SMTP id 61mr108683153pla.153.1483835337902;
Sat, 07 Jan 2017 16:28:57 -0800 (PST)
Return-Path: <noreply#mydomain2.com>
Received: from mail.mydomain.com (xx-xxx-x-xxx.com. [xx.xxx.x.xxx])
by mx.google.com with ESMTPS id s186si84168719pgb.6.2017.01.07.16.28.57
for <myemail#gmail.com>
(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
Sat, 07 Jan 2017 16:28:57 -0800 (PST)
Received-SPF: pass (google.com: domain of noreply#mydomain2.com designates xx.xxx.x.xxx as permitted sender) client-ip=xx.xxx.x.xxx;
Authentication-Results: mx.google.com;
dkim=pass header.i=#mydomain2.com;
spf=pass (google.com: domain of noreply#mydomain2.com designates xx.xxx.x.xxx as permitted sender) smtp.mailfrom=noreply#mydomain2.com;
dmarc=pass (p=REJECT dis=NONE) header.from=mydomain2.com
Received: from myhomerouter by mail.mydomain.com (Postfix) with ESMTPSA id 284538419F for <myemail#gmail.com>; Sun,
8 Jan 2017 00:28:57 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mydomain2.com; s=mail; t=1483835337; bh=g3zLYH4xKxcPrHOD18z9YfpQcnk/GaJedfustWU5uGs=; h=From:Subject:Date:To:From; b=rwN/rSaqojz5pKVoYwb99Ec0TZzkHCo140KMlFVe47jl7Ui64w4DoNpCgZFeYEX87
8NZuBQdfnrirZWbZ7ibydoi07Poz6PZjKoLdRToMcqrtcGVfA+UrJPGQ3EE/QrnYf4
W0Hyb3PpUO+WVcwDL/rvvVm6ZnfjdIjobJpFj1fU=
From: First Name lastname <noreply#mydomain2.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\))
Subject: Test
Message-Id: <8D89561C-0226-4C6B-A8D1-54A2F210F031#mydomain2.com>
Date: Sat, 7 Jan 2017 19:28:56 -0500
To: First Name <myemail#gmail.com>
X-Mailer: Apple Mail (2.3259)
test