Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ord6

macrumors newbie
Original poster
Jun 19, 2012
24
0
Hello,

I'm trying to send through the Mac terminal:

date | mail -s testing test@gmail.com

In mail.log I get the following error:

"Jul 19 10:19:17 oris-imac.home postfix/error[707]: 165009630728: to=<test@gmail.com>, relay=none, delay=31, delays=0.61/31/0/0, dsn=4.4.3, status=deferred (delivery temporarily suspended: Host or domain name not found. Name service error for name=smtp.gmail.com type=MX: Host not found, try again)
Jul 19 10:19:46 oris-imac.home postfix/master[682]: master exit time has arrived"

I looked for a solution online but couldn't find any one that was useful for me, but I guess it's a DNS issue.

Anyone know what can I do to solve this?

Thanks!
 

kryten2

macrumors 65816
Mar 17, 2012
1,114
99
Belgium
Where did you look? What have you tried? Looks like a DNS problem but could be anything.

1) Is there a difference between the nameservers you are seeing in /etc/resolv.conf and what appears in System Preferences > Network for the DNS Server? For that matter, /var/run/resolv.conf and /private/etc/resolv.conf should all match too.

2) Maybe it’s a problem with lookupd. You can restart it with “sudo dscacheutil -flushcache”.

3) Have you installed anything to block ports like PeerGuardian, Little Snitch or done anything firewallish?

4) Is the behavior different at home vs. school or a corporate network? Do you run your own DNS?

5) Anything else in /var/log/mail.log that looks interesting?

Info and things to do and check here and here. Post some output of the commands you ran.

Info : http://benjaminrojas.net/configuring-postfix-to-send-mail-from-mac-os-x-mountain-lion/ and http://www.zenddeveloper.com/how-to-send-smtp-mails-with-postfix-mac-os-x-10-8/
 

ord6

macrumors newbie
Original poster
Jun 19, 2012
24
0
While I'm testing the points you brought up (Thanks!), I'll add that I changed system preferences -> network -> advanced -> DNS to google's public DNS server and it now works.

Anything I need to do to make it work without it?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.