cannot send email from Postfix to gmail
-
i don't think that i have DNS issue cuz google.com was resolved successfully as shown on the above image
-
-
You just need to add the DNS servers to the /etc/resolv.conf file.
-
@scottalanmiller said:
You just need to add the DNS servers to the /etc/resolv.conf file.
i already add DNS servers (8.8.4.4 and 8.8.8.8) on my centos box, and you can see in the above image i can ping google.com, so there is no issue in my DNS setting
-
Ping doesn't tell you that. Use nslookup and see what the result of this is...
nslookup smtp.google.com
-
@IT-ADMIN said:
i already add DNS servers (8.8.4.4 and 8.8.8.8) on my centos box, and you can see in the above image i can ping google.com, so there is no issue in my DNS setting
No, smtp.google.com is not google.com. You have a DNS problem.
-
-
what can i understand from the above result ??
-
my DNS setting are :
-
@IT-ADMIN said:
That means that you can't look up smtp.google.com. Most likely because your DNS is being hijacked. This is why we don't use ping to test DNS.
-
@IT-ADMIN said:
my DNS setting are :
We can tell from the nslookup that you hit the right DNS server (8.8.8.8) but what we can't tell is why smtp.google.com does not exist for it. BUT if I look smtp.google.com up from here in Panama, Google DNS tells me that it does not exist either. Are you sure that the name is correct?
-
@scottalanmiller said:
BUT if I look smtp.google.com up from here in Panama, Google DNS tells me that it does not exist either. Are you sure that the name is correct?
Bingo!
-
@scottalanmiller said:
We can tell from the nslookup that you hit the right DNS server (8.8.8.8) but what we can't tell is why smtp.google.com does not exist for it. BUT if I look smtp.google.com up from here in Panama, Google DNS tells me that it does not exist either. Are you sure that the name is correct?
the name of what ???
-
-
@IT-ADMIN said:
the name of what ???
The server that you are trying to reach. The only name you have here: smtp.google.com
-
Google suggests that you use this name: smtp-relay.gmail.com
-
@scottalanmiller said:
Google suggests that you use this name: smtp-relay.gmail.com
That is specific to Google Apps. I thought he was using a personal Gmail account. That would be smtp.gmail.com
-
Oh okay, I must have misread it.
So just change google to gmail.
-
If he is trying to send an email to gmail... he should be sble to use the smtp-relay.gmail.com
That is their primary incoming MX record....
#dig mx gmail.com
gmail.com. 3599 IN MX 40 alt4.gmail-smtp-in.l.google.com.
gmail.com. 3599 IN MX 30 alt3.gmail-smtp-in.l.google.com.
gmail.com. 3599 IN MX 10 alt1.gmail-smtp-in.l.google.com.
gmail.com. 3599 IN MX 5 gmail-smtp-in.l.google.com.
gmail.com. 3599 IN MX 20 alt2.gmail-smtp-in.l.google.com.#nslookup smtp-relay.gmail.com
Non-authoritative answer:
smtp-relay.gmail.com canonical name = gmail-smtp-relay.l.google.com.
Name: ** gmail-smtp-relay.l.google.com**
Address: 74.125.193.28 -
as for the name i think it is correct cuz i'm using my personel gmail account, i fount that name on many howto articles , all of them mention this name smtp.google.com