Confirmation emails always end up in spam box

Michael J

Hi all,

I have a hostgator VPS account with primary domain Under that domain, i created another cPanel account for a sibling domain called The account is for personal use and is where i have xenforo installed (and what i'm trying to get to work! :cry:).

Now, whatever i do - SMTP (using primarydomain and siblingdomain credentials), default (with and without the -f option), SPF enabled, DKIM enabled... i just cannot get a confirmation email to land in a normal inbox - testing is using gmail and hotmail email accounts.

If i look at the email headers associated with the spammed emails they always seem to say hostname "", and sender domain "":

X-AntiAbuse: Primary Hostname -
X-AntiAbuse: Original Domain -
X-AntiAbuse: Originator/Caller UID/GID - [502 501] / [47 12]
X-AntiAbuse: Sender Address Doamin -

I'm suspicious that because the primary hostname doesn't match the sender address domain, gmail immediately thinks it's spam. Would you think that's the case? I cannot change the hostname because i have other domains under that VPS account that may get affected as well. Any ideas?


Michael J

Thanks Jake.

I checked the headers again, and i see this:

Received: from ( [ip address]) by...

I've replaced the numbers btw. Now when i do an RDNS on the ip address i get "" in the response. Would this be the problem? If so, would it need to match my primary domain or my sibling domain?


Jake Bunce

XenForo moderator
Staff member
According to that guide I found, the resolved IP address specifically needs to match the host name in the Received header which is:

Received: from ( [ip address]) by...

If it doesn't match then your emails are failing RDNS which is a red flag with spam filters.

Michael J

I contacted my hosting provider, hostgator and asked them if they could set the RDNS for my host. They did that and i checked it via and it now returns my hostname. So i tried doing a test registration - the confirmation email is STILL going into spam. I have absolutely no idea what to do now.

This is one of the headers:

Received: by with SMTP id q7cs4568pbl;
Tue, 19 Jul 2011 23:11:57 -0700 (PDT)
Received: by with SMTP id d4mr7673097agk.174.1311142316587;
Tue, 19 Jul 2011 23:11:56 -0700 (PDT)
Return-Path: <>
Received: from ( [])
by with ESMTPS id q10si1084337anm.43.2011.
(version=TLSv1/SSLv3 cipher=OTHER);
Tue, 19 Jul 2011 23:11:55 -0700 (PDT)
Received-SPF: pass ( domain of designates as permitted sender) client-ip=;
DomainKey-Status: good
Authentication-Results:; spf=pass ( domain of designates as permitted sender); domainkeys=pass
Message-Id: <>
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default;;
Received: from ([] helo=localhost)
by with esmtpsa (TLSv1:AES256-SHA:256)
(Exim 4.69)
(envelope-from <>)
id 1QjQ0g-0006GA-Br
for; Wed, 20 Jul 2011 01:11:54 -0500
Subject: Welcome!
To: mike <>
From: Google Plus Forums <>
Date: Wed, 20 Jul 2011 06:11:53 +0000
Content-Type: multipart/alternative;
MIME-Version: 1.0
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname -
X-AntiAbuse: Original Domain -
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain -

Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

mike,=0A=0AIn order to complete your registration at G+ Plus Forums, you=
need to confirm your account by following the page below.=0A=0Ahttp://g=
hanks for registering,=0AG+ Plus Forums

Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

<html>=0A<head>=0A<title>Welcome!</title>=0A<base href=3D"http://gplusfo=" />=0A</head>=0A<body>=0A=0A<p>mike,</p>=0A=0A=0A</body>=0A</h=


The primary domain is and the sibling domain is I have hit a brick wall and have absolutely no idea what to do. Please help. Thanks.


Jake Bunce

XenForo moderator
Staff member
Yep, RDNS is working now.

FWIW, I just registered on and I received the email in my inbox. I used my yahoo account. It appears to be working.

But there is a different problem. The email I received was not a confirmation email. It simply said "Welcome!" in the subject, and the body said my username and that's it. Do you have any addons installed that have to do with registration?

Michael J

Hi Jake,

Thanks for doing that. For some reason i just cannot get any gmail accounts to accept it as a legit email!!! It's driving me insane. I have another forum that i also created at and it had the same issue before, but this time round i tried it with a gmail account and it worked. I just dont know why the one wont work. Is it because of the fact that i'm using the word "Google" in there?

Also the reason why the subject and contents are different in that email you received is because i modified it thinking the contents may have been a factor in making it look like spam. But it wasn't.

Do you think the fact that the email says "from Google Plus Forums", google immediately marks it as spam? If so, how do i change the words? I've tried modifying my original board title from "Google Plus Forums" to "G+ Forums" but it didn't change the 'from' field.


Jake Bunce

XenForo moderator
Staff member
Do you think the fact that the email says "from Google Plus Forums", google immediately marks it as spam?
I don't know. But I haven't heard of that before.

Ultimately you may have to contact Google about this. It's their spam filter and we already addressed the common red flags which is all you can do from your end.


Set IN A record for the host to point to the dedicated IP
Set a PTR record for the IP to reverse resolve to the HOST

Set the server's domain/name/host to the IP and HOST
Go through the sendmail configuration set up to ensure it's binding to the right IP
And send the mail from the domain where it's coming from.

This should already resolve a lot of issues.

tail -F mail.log (or whatever the mail log file is called on your system)

And send out some mails and read out the response from the third party site back to mail system.

Michael J

Hi all,

It's finally working :LOL::D. I went to my spam folder and basically just selected all the confirmation emails and marked them as NOT SPAM. I asked other people to do the same. And hey presto! Emails are now going in to the proper inbox. Same for hotmail addresses. I have no idea whether marking those emails as NOT SPAM made this work, but i did not do anything else apart from that.

Thanks for the help Jake and Floris. It was very much appreciated.