Cannot send mail with postfix

Discussion in 'Mac Programming' started by ord6, Jul 19, 2013.

  1. macrumors newbie

    Joined:
    Jun 19, 2012
    #1
    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!
     
  2. macrumors 6502a

    Joined:
    Mar 17, 2012
    Location:
    Belgium
    #2
    Where did you look? What have you tried? Looks like a DNS problem but could be anything.

    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/
     
  3. thread starter macrumors newbie

    Joined:
    Jun 19, 2012
    #3
    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?
     

Share This Page