Solved

SMTP Virtual Server Emails Going to Spam

Posted on 2013-05-17
35
611 Views
Last Modified: 2013-05-20
Hi, I was wondering if there is something you guys can help me out with. I have an SMTP Virtual Server setup through IIS on Window Server 2008 hosted with Hostway that our php uses to send email out through. It is working fine, however, the problem is the the emails sent out through most of the time seem to get marked as spam/junk on the receiving end. However if the same email is used to send out through Hostway hosted exchange server the email does not get marked as spam. I am wondering if it has something to do with the PTR records that hostway set up for me or maybe the domain DNS settings. I have read that the spam problem could be caused by IP inconsistencies across DNS and PTR records.

Right now the main domain I am concerned with is www.grouptravelvideos.com

Also, I have checked http://www.spamhaus.org/lookup/ for both the domain and server IP.

Any help would be greatly appreciated!
Thanks, Cole Archer


PTR record: 170.87.216.in-addr.arpa. poiting to each domain.

www.grouptravelvideos.com DNS Settings:
A (Host)       
@ Points to 216.87.170.134


CNAME (Alias)       
autodiscover Points to @
www Points to @


MX (Mail Exchanger)       
@ Points to createavideo.com.s5a1.psmtp.com


TXT (Text)       
@ "v=spf1 a -all"
@ "v=spf1 ptr -all"
@ v=spf1 mx ip4:168.215.206.155 mx:mail.createavideo.com ?all
0
Comment
Question by:photovision
  • 19
  • 16
35 Comments
 
LVL 3

Expert Comment

by:Paul_Howard_D7
ID: 39175286
Hi photovision

Its more of an outbound thing, what IP does your virtual server send mail out on?

This IP will need to have a matching PTR to the HELO greeting this server gives out.

So if the public translated address is say 168.215.206.155 and your HELO for the virtual server is smtp.grouptravelvideos.com then setup a PTR record so that it reflects this, remember to create a coresponding A record for that host first.

This will help in reducing the SPAM classification of the inbound email

Kind Regards

Paul
0
 

Author Comment

by:photovision
ID: 39175387
Our A record point s to 216.87.170.134.

I had also reached out to our server host and they responded with this:

I did find that the PTR record for grouptravelvideos.com was no longer listed in our DNS server. We've re-submitted it to the database and it's already in effect. This should hopefully clear up issues with mail not being delivered properly. If the issue continues, please keep a copy of the returned mail (along w/ error message) for further diagnosis. Please also see the output below and advise if you need further details. Thanks in advance.

sdig grouptravelvideos.com
grouptravelvideos.com.      38      IN      A      216.87.170.134

sdig -x 216.87.170.134    
134.170.87.216.in-addr.arpa. 299 IN      PTR      grouptravelvideos.com.


Does is seem like that is going to fix the problem? I'm a bit confused because it also has this IP in it 134.170.87.216.

Thanks,
Cole
0
 
LVL 3

Expert Comment

by:Paul_Howard_D7
ID: 39175400
Actually haveing a PTR record will help but they should be able to change this for you to the FQDN that you supply as long as the A record exists first.

Is everything all on one server with one IP ?

Paul
0
 

Author Comment

by:photovision
ID: 39175439
Yes, all domains are on the same server with IP 216.87.170.134. We use a separate hosted exchange service for our incoming mail. What FQDN would I need to give them?

-Cole
0
 
LVL 3

Expert Comment

by:Paul_Howard_D7
ID: 39175520
Use a host name of smtp.yourdomin.tld its your choice or mx1. etc just has to match the HELO statement that the server gives out.

Paul
0
 

Author Comment

by:photovision
ID: 39175563
How am I supposed to set the HELO statement that the server gives out?
0
 
LVL 3

Expert Comment

by:Paul_Howard_D7
ID: 39175572
Under the settings in IIS6 do you have access to the server?

Paul
0
 

Author Comment

by:photovision
ID: 39175575
Yes
0
 

Author Comment

by:photovision
ID: 39175580
If i go to SMTP server properties, I see FQDN as wtf4586.tam.us.siteprotect.com
0
 
LVL 3

Expert Comment

by:Paul_Howard_D7
ID: 39175859
Off my head if you right click server > properties > delivery > advanced > FQDN

Make this entry the same as what you make the rDNS entry, telnet into the IP on port 25 to check the response.

Get all the other bits in place before you make the change and record your changes so you can go back, in case.

Paul
0
 

Author Comment

by:photovision
ID: 39175895
Do I need to change FQDN or can I just ask Hostway to set PTR record to FQDN that's already in place (wtf4586.tam.us.siteprotect.com )?

Do I need to change my DNS A record from Server IP (216.87.170.134)?

Thanks,
Cole
0
 
LVL 3

Expert Comment

by:Paul_Howard_D7
ID: 39175919
wtf4586.tam.us.siteprotect.com as far as i can tell an non-existant domain, so probably best to set this as you wish, set an A record for something on your domain or a domain that you own, i.e. "mx1.grouptravelvideos.com" then ask Hostway to change the PTR record so that it points to your server IP 216.87.170.134

your not changing any A records your adding a new one then Hostway can use that for the PTR reference as currently its just "grouptravelvideos.com"

Cheers

Paul
0
 
LVL 3

Expert Comment

by:Paul_Howard_D7
ID: 39175933
Once this has been set then the recieving server will be greeted with "mx1.grouptravelvideos.com" as the HELO SMTP response and when it checks to see if the PTR records match they will.

You need to choose the FQDN though mine are just examples, you may have A records for these already pointing elsewhere so check in your DNS first.

Paul
0
 

Author Comment

by:photovision
ID: 39175965
Ok, the server sends emails out for multiple websites  grouptravelvideos.com, createavideo.com, thepowerofmemories.com, photovision.com, thememorybank.com. But all are under the company name photovision.

So I could....
1 - Set A record @ pointing to mx1.photovision.com (for all domains)
2 - Set FQDN on virtual smtp server to mx1.photovision.com
3 - Ask Hostway to change the PTR record so that it points to web server IP 216.87.170.134

Does that sound right?

Thanks,
Cole
0
 

Author Comment

by:photovision
ID: 39176030
Here's a screen shot of all the dns settings i have. So all I need to do is add A record Host=@ and Points to=mx1.photovision.com and then the other 2 things listed above. Just want to make sure I completely understand before I change anything.

Thanks,
Cole
gtv-dns.jpg
0
 
LVL 3

Expert Comment

by:Paul_Howard_D7
ID: 39176056
GoDaddy right ?

Use quick add to add an A record for mx1.photovision.com you need to login to that DNS management for that domain and add it there, don't touch the @ record or add one.
 
Then speak to the hosting provider to get the PTR record changed from grouptravelvideos.com
to mx1.photovision.com

Then change the FQDN on the SMTP server and test it via telnet.

Paul
0
 

Author Comment

by:photovision
ID: 39176091
For new A record, what should be the value for host? I thought it was supposed to be @?
0
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
LVL 3

Expert Comment

by:Paul_Howard_D7
ID: 39176106
your A record will be mx1

as your creating mx1.photovision.com

Paul
0
 

Author Comment

by:photovision
ID: 39176136
Does this look right?
Capture.PNG
0
 
LVL 3

Expert Comment

by:Paul_Howard_D7
ID: 39176140
No remove that quick.
0
 
LVL 3

Expert Comment

by:Paul_Howard_D7
ID: 39176141
The A records are added in the top most entry use quick add from there.

Paul
0
 
LVL 3

Expert Comment

by:Paul_Howard_D7
ID: 39176143
and that DNS zone is grouptravelvideos.com not photovision.com
0
 

Author Comment

by:photovision
ID: 39176156
I just need to know what I put for Host and what I put for points to.....

Did you see this comment from earlier which explains why I was using photovision?

Ok, the server sends emails out for multiple websites  grouptravelvideos.com, createavideo.com, thepowerofmemories.com, photovision.com, thememorybank.com. But all are under the company name photovision.

So I could....
1 - Set A record @ pointing to mx1.photovision.com (for all domains)
2 - Set FQDN on virtual smtp server to mx1.photovision.com
3 - Ask Hostway to change the PTR record so that it points to web server IP 216.87.170.134

Does that sound right?

Thanks,
Cole
0
 
LVL 3

Expert Comment

by:Paul_Howard_D7
ID: 39176175
That sounds right.

your not editing the DNS zone photvision.com your editing grouptravelvideos.com im reading that from your screenshot top left ?

item 1 your setting "An" A record not setting a record @ just trying to clarify the type of DNS entry your adding :)

so you need to go into the control panel for photovision.com and add an A record type.

Paul
0
 

Author Comment

by:photovision
ID: 39176216
So I just need to add it for photovision.com even though I send out email address from all the domains?

Clearly there is something I'm just not getting....it's been a long week....please see attached
Capture.PNG
0
 
LVL 3

Accepted Solution

by:
Paul_Howard_D7 earned 500 total points
ID: 39176240
That's it so in the host name box put mx1 and in the IP address put 216.87.170.134

The email domains your sending out for is irrelevant, all we are worried about here is the PTR record of which we can have only one, so if your choosing to make that reference mx1.photovision.com then we need to add that A record for that domain.

Whats happening here is the receiving server that's accepting mail from your server says HELO to it your server is currently saying HELO im wtf4586.tam.us.siteprotect.com the reciving server is saying are you really ill check by performing a reverse lookup on that FQDN to see if there is a PTR record from the IP address your server is communicating from which is  216.87.170.134 this is currently is "grouptravelvideos.com" so its getting flagged as possible spam as they don't match.

I hope im making sense :)

Paul
0
 

Author Comment

by:photovision
ID: 39176263
That does make sense! Thank you for explaining it :)

Hostway responded with:
The requested PTR records have been updated and are all reversing to 216.87.170.134. Please see below for output.

sdig 134.170.87.216.in-addr.arpa @ns1.candidhosting.com any
134.170.87.216.in-addr.arpa. 299 IN      PTR      createavideo.com.
134.170.87.216.in-addr.arpa. 299 IN      PTR      grouptravelvideos.com.
134.170.87.216.in-addr.arpa. 299 IN      PTR      photovision.com.
134.170.87.216.in-addr.arpa. 299 IN      PTR      thememorybank.com.
134.170.87.216.in-addr.arpa. 299 IN      PTR      thepowerofmemories.com.


Going to add record, then change FQDN on server, then reboot and cross my fingers....
0
 
LVL 3

Expert Comment

by:Paul_Howard_D7
ID: 39176276
You have requested them to add all the domains to the IP for PTR records it will only return one which will be createavideo.com

You should have asked them to make it mx1.photvision.com only

it should just be this

134.170.87.216.in-addr.arpa. 299 IN      PTR      mx1.photvision.com.

I think you have misunderstood this somewhere.

you wont need a reboot of the server

Paul
0
 

Author Comment

by:photovision
ID: 39176295
Crap! Ok, thanks. I just asked them to make the change. I'm glad i told you what their response was. Already rebooted, probably needed it anyway, it's been awhile.....

Once I get response from that the PTR is good, I'll mark conversation as solved.

I hope this fixes the spam problem. Hopefully, we'll get more responses to system emails and that will give us a good indication that it worked.

Thank you for all your help:)
0
 
LVL 3

Expert Comment

by:Paul_Howard_D7
ID: 39176301
No problem, it may not completely fix the spam issue, but this is best practice SMTP setup,

post when you add that "A" record of "mx1" to the domain and when they change the PTR record.

Paul
0
 

Author Comment

by:photovision
ID: 39176311
I've already changed A record for photovision.com. The hostway guys are on EST so they may be gone for the night as it's after 6 here. I'll post back mon. Thanks, have a great weekend :)
0
 
LVL 3

Expert Comment

by:Paul_Howard_D7
ID: 39176317
Sure and you too

23:16 here ;)

Ill have a look tomorrow, it will take some time to propagate

Paul
0
 
LVL 3

Expert Comment

by:Paul_Howard_D7
ID: 39176737
The A record and PTR record look fine to me, if the server HELO is now done you should be good to go.

Paul
Results.png
0
 

Author Comment

by:photovision
ID: 39181433
Hostway's response.....

Ok, it's all done. Please see below for the same output in 2 different mannerisms:

sdig 134.170.87.216.in-addr.arpa @ns1.candidhosting.com any
134.170.87.216.in-addr.arpa. 299 IN      PTR      mx1.photovision.com.

sdig -x 216.87.170.134 @ns1.candidhosting.com        
134.170.87.216.in-addr.arpa. 299 IN      PTR      mx1.photovision.com.
0
 
LVL 3

Expert Comment

by:Paul_Howard_D7
ID: 39181437
Good looks fine :)

Paul
0

Featured Post

The problems with reply email signatures

Do you wish that you could place an email signature under a reply? Well, unfortunately, you can't. That great Exchange/Office 365 signature you've created will just appear at the bottom of an email chain. What a pain! Is there really no way to solve this? Well, there might be...

Join & Write a Comment

Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
A procedure for exporting installed hotfix details of remote computers using powershell
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now