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

    cannot send email from Postfix to gmail

    IT Discussion
    5
    81
    16.1k
    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.
    • I
      IT-ADMIN
      last edited by

      111111.png

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

        what can i understand from the above result ??

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

          my DNS setting are :

          2015-08-20_174416.png

          S 1 Reply Last reply Reply Quote 0
          • S
            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
            • S
              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?

              J I 2 Replies Last reply Reply Quote 1
              • J
                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
                • I
                  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 ???

                  S 1 Reply Last reply Reply Quote 0
                  • J
                    JaredBusch
                    last edited by

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

                    1 Reply Last reply Reply Quote 0
                    • S
                      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
                      • S
                        scottalanmiller
                        last edited by

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

                        J 1 Reply Last reply Reply Quote 0
                        • J
                          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

                          J 1 Reply Last reply Reply Quote 0
                          • S
                            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
                            • D
                              dafyre
                              last edited by dafyre

                              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

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

                                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

                                S J 3 Replies Last reply Reply Quote 0
                                • S
                                  scottalanmiller @IT-ADMIN
                                  last edited by

                                  @IT-ADMIN said:

                                  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

                                  Maybe that used to be okay, maybe they are all typos. But Google says it is wrong and it is Google you are trying to connect to, so I'd listen to Google here.

                                  1 Reply Last reply Reply Quote 0
                                  • J
                                    JaredBusch @IT-ADMIN
                                    last edited by

                                    @IT-ADMIN said:

                                    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

                                    Don't read a how to. Read the official instructions first. then read a how to if you cannot figure it out.

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

                                      i change smtp.google.com to smtp-relay.gmail.com and i get in the log the following
                                      2015-08-20_183022.png

                                      S 1 Reply Last reply Reply Quote 0
                                      • D
                                        dafyre
                                        last edited by

                                        Go check your /var/mail/root
                                        and your Inbox. 🙂

                                        1 Reply Last reply Reply Quote 0
                                        • J
                                          JaredBusch
                                          last edited by

                                          Follow the instructions. Google's response message said to go verify/allow the IP in your Google Apps account..

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

                                            i didn't receive the email in my inbox and no email in /var/mail/root 😞
                                            2015-08-20_183603.png

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