ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    cannot send email from Postfix to gmail

    Scheduled Pinned Locked Moved IT Discussion
    81 Posts 5 Posters 17.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • DashrenderD
      Dashrender
      last edited by

      looks like a DNS issue.

      1 Reply Last reply Reply Quote 0
      • IT-ADMINI
        IT-ADMIN
        last edited by

        232323.png

        1 Reply Last reply Reply Quote 0
        • IT-ADMINI
          IT-ADMIN
          last edited by

          i don't think that i have DNS issue cuz google.com was resolved successfully as shown on the above image

          1 Reply Last reply Reply Quote 0
          • scottalanmillerS
            scottalanmiller @IT-ADMIN
            last edited by

            @IT-ADMIN said:

            i run that command on my centOS box, it gives this

            222.png

            That was easy 🙂

            1 Reply Last reply Reply Quote 0
            • scottalanmillerS
              scottalanmiller
              last edited by

              You just need to add the DNS servers to the /etc/resolv.conf file.

              IT-ADMINI 1 Reply Last reply Reply Quote 0
              • IT-ADMINI
                IT-ADMIN @scottalanmiller
                last edited by

                @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

                JaredBuschJ 1 Reply Last reply Reply Quote 0
                • scottalanmillerS
                  scottalanmiller
                  last edited by

                  Ping doesn't tell you that. Use nslookup and see what the result of this is...

                  nslookup smtp.google.com
                  
                  1 Reply Last reply Reply Quote 0
                  • JaredBuschJ
                    JaredBusch @IT-ADMIN
                    last edited by

                    @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.

                    1 Reply Last reply Reply Quote 0
                    • IT-ADMINI
                      IT-ADMIN
                      last edited by

                      111111.png

                      scottalanmillerS 1 Reply Last reply Reply Quote 0
                      • IT-ADMINI
                        IT-ADMIN
                        last edited by

                        what can i understand from the above result ??

                        1 Reply Last reply Reply Quote 0
                        • IT-ADMINI
                          IT-ADMIN
                          last edited by

                          my DNS setting are :

                          2015-08-20_174416.png

                          scottalanmillerS 1 Reply Last reply Reply Quote 0
                          • scottalanmillerS
                            scottalanmiller @IT-ADMIN
                            last edited by

                            @IT-ADMIN said:

                            111111.png

                            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.

                            1 Reply Last reply Reply Quote 0
                            • scottalanmillerS
                              scottalanmiller @IT-ADMIN
                              last edited by

                              @IT-ADMIN said:

                              my DNS setting are :

                              2015-08-20_174416.png

                              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?

                              JaredBuschJ IT-ADMINI 2 Replies Last reply Reply Quote 1
                              • JaredBuschJ
                                JaredBusch @scottalanmiller
                                last edited by

                                @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!

                                1 Reply Last reply Reply Quote 1
                                • IT-ADMINI
                                  IT-ADMIN @scottalanmiller
                                  last edited by

                                  @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 ???

                                  scottalanmillerS 1 Reply Last reply Reply Quote 0
                                  • JaredBuschJ
                                    JaredBusch
                                    last edited by

                                    https://support.google.com/a/answer/176600?hl=en

                                    1 Reply Last reply Reply Quote 0
                                    • scottalanmillerS
                                      scottalanmiller @IT-ADMIN
                                      last edited by

                                      @IT-ADMIN said:

                                      the name of what ???

                                      The server that you are trying to reach. The only name you have here: smtp.google.com

                                      1 Reply Last reply Reply Quote 0
                                      • scottalanmillerS
                                        scottalanmiller
                                        last edited by

                                        Google suggests that you use this name: smtp-relay.gmail.com

                                        JaredBuschJ 1 Reply Last reply Reply Quote 0
                                        • JaredBuschJ
                                          JaredBusch @scottalanmiller
                                          last edited by

                                          @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

                                          JaredBuschJ 1 Reply Last reply Reply Quote 0
                                          • scottalanmillerS
                                            scottalanmiller
                                            last edited by scottalanmiller

                                            Oh okay, I must have misread it.

                                            So just change google to gmail.

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 2 / 5
                                            • First post
                                              Last post