Solved

Exchange 2013 - Unable to send to gmail? DNS query failed

Posted on 2014-02-10
10
2,035 Views
Last Modified: 2014-11-12
Hi,

Since about a month ago I can no longer send to any gmail accounts, but they can send to me.  It doesn't even attempt to send and holds it in the queue with "451 4.4.0 DNS query failed.  The error was: DNS query failed with error ErrorRetry".  Eventually a bounce back occurs with the following: '400 4.4.7 Message delayed' saying the message will reattempt delivery in a couple of days.

Sometimes the message will actually be sent to the gmail account but it will be hours before it goes through.

I can query the mx record for gmail.com fine from my exchange server, so I'm not sure what the actual issue is here.  I've also checked blacklists and we're fine.

Can someone give me an idea on where to look next?
0
Comment
Question by:ts11
10 Comments
 
LVL 12

Expert Comment

by:ktaczala
ID: 39849549
do you have a static IP address for your exchange server?  Are you using a smarthost, who is your internet provider?

check all your settings: mx, dns, txt, ptr, etc at: mxtoolbox.com
0
 
LVL 5

Expert Comment

by:Arjun Vyavahare
ID: 39849590
Hi,

Check your Static IP address is not blacklisted (www.mxtoolbox.com) and also try to send email using telnet to gmail from your exchange server.

How to send email using telnet:
http://www.yuki-onna.co.uk/email/smtp.html
0
 
LVL 19

Expert Comment

by:suriyaehnop
ID: 39850247
if you are using smart host to send email to internet, make sure your smart host able to query mx of gmail.

Try use gmail.com (8.8.8.8) DNS as your smart host resolution name.
0
Free eBook: Backup on AWS

Everything you need to know about backup and disaster recovery with AWS, for FREE!

 

Author Comment

by:ts11
ID: 39851303
I am not using smart host and am not on blacklist (per mxtoolbox).  I've checked all my settings at mxtoobox.  DNS lookup returns godaddy dns.  MX points to my mailmarshal ip (this is only for incoming mail).  I don't actually have an spf record created.

How can I add google dns as a smart host?
0
 
LVL 12

Expert Comment

by:ktaczala
ID: 39852086
You should have an spf record when hosting your own exchange,

go here and run the wizard.  once you have the info, Copy & paste it into your DNS hosting provider as a txt record.
0
 
LVL 12

Expert Comment

by:ktaczala
ID: 39852088
0
 

Author Comment

by:ts11
ID: 39852116
Thanks.  Just to confirm I've added the right settings:

v=spf1 mx:smtp.mydomain.com (mailmarshalip) ip4:122.XX.XXX.XXX (exchange ip) a:mail.mydomain.com (A record of exchange) ~all
0
 
LVL 12

Expert Comment

by:ktaczala
ID: 39852122
looks about right
0
 

Author Comment

by:ts11
ID: 39852137
ok, I will update my dns with this.  However, would not having an spf record be the reason for my original issue? I noticed that today that messages sent to gmail are going through, sometimes giving the above and then later sending after I initiate a retry in exchange.

Should I create a forwarder on my internal dns to google's dns 8.8.8.8?
0
 
LVL 12

Accepted Solution

by:
ktaczala earned 500 total points
ID: 39852291
Some services are getting more strict with exchange so I can't say that this will fix it but it won't hurt.

I use 8.8.8.8 on my forwarders, just because it's reliable & easy to remember :-)
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Follow this checklist to learn more about the 15 things you should never include in an email signature from personal quotes, animated gifs and out-of-date marketing content.
Scam emails are a huge burden for many businesses. Spotting one is not always easy. Follow our tips to identify if an email you receive is a scam.
This Micro Tutorial demonstrates how to create custom reports and the secrets of determine the metrics and dimensions for your data that works best with your needs.
This Micro Tutorial demonstrates in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

685 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