Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. Outbound email with Google

Outbound email with Google

Scheduled Pinned Locked Moved Solved Support
7 Posts 3 Posters 1.6k Views 3 Watching
  • 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.
    • S Offline
      S Offline
      scottharvey
      wrote on last edited by
      #1

      I am trying to set up outgoing email using Google and I'm getting a Connection timeout error.

      Is there any way to determine what the problem is?

      0_1535082972047_Screen Shot 2018-08-24 at 10.54.46 AM.jpg

      1 Reply Last reply
      0
      • nebulonN Offline
        nebulonN Offline
        nebulon
        Staff
        wrote on last edited by
        #2

        Can you verify, that you can reach the smtp.gmail.com server on port 587 just fine on the server? This can be tested on a ssh connection to your server and then attempting telnet smtp.gmail.com 587

        Also you might want to take a look at the system logs at journatlct list box, maybe they give more hints.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          scottharvey
          wrote on last edited by scottharvey
          #3

          Here are the logs when I try to connect to the server, I've manually changed my logs to point to example.com

          Aug 25 00:04:00 my.example.com node[23958]: Sat, 25 Aug 2018 00:03:59 GMT connect-lastmile Bad Request : Connection timeout
          Aug 25 00:04:00 my.example.com node[23958]: Box POST /api/v1/mail/example.com/relay 400 5003.952 ms - 64
          Aug 25 00:04:00 my.example.com node[23958]: box:scheduler sync: synchronizing global state with installed app state
          Aug 25 00:04:00 my.example.com node[23958]: box:scheduler sync: done
          

          When trying to telnet the command just freezes on the following

          root@my:/home# telnet smtp.gmail.com 587
          Trying 74.125.24.108...
          Trying 74.125.24.109...
          
          1 Reply Last reply
          0
          • nebulonN Offline
            nebulonN Offline
            nebulon
            Staff
            wrote on last edited by
            #4

            If you can ping those IPs (ping 74.125.24.108) successfully, then this is most likely a firewall issue. May it be possible that your VPS provider blocks outbound connections to that port?

            1 Reply Last reply
            0
            • girishG Do not disturb
              girishG Do not disturb
              girish
              Staff
              wrote on last edited by
              #5

              @scottharvey Are you on Google Cloud?

              S 1 Reply Last reply
              0
              • girishG girish

                @scottharvey Are you on Google Cloud?

                S Offline
                S Offline
                scottharvey
                wrote on last edited by
                #6

                @girish I am using Digital Ocean, I found someone suggesting to contact Digital Ocean support in order to open port 587. I sent them an email and I'm just waiting for a reply.

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  scottharvey
                  wrote on last edited by
                  #7

                  After contacting Digital Ocean support and answering a few questions about my email usage they unblocked port 587 so I can send email now. Thanks for the help.

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Bookmarks
                    • Search