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

      how can i inform my gmail account to allow postfix to use it as a relay ??

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

        Does this line tell us anything...

        Aug 20 15:59:20 localhost postfix/smtp[13618]: connect to smtp.gmail.com[2a00:1450:400c:c07::6c]:587: Network is unreachable

        Maybe there is a network error here? Test that port with telnet.

        I 1 Reply Last reply Reply Quote 0
        • D
          Dashrender @scottalanmiller
          last edited by

          @scottalanmiller said:

          @Dashrender said:

          Of course assuming I move to O365, then I will begin to have these problems.

          Why would you assume that?

          Because of posts like this. Of course we could get lucky and things like this might be working better.

          S 1 Reply Last reply Reply Quote 0
          • S
            scottalanmiller @Dashrender
            last edited by

            @Dashrender said:

            Because of posts like this. Of course we could get lucky and things like this might be working better.

            But this is about GMail. Did someone talk about Office 365, which is unrelated to Gmail.

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

              @scottalanmiller said:

              Does this line tell us anything...

              Aug 20 15:59:20 localhost postfix/smtp[13618]: connect to smtp.gmail.com[2a00:1450:400c:c07::6c]:587: Network is unreachable

              Maybe there is a network error here? Test that port with telnet.

              can you explain what do you mean please

              S 1 Reply Last reply Reply Quote 0
              • D
                Dashrender @scottalanmiller
                last edited by

                @scottalanmiller said:

                @Dashrender said:

                Because of posts like this. Of course we could get lucky and things like this might be working better.

                But this is about GMail. Did someone talk about Office 365, which is unrelated to Gmail.

                not in this thread, but I've seen other threads a long time ago talking about these types of problems.

                S 1 Reply Last reply Reply Quote 0
                • S
                  scottalanmiller @Dashrender
                  last edited by

                  @Dashrender said:

                  not in this thread, but I've seen other threads a long time ago talking about these types of problems.

                  Lots of people having issues sending to plain Exchange too. But you don't get the impression that it doesn't work. You just have to set it up correctly. We do this, so there is no question that it works. And we send out through GMail. So there is no reason for suspicion different than any IT system that could be misconfigured.

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

                    @IT-ADMIN said:

                    @scottalanmiller said:

                    Does this line tell us anything...

                    Aug 20 15:59:20 localhost postfix/smtp[13618]: connect to smtp.gmail.com[2a00:1450:400c:c07::6c]:587: Network is unreachable

                    Maybe there is a network error here? Test that port with telnet.

                    can you explain what do you mean please

                    The error suggests that the network cannot connect. There is no reason (yet) to worry about email configurations or security. The error that you have is simply that there is no networking and the two systems are not talking. There is a real chance that the ports are blocked on your network.

                    Use telnet and see what happens...

                    telnet smtp.google.com 587
                    
                    1 Reply Last reply Reply Quote 0
                    • I
                      IT-ADMIN
                      last edited by

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

                      222.png

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

                        looks like a DNS issue.

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

                          232323.png

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

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

                                I 1 Reply Last reply Reply Quote 0
                                • I
                                  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
                                  • S
                                    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
                                      • 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
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 4 / 5
                                            • First post
                                              Last post