The Problem: All Wordpress registration emails (with the password) are getting blocked by google.
Details:
The site's email is currently being hosted by google apps. THOSE emails WILL send to gmail addresses. So the problem is specifically emails generated by Wordpress.
What I've tried:
I've installed several SMTP plugins, and they all allow me to generate test emails (via the plugin settings page) to my gmail account. However, they do not resolve the issue for new user registration emails.
I've also attempted to change the "from" email settings, but I'm not really sure how to do this. You can see in the email header pasted below, that I'd probably need an address that ends with #performancehosting.axiom9.com for this to make any difference.
Review:
It sounds like wp_mail() is the problem, I'm hoping someone can offer a solution. My suspicion is that it has something to do with the return-path in the email's header, but I'm not sure what to do with this information.
Here is the header from the email generate by Wordpress (which won't arrive at gmail addresses):
Subject:
[Street Of Walls] New User Registration
From:
Street Of Walls <info#streetofwalls.com>
Date:
9/8/11 6:24 PM
To:
e#thesecretaddress.com
Return-path:
<info#streetofwalls.com>
Envelope-to:
e#thesecretaddress.com
Delivery-date:
Thu, 08 Sep 2011 16:24:51 -0600
Received:
from mail-qw0-f46.google.com ([209.85.216.46]) by box780.bluehost.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) (envelope-from <info#streetofwalls.com>) id 1R1n1f-0002NF-Ol for e#thesecretaddress.com; Thu, 08 Sep 2011 16:24:51 -0600
Received:
by qwb7 with SMTP id 7so843432qwb.19 for <e#thesecretaddress.com>; Thu, 08 Sep 2011 15:24:50 -0700 (PDT)
Received:
by 10.224.78.146 with SMTP id l18mr1081350qak.81.1315520690356; Thu, 08 Sep 2011 15:24:50 -0700 (PDT)
Received:
from www.streetofwalls.com (performancehosting.axiom9.com. [69.175.2.122]) by mx.google.com with ESMTPS id el2sm4364671qab.2.2011.09.08.15.24.49 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 08 Sep 2011 15:24:49 -0700 (PDT)
Message-ID:
<f4927d34a6faf41bd2c8514296228fc3#www.streetofwalls.com>
X-Priority:
3
X-Mailer:
PHPMailer 5.1 (phpmailer.sourceforge.net)
MIME-Version:
1.0
Content-Transfer-Encoding:
8bit
Content-Type:
text/plain; charset="utf-8"
New User Registration on your site:
Street Of Walls
User ID: 69
Username: emerson
Email: e#thesecretaddress.com
IP Address: 132.216.228.76
It turns out that there was a plugin which was probably to blame. I changed the site's configuration to use the default Wordpress "new user" email and it suddenly worked. It would still be interesting to understand more about the interface between Wordpress and PHP_mail(), but my problem is solved for now.
Related
I have read (https://support.google.com/mail/answer/12096?hl=en) that any Gmail account can receive emails for its plus alias.
So for account#gmail.com when I send email to alias+account#gmail.com
I receive following reply:
Delivery to the following recipient failed permanently:
alias+account#gmail.com
Technical details of permanent failure:
Google tried to deliver your message, but it was rejected by the server for the recipient domain nabastu.cz by aspmx.l.google.com. [2607:f8b0:4001:c0e::1b].
The error that the other server returned was:
550-5.1.1 The email account that you tried to reach does not exist. Please try
550-5.1.1 double-checking the recipient's email address for typos or
550-5.1.1 unnecessary spaces. Learn more at
550 5.1.1 https://support.google.com/mail/answer/6596 u32si667450ioi.23 - gsmtp
----- Original message -----
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20120113;
h=mime-version:date:message-id:subject:from:to:content-type;
bh=rV2o3HVMVpR5MzzOppyyRucNhMlqT6oztVlsvvbztMY=;
b=g3Wl9gFGh0YR5IHnkD8E9o4PITh9PRE5TUyHPKt7/spToDsItGQKuKKLKn6iUgkyDG
rqEmGC/jGVIP2z2T1cbSjAvJS5nl2Ti5khtUhZs2C8LddJEtGrRxZDCuFYdObBK9dUWU
1o0oYHQNEhC4WROuUWp25NFNKv45Tz4XMgWl90T1ZBsWHRczZIAk0EGbwxz6kG20PhEv
1r/a7/dnYshjVJOfDUvwg5gSF8zd2mZ8/DspuqALbkeRJCVpMGSL+jp1XmH18U8cPFRd
bVJ4y7HDTOqsVfF1urWbk8OMDNhycR/94ZvickFQ39MMRgX4tNNZj7reQdbWOSzR38uV
0YLw==
MIME-Version: 1.0
X-Received: by 10.107.135.30 with SMTP id j30mr46117827iod.148.1448720587099;
Sat, 28 Nov 2015 06:23:07 -0800 (PST)
Received: by 10.79.67.134 with HTTP; Sat, 28 Nov 2015 06:23:07 -0800 (PST)
Date: Sat, 28 Nov 2015 15:23:07 +0100
Message-ID: <CABdkat6ymw=nv3WbPZOgnpdq2vC+FhF0Q7VXqLJ2GzcUdX43CQ#mail.gmail.com>
Subject: Alias
From: bankify bankify <my.account#gmail.com>
To: alias+account#gmail.com
Content-Type: multipart/alternative; boundary=001a113ec64af9129a05259a8b25
test
Do I need to enable something? Or this functionality is no longer available?
You need to put it the other way around, so instead of alias+account#gmail.com, use account+alias#gmail.com.
My application uses PHPMailer to send email through gmail. It was previously working fine, but it appears maybe now gmail is categorizing my email as spam before it is sent out to the recipients. Below is an example of one of the messages that were rejected. I removed URL and Email addresses to protect the innocent. Is this as simple as making t he email body text better so it isn't seems as spam, or is there a more precise fix for this?
Delivery to the following recipient failed permanently:
<removed#removed.com>
Technical details of permanent failure:
Message rejected. See https://support.google.com/mail/answer/69585 for more information.
----- Original message -----
X-Received: by 10.60.144.196 with SMTP id so4mr19216383oeb.66.1439493466614;
Thu, 13 Aug 2015 12:17:46 -0700 (PDT)
Return-Path: <removed#removed.com>
Received: from www.example...realurlhere.com ([x.x.x.x])
by smtp.gmail.com with ESMTPSA id w135sm1602558oie.25.2015.08.13.12.17.45
(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
Thu, 13 Aug 2015 12:17:45 -0700 (PDT)
Date: Thu, 13 Aug 2015 15:17:45 -0400
To: <removed#removed.com>, <removed#removed.com>, <removed#removed.com>
From: <removed#removed.com>
Reply-To: <removed#removed.com>
Subject: Spot Bid Request Sent to you - Shipment Request ID: XX
Message-ID: <04b4cbfac43b29b8810d7d8b1c61b349#www.url.com>
X-Priority: 3
X-Mailer: PHPMailer 5.2.9 (https://github.com/PHPMailer/PHPMailer/)
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="b1_04b4cbfac43b29b8810d7d8b1c61b349"
Content-Transfer-Encoding: 8bit
Spot Bid Request Sent to you - Shipment Request ID: xx
System Login: http://www.url.....example.com
i have a problem with sending email from my server to hotmail and gmail. seems the mail is just dropped, no returned bounce email notices etc. the emails just vanish. I have looked around for solutions on the net but nothing seems to help. below are the email headers of one mail which is send correctly to another big provider, without any problem. As i cant make any sense of it as to why hotmail is rejecting these mails, i hope someone can make something of it and give me directions on maybe a solution:
Return-Path: <s----#----.nl>
Delivered-To: <s----#ziggo.nl>
Received: from md2.tb.mail.iss.local ([212.54.34.152])
by mc7.tb.mail.iss.local (Dovecot) with LMTP id lQqGGXGJuFUZJAAAqQNqOQ
for <s----#ziggo.nl>; Wed, 29 Jul 2015 10:10:01 +0200
Received: from mx24.gn.mail.iss.as9143.net ([212.54.34.152])
by md2.tb.mail.iss.local (Dovecot) with LMTP id lPAPLTGvolV/XgAAH7GgQA
; Wed, 29 Jul 2015 10:12:41 +0200
Received: from mail.lastikweb.eu ([185.10.49.172])
by mx24.gn.mail.iss.as9143.net with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256)
(Exim 4.82)
(envelope-from <s----#----.nl>)
id 1ZKMR6-0001UG-T6
for sleenheer#ziggo.nl; Wed, 29 Jul 2015 10:10:00 +0200
Received: from localhost ([127.0.0.1] helo=aicit.nl)
by mail.lastikweb.eu with esmtpa (Exim 4.76)
(envelope-from <s----#----.nl>)
id 1ZKMR6-0001R8-EW
for s----#ziggo.nl; Wed, 29 Jul 2015 10:10:00 +0200
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8;
format=flowed
Content-Transfer-Encoding: 7bit
Date: Wed, 29 Jul 2015 10:10:00 +0200
From: s----#----.nl
To: s----#ziggo.nl
Subject: mail headers
Message-ID: <8670b9ca857e112fbc307d29ee84ccb2#aicit.nl>
X-Sender: s----#----.nl
User-Agent: Roundcube Webmail/0.9.5
X-Ziggo-spamsetting: Instelling=Gemiddeld Scorelimiet=14
X-Ziggo-spambar: /
X-Ziggo-spamscore: 0.0
X-Ziggo-spamreport: CMAE Analysis: v=2.1 cv=DeLq0aZW c=1 sm=0 tr=0 a=cWpRTkv7rqSFuHP3f9xSTw==:17 a=XVisR3dVAAAA:8 a=cIF5Tx0qAAAA:8 a=drCK43fGrOkA:10 a=IkcTkHD0fZMA:10 a=zOBTXjUuO1YA:10 a=nS36O97Bj3wUElCrIrAA:9 a=QEXdDO2ut3YA:10 xcat=Undefined/Undefined
none
X-Ziggo-Spam-Status: No
X-Spam-Status: No
X-Spam-Flag: No
test
I have dkim installed, tested all settings with mxtoolbox (dns, smtp etc) al seems to be right, but still Hotmail and Gmail is not accepting emails from my server (which holds about 25 domains, all sending through this server).
thanks!
Gmail ending up in spam is related to designated user not being able to send out through main server. case you have server: mail.server.com and you are sending mail with my.domain.com, the spf record needs to hold the ip6 of mail.server.com in spf. Obviously rDNS needs to be correct. For the hotmail problem, this is purely microsoft. you can check up with support from outlook.com, but only thing you get is "we dont block your server, although some emails are filtered. this can be caused by mitigation time, which can take up to 48 hours". Thats it. No messages are returned, simply dropped. Maybe msn.com outlook.com and live.com are experiencing the same problem.
I'm developing an email client and just found that some emails do not have a "To" header field thus I don't 'know' who's the email intended for. Only a "From" and "CC" is provided and sometimes a "For" field. Is there any standard how to extract email address that the email is intended for ? (e.g. if To is missing look for For, if that's missing too look for turkeys :). See the sample below from an email I've just got.
Return-Path: salfe#ono.com
Received: from smtp2.ono.com ([62.42.230.179]) by mx-ha.gmx.net (mxgmxus002)
with ESMTP (Nemesis) id 0MQRb8-1XLJaM3en6-00Tmzn for
<aneste#lobbyist.com>; Mon, 09 Jun 2014 11:27:43 +0200
X-CTCH-RefID: str=0001.0A0B0203.53957E0C.00D9,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0
X-CTCH-VOD: Unknown
X-CTCH-Spam: Unknown
Received: from PCRafaelRomero (85.137.226.62) by smtp2.ono.com (8.6.122.04) (authenticated as sanromero)
id 5385D185003E1FAE for aneste#lobbyist.com; Mon, 9 Jun 2014 11:27:40 +0200
From: <salfe#ono.com>
Cc: <aneste#lobbyist.com>
Subject: Reservation.
Date: Mon, 9 Jun 2014 11:27:27 +0200
Message-ID: <3f4001cf83c5$s$2a88d6a0$#com>
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="----=_NextPart_000_3F41_01CF83D5.D1B66CE0"
X-Mailer: Microsoft Office Outlook 12.0
Thread-Index: Ac+DxFZYas1DTYB/S/anWwcW8Cz4Ag==
Content-Language: es
X-Antivirus: avast! (VPS 140608-1, 08/06/2014), Outbound message
X-Antivirus-Status: Clean
Envelope-To: <aneste#lobbyist.com>
Even worse it seems that some emails have a wrong "To" but the email was delivered to my inbox anyway due the "For" header. I'm not sure how I can detect that unless I look in DB to see if the "To" email is actually one of mine.
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