Welcome to WebmasterWorld Guest from 220.127.116.11
Forum Moderators: phranque
So I set up the SMTP Server and sent emails to my Gmail account, and th SMTP part seems to work, but Gmail puts the emails into the spam folder!
Why is Gmail doing that? What factors makes Gmail think my test emails are spam?
Of course, there's a possibility that your server has been compromised and is being used to send spam, but if Gmail is the only provider you're having trouble with, I'd chalk it up to their bad spam filtering.
I found that if you tell gmail what is spam and what is not it is rather accurate with its filtering and spam features.
Is this a new gmail account or one you have used for some time?
Here are some things I was doing that might trigger some sort of spam filter:
(1) one line email
(2) return address did not match the domain name of the IP address, in fact, i made up some totally bogus reply address. the full header shows that the email is coming from MyName.HosingCompanyDomainName.com. (I had no idea that, when I set up the account and chose MyName as a subdomain, I was permanently placing my name on all outbound emails!)
Now that I think about it, it seems that anyone with an SMPT server on their computer can send out unlimited emails, so there needs to be some way to filter out fly-by-nighters.
My goal is to send out emails to people who register with my website, and I'd like the emails to not get filtered out, so I'd like to know what I'm doing wrong, if anything. Are there any resources on the web that explain these issues?
Here is what the Gmail header says (in which I replaced the real numbers and domain name with bogus values):
Received-SPF: neutral (google.com: 100.100.100.100 is neither permitted nor denied by best guess record for domain of email@example.com) client-ip=100.100.100.100;
Authentication-Results: mx.google.com; spf=neutral (google.com: 100.100.100.100 is neither permitted nor denied by best guess record for domain of firstname.lastname@example.org) email@example.com
So the question is, how do I get MyDomain.com to permit 100.100.100.100? Do I have to change something at my hosting records at Register.com? Or do I have to change something on my SMTP server setup?
it is difficult to say why whatever you're doing is being regarded as spam.
Let's assume an email is an "ordinary email" for the sake of argument. This is a highly frustrating issue for me too, nearly every mail I send to gmail goes "poof" . . straight to spam.
My DNS report is clean.
My dedi and all of it's IP's are not on any RBL's, they too appear to be clean.
It's a simple plain text mail, like "Hello Bill, this is Bill, testing your gmail account" with a valid subject line.
Most of G's docs in relation to this tell you to mark it as "not spam" and G will "learn" to accept email from these actions.
This is not acceptable. I don't do bulk mail, and have emailed several clients with gmail accounts, all with the same result. "Oh here it is, in spam." ARGH . . . .
pageoneresults helped me work through some of the DNS issues, but even once those were resolved I still have this problem. And I still get this, like S.W.G. does:
"Received-SPF: neutral (google.com: 100.100.100.100 is neither permitted nor denied by best guess record for domain of firstname.lastname@example.org) client-ip=100.100.100.100;"
I **believe** this is because our dedicated server actually sends mail using the ISP's internal relay server. So although it comes from mydomain.com, the official sender is myisp.com. Does that make any sense?
If it's just this reason G is spam boxing my mail, I'm screwed. :-( This is not something we can reconfigure for our dedi.
I went to Register.com (which btw has a much nicer management website than GoDaddy, although I don't know if that's worth an extra $25/year), added the following TXT record (and note that at Register.com, you have to use the at-symbol, @, as your host subdomain):
v=spf1 ip4:100.100.100.100 -all
This tells Gmail and other mail hosts using this system that the IP address is authorized for the domain, and all other IP addresses are not authorized (you don't want spammers using your domain name in their emails). There are other settings you could use, but using the IP address of my server seemed like the simplest way to fix the problem.
Now this is what showed up when I sent myself a test email(wow, that's fast propagation!):
Received-SPF: pass (google.com: domain of email@example.com designates 100.100.100.100 as permitted sender) client-ip=100.100.100.100;
Authentication-Results: mx.google.com; spf=pass (google.com: domain of firstname.lastname@example.org designates 100.100.100.100 as permitted sender) email@example.com
Yay! Gmail likes me now!
To read more about SPF, you can go to this web page:
I don't think I've had more than half a dozen false spamatives in the couple of years I've used gmail for 100% of my mail. They miss a few - but learn fast once you label any 'new style' spam.
As with most webmail, the best way to 'whitelist' an email address, is to add it to your contacts list.