LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-19-2013, 04:13 AM   #1
oridahan
LQ Newbie
 
Registered: Jul 2013
Posts: 2

Rep: Reputation: Disabled
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!

Last edited by oridahan; 07-19-2013 at 04:17 AM.
 
Old 07-19-2013, 06:55 AM   #2
Tiens van Zyl
LQ Newbie
 
Registered: Oct 2012
Location: South Africa
Distribution: Fedora, Ubuntu, Redhat, OpenElec
Posts: 2

Rep: Reputation: 0
Hi

Maybe you have but did you ping smtp.gmail.com ? Did you receive a reply?
You could also run the below and post the results?

1. in cmd line (i use windows at work) type nslookup then press enter
2. type: set q=mx then press enter
3. type gmail.com then press enter and check if you see the same as below?

Server: my local dc
Address: xxx.yyy.zzz.ttt

Non-authoritative answer:
gmail.com MX preference = 40, mail exchanger = alt4.gmail-smtp-in.l.google
.com
gmail.com MX preference = 10, mail exchanger = alt1.gmail-smtp-in.l.google
.com
gmail.com MX preference = 20, mail exchanger = alt2.gmail-smtp-in.l.google
.com
gmail.com MX preference = 30, mail exchanger = alt3.gmail-smtp-in.l.google
.com
gmail.com MX preference = 5, mail exchanger = gmail-smtp-in.l.google.com

alt1.gmail-smtp-in.l.google.com internet address = 173.194.70.26
 
Old 07-19-2013, 07:03 AM   #3
oridahan
LQ Newbie
 
Registered: Jul 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
I can ping smtp.gmail.com without problem.

But when nslookup gives me a connection timed out error:

nslookup
> set q=mx
> gmail.com
;; connection timed out; no servers could be reached
>

Any idea what can I do to fix this?
Thanks!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can send mail but Not able to receive mail. Postfixadmin, dovecot, postfix setup RajeshThakur Linux - Newbie 9 04-20-2012 09:31 AM
[SOLVED] Postfix - I can send mail from my computer; but others can't send to me... djuhl30 Linux - Server 8 10-12-2009 03:34 PM
Postfix - allowing only certain users to send mail to a mail ID rahmathullakm Linux - Server 3 02-07-2009 12:05 PM
Postfix : mail cannot send to send outside ( can send/receive locally) bobbinsupport Linux - Networking 3 12-15-2007 11:40 PM
Postfix send mail problem(In RH9, kernal 2.4.20, postfix 2.1.5) minor Linux - General 4 07-11-2005 10:12 PM


All times are GMT -5. The time now is 09:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration