Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jul 19, 2013, 03:36 AM   #1
ord6
macrumors newbie
 
Join Date: Jun 2012
Cannot send mail with postfix

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!
ord6 is offline   0 Reply With Quote
Old Jul 19, 2013, 06:24 PM   #2
kryten2
macrumors 6502a
 
Join Date: Mar 2012
Location: Belgium
Where did you look? What have you tried? Looks like a DNS problem but could be anything.

Quote:
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...mountain-lion/ and http://www.zenddeveloper.com/how-to-...mac-os-x-10-8/
__________________
Space Corps Directive 34124
kryten2 is offline   0 Reply With Quote
Old Jul 20, 2013, 06:52 AM   #3
ord6
Thread Starter
macrumors newbie
 
Join Date: Jun 2012
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?
ord6 is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Tags
bash, dns issue, mail

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Can't send mail hihocarp Mac Basics and Help 1 May 7, 2014 02:34 PM
Unable To Send Mail benh911f iCloud and Apple Services 7 Apr 11, 2014 09:53 PM
Cant send mail with bt broadband! clancyjack MacBook Pro 23 Mar 13, 2013 11:20 AM
Getting mail to send with the same address... itsjustmeee Mac Applications and Mac App Store 1 Jan 13, 2013 09:58 PM
MAIL - REPLY, Mail uses different email to send Milateket Mac Applications and Mac App Store 3 Dec 30, 2012 01:07 PM

Forum Jump

All times are GMT -5. The time now is 05:02 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC