| Linode Forum https://forum.linode.com/ |
|
| email from my web app hosted by linode ends in spam folder https://forum.linode.com/viewtopic.php?f=11&t=7176 |
Page 1 of 2 |
| Author: | mikewire [ Sat May 28, 2011 10:51 am ] |
| Post subject: | email from my web app hosted by linode ends in spam folder |
Hello, I can't seem to mark my emails sent from my linode hosted web app as non spam in gmail. Below is a snippet of the header of the email Code: Delivered-To: koop.hk@gmail.com I'm not sure if its because the IP address is blacklisted by gmail? Is there anything that can be done against this? Thanks in advance for any help! Mike |
|
| Author: | obs [ Sat May 28, 2011 11:58 am ] |
| Post subject: | |
Create a TXT dns record with the following in it Code: "v=spf1 a mx include:_spf.google.com ~all"that will create a SPF (sender policy framework) record for your domain. Also set up rDNS see http://library.linode.com/dns-guides/co ... de-manager |
|
| Author: | rsk [ Sat May 28, 2011 2:48 pm ] |
| Post subject: | |
Er, why are you including Google's SPF? He's not using Google Apps email for hosting, or at least didn't say so... I use Code: v=spf1 a mx -allfor self-hosted...? |
|
| Author: | obs [ Sat May 28, 2011 3:12 pm ] |
| Post subject: | |
His MX records point to google. |
|
| Author: | hoopycat [ Sat May 28, 2011 3:21 pm ] |
| Post subject: | |
I've usually had this happen for the first few e-mails from a new IP; clicking "Not Spam" usually gets it cleared up pretty quickly. Note that my Gmail account has been around awhile, so it may trust my judgement more than others. If you've got multiple servers and don't want to tangle with this every time you add a new one, designate a stable one as an outgoing smarthost and funnel all of your mail that way. It doesn't put that much load on a system, so it can coexist with almost anything else. Also, if you really, REALLY don't want to tangle with this, http://postmarkapp.com/ is decent. $1.50 per thousand e-mails. Wait 'til you try to send to Hotmail... |
|
| Author: | mikewire [ Sat May 28, 2011 8:40 pm ] |
| Post subject: | |
Hi thanks for the replies. I do use Google Apps to host my email for this domain. However, my problem is that emails sent by my web app (such as "you have a new message" etc.) are consistently marked as spam by gmail. Is the solution provided by OBS still valid? Is there anything else I can try? I'm currently figuring out how to transfer the DNS settings to Linode from 101domain, who doesn't seem to allow creation of TXT records Thanks again Mike. |
|
| Author: | obs [ Sun May 29, 2011 6:28 am ] |
| Post subject: | |
Yes my solution is still valid, you could also investigate DKIM but that's more complicated to implement. Go to your registrar and point the nameservers to ns1.linode.com - ns5.linode.com (set your dns records in linode's dns manager first) |
|
| Author: | mikewire [ Tue May 31, 2011 7:35 pm ] |
| Post subject: | |
Hi I've set the DNS to point to the Linode DNS manager and added the SPF record as you suggested (see: https://skitch.com/michielwaaijer/fnkpu ... er-koop.hk) However, the emails from the koop.hk web app still land in the gmail spam folder. Code: Delivered-To: waaijermichiel@gmail.com I checked if the DNS change has propogated by checking "whois koop.hk" in terminal and it has. What else could I try? |
|
| Author: | mnordhoff [ Tue May 31, 2011 7:45 pm ] |
| Post subject: | |
mikewire wrote: Code: Received: from koop.hk (li282-238.members.linode.com [66.228.32.238]) You ought to fix that. As I understand it, your mail server is claiming its name is koop.hk, even though its rDNS is really li282-238.members.linode.com. Regarding your SPF record, it's not quite correct: you need to take out the quotation marks. |
|
| Author: | mikewire [ Tue May 31, 2011 8:11 pm ] |
| Post subject: | |
Hi I've removed the quotation marks. However, could you tell me how to fix my mail server claiming to be koop.hk? Where can I do this? |
|
| Author: | sleddog [ Tue May 31, 2011 9:15 pm ] |
| Post subject: | |
Pick a mail server name, e.g., mail.koop.hk 2. In your DNS manager, create an "A" record for mail.koop.hk. 3. In the Linode Manager, set reverse DNS for your IP to mail.koop.hk (use the "Remote Access" tab then look by "Public IP"). Give 2 & 3 time to propagate. Then check from a shell prompt with the 'host' command: > host mail.koop.hk Should return your IP address (66.228.32.238). > host 66.228.32.238 Should return "mail.koop.hk". 3. Once that's good, set the mail server name in Postfix's main.cf config file: myhostname = mail.koop.hk Restart Postfix and try it out. |
|
| Author: | mnordhoff [ Tue May 31, 2011 9:54 pm ] |
| Post subject: | |
sleddog wrote: 2. In your DNS manager, create an "A" record for mail.koop.hk.
3. In the Linode Manager, set reverse DNS for your IP to mail.koop.hk (use the "Remote Access" tab then look by "Public IP"). Give 2 & 3 time to propagate. ... You need to give 2 time to propagate before you do 3. When setting rDNS, Linode forward-confirms it, so you need to have it working first. |
|
| Author: | mikewire [ Tue May 31, 2011 10:19 pm ] |
| Post subject: | |
Thanks guys, I'll have a go at this and let you know how it goes. |
|
| Author: | mikewire [ Wed Jun 01, 2011 12:46 am ] |
| Post subject: | |
Argh, It still doesn't work. I followed all the steps. When I type in "host 66.228.32.238" in terminal it returns: "238.32.228.66.in-addr.arpa domain name pointer mail.koop.hk." the email still lands in the spam with following headers: Code: Delivered-To: waaijermichiel@gmail.com The actual code behind the message is: Code: ----==_mimepart_4de5c1e8bd2a1_21d04e6f7ba423fb For if it helps - before switching to Google Apps to host our email I set up email on my linode following this guide: http://library.linode.com/email/postfix ... 0.04-lucid Please help as I really need to fix this problem!! Thanks a lot! |
|
| Author: | sleddog [ Wed Jun 01, 2011 1:28 am ] |
| Post subject: | |
Code: Received: from mail.koop.hk (li282-238.members.linode.com [66.228.32.238]) Google isn't seeing your new reverse DNS yet. (Neither am I from home.) Give it more time to propagate -- 24-36 hours. |
|
| Page 1 of 2 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|