Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2014-02-10
10
Medium Priority
?
2,115 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 13

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
Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

 

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 13

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 13

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 13

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 13

Accepted Solution

by:
ktaczala earned 1500 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

As much as Microsoft wants to kill off PST file support, just as they tried to do with public folders, there are still times when it is useful or downright necessary to export Exchange mailboxes to PST files. Thankfully, it is still possible to e…
Mailbox Corruption is a nightmare every Exchange DBA wishes he never has. Recovering from it can be super-hectic if not entirely futile. And though techniques like the New-MailboxRepairRequest cmdlet have been designed to help with fixing minor corr…
how to add IIS SMTP to handle application/Scanner relays into office 365.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Suggested Courses
Course of the Month12 days, 23 hours left to enroll

972 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