Solved

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

Posted on 2014-02-10
10
2,025 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:arjunvyavahare
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 18

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
How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

 

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Learn to move / copy / export exchange contacts to iPhone without using any software. Also see the issues in configuration of exchange with iPhone to migrate contacts.
In-place Upgrading Dirsync to Azure AD Connect
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

856 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