Solved

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

Posted on 2014-02-10
10
2,012 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
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 

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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
This video discusses moving either the default database or any database to a new volume.
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…

776 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