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. FreeScout
  3. Connection could not be established with host mail.domain.com [Connection timed out #110]

Connection could not be established with host mail.domain.com [Connection timed out #110]

Scheduled Pinned Locked Moved Solved FreeScout
43 Posts 6 Posters 2.6k Views 6 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.
  • humptydumptyH humptydumpty

    @joseph I'm encountering the same send/fetch issues on a fresh Freescout app that I installed under a different subdomain and set it all up manually; no settings/backups were restored or imported.

    Edit: running some more tests...

    cloudron-support --troubleshoot

    Vendor: Hetzner Product: vServer
    Linux: 6.8.0-51-generic
    Ubuntu: noble 24.04
    Processor: AMD EPYC Processor
    BIOS NotSpecified  CPU @ 2.0GHz x 2
    RAM: 7933852KB
    Disk: /dev/sda1        47G
    [OK]    node version is correct
    [OK]    IPv6 is enabled and public IPv6 address is working
    [OK]    docker is running
    [OK]    docker version is correct
    [OK]    MySQL is running
    [OK]    nginx is running
    [OK]    dashboard cert is valid
    [OK]    dashboard is reachable via loopback
    [OK]    box v8.2.1 is running
    [OK]    netplan is good
    [OK]    DNS is resolving via systemd-resolved
    [OK]    Dashboard is reachable via domain name
    [OK]    Domain domain.com is valid and has not expired
    [OK]    unbound is running
    
    

    systemctl status box

    ● box.service - Cloudron Admin
         Loaded: loaded (/etc/systemd/system/box.service; enabled; preset: enabled)
         Active: active (running) since Fri 2024-12-20 20:06:23 UTC; 1 day 6h ago
        Process: 353312 ExecReload=/bin/kill -HUP $MAINPID (code=exited, status=0/SUCCESS)
       Main PID: 106740 (node)
          Tasks: 11 (limit: 9212)
         Memory: 103.2M (max: 400.0M available: 296.7M peak: 113.3M)
            CPU: 7min 50.967s
         CGroup: /system.slice/box.service
                 └─106740 node /home/yellowtent/box/box.js
    

    I just noticed that IPV6 is enabled in my dashboard > network. I don't remember if I had that enabled before or not.

    • Could it be related to it?

    Another note, I'm using Hetzner and have not configured their firewall. It's been working fine. I also shot a ticket earlier to Hetzner support and they confirmed that 587 and 993 are not being blocked on my server. Port 25 and some other one are blocked by default and I have not requested their opening since I use Mailgun SMTP.

    • Should I manually enable ports 587 and 993 in Hetzner's firewall regardless?
    girishG Offline
    girishG Offline
    girish
    Staff
    wrote on last edited by girish
    #8

    @humptydumpty said in Connection could not be established with host mail.domain.com [Connection timed out #110]:

    Should I manually enable ports 587 and 993 in Hetzner's firewall regardless?

    Oh, this could be it. Are you using the full name in freescout like mail.domain.com ? If so, external ports have to be opened. I guess you got the blocking of those ports from somewhere in the docs? We should probably add some caveats to it.

    1 Reply Last reply
    0
    • girishG girish

      @humptydumpty just double checking, have you seen https://docs.cloudron.io/apps/freescout/#cloudron-mailbox already? Important thing here is TLS vs SSL distinction in freescout. I remember writing about this somewhere in the forum, let me see if I can find it. I think everything looks fine in your setup, just some freescout configuration.

      humptydumptyH Offline
      humptydumptyH Offline
      humptydumpty
      wrote on last edited by humptydumpty
      #9

      @girish said in Connection could not be established with host mail.domain.com [Connection timed out #110]:

      @humptydumpty just double checking, have you seen https://docs.cloudron.io/apps/freescout/#cloudron-mailbox already? Important thing here is TLS vs SSL distinction in freescout.

      Yep, I've seen this and FS has been working correctly for years now.

      @girish said in Connection could not be established with host mail.domain.com [Connection timed out #110]:

      Oh, this could be it. Are you using the full name in freescout like mail.domain.com ?

      Yes, I'm using the full domain (mail.domain.com). Again, I didn't change anything and it was all working fine until now. I switched to Hetzner a couple of months ago, but it's been working fine this whole time. It stopped suddenly on its own, coincidentally around the same time when I upgraded to 8.2/8.2.1.

      I'll try opening the ports manually in Hetzner's firewall. I'd like to avoid doing that because when I first signed up with Hetzner, I did play with the firewall to open ports and things went south and couldn't undo it. I had to spin up a new one. Hopefully, it plays nice this time.

      Btw, Freescout and the mail server are on the same server.

      c07def58-65e2-499d-aac8-0d67490dacf7-image.png

      35d63f35-fa43-4d6b-b887-ef1334459938-image.png

      f64630bb-df37-437f-91d9-62b908ed49c8-image.png

      1 Reply Last reply
      0
      • humptydumptyH Offline
        humptydumptyH Offline
        humptydumpty
        wrote on last edited by
        #10

        @girish Am I opening incoming, outgoing, or both in Hetzner?

        image.png

        1 Reply Last reply
        0
        • girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by
          #11

          @humptydumpty just incoming

          humptydumptyH 1 Reply Last reply
          0
          • girishG girish

            @humptydumpty just incoming

            humptydumptyH Offline
            humptydumptyH Offline
            humptydumpty
            wrote on last edited by humptydumpty
            #12

            @girish I forgot to ask, UDP or TCP 😧 and allow ANY IPV4/6?

            2369a374-7ed5-4333-be16-8e50396fc3a1-image.png

            They won't let me enter the ending port since "it has to be higher" so I left it blank.

            1 Reply Last reply
            0
            • humptydumptyH Offline
              humptydumptyH Offline
              humptydumpty
              wrote on last edited by
              #13

              Sigh. Server died upon activating the firewall.

              image.png

              1 Reply Last reply
              0
              • girishG Offline
                girishG Offline
                girish
                Staff
                wrote on last edited by
                #14

                @humptydumpty not sure how the firewall works but maybe when you enable one rule, it blocks all others . So , you have to open port 80 and port 443 as well.

                humptydumptyH 1 Reply Last reply
                1
                • humptydumptyH Offline
                  humptydumptyH Offline
                  humptydumpty
                  wrote on last edited by humptydumpty
                  #15

                  Maybe I should open all of these too (except for "any"). I do use SSH and 53 for the DNS makes sense. IDK about the MYSQL and PGSQL though.

                  image.png

                  1 Reply Last reply
                  0
                  • girishG girish

                    @humptydumpty not sure how the firewall works but maybe when you enable one rule, it blocks all others . So , you have to open port 80 and port 443 as well.

                    humptydumptyH Offline
                    humptydumptyH Offline
                    humptydumpty
                    wrote on last edited by humptydumpty
                    #16

                    @girish That didn't help. I still can't send the test email in FS. Here's what I have activated in the Hetzner firewall. Server is up though so you're right, it does block all unless specified.

                    ed46cd12-ec56-45a3-b466-498319845818-image.png

                    1 Reply Last reply
                    0
                    • girishG Offline
                      girishG Offline
                      girish
                      Staff
                      wrote on last edited by
                      #17

                      @humptydumpty are you using Cloudflare? I can't think of any other reason

                      1 Reply Last reply
                      0
                      • humptydumptyH Offline
                        humptydumptyH Offline
                        humptydumpty
                        wrote on last edited by humptydumpty
                        #18

                        For the mail server domain, yes. The mailbox (different domain) is using Bunny. Proxy is off though. CDN acceleration is disabled in Bunny DNS. I didn't change anything at all when this issue started. It's been working fine. I use FS daily. Also, mail is working fine in Roundcube so DNS, ports, wtv are correct. It's FS that's picky, no sending/fetching of mailboxes. Oh, and I have multiple mailboxes using domains on Cloudflare and Bunny. Issue is the same for all. Issue is the same on a fresh FS, so it's not module related either.

                        Under manage > mail settings > system emails > send test to --- This test email is sent and received fine!

                        1 Reply Last reply
                        0
                        • girishG Offline
                          girishG Offline
                          girish
                          Staff
                          wrote on last edited by girish
                          #19

                          @humptydumpty the system email is configured by cloudron itself. You can ignore this (for this problem).

                          One thing in your screenshot: I noticed now that FS has changed it's TLS options (very nice). You have to choose STARTTLS for port 587. In yours it is none.

                          1 Reply Last reply
                          0
                          • girishG Offline
                            girishG Offline
                            girish
                            Staff
                            wrote on last edited by
                            #20

                            image.png

                            1 Reply Last reply
                            0
                            • humptydumptyH Offline
                              humptydumptyH Offline
                              humptydumpty
                              wrote on last edited by humptydumpty
                              #21

                              The docs still say to use none if CR mail and FS are on the same server (which they are for my case). I updated it to TLS, but issue persists. I even restarted the app with no effect.

                              image.png

                              1 Reply Last reply
                              0
                              • girishG Offline
                                girishG Offline
                                girish
                                Staff
                                wrote on last edited by
                                #22

                                @humptydumpty the docs are a bit outdated since FS has changed the Encryption options. I will fix that once we resolve this... I am out of ideas now though. Can you send us an email to support@cloudron.io with the domain? It must be something very obvious because our FS works.

                                humptydumptyH 1 Reply Last reply
                                0
                                • girishG girish

                                  @humptydumpty the docs are a bit outdated since FS has changed the Encryption options. I will fix that once we resolve this... I am out of ideas now though. Can you send us an email to support@cloudron.io with the domain? It must be something very obvious because our FS works.

                                  humptydumptyH Offline
                                  humptydumptyH Offline
                                  humptydumpty
                                  wrote on last edited by
                                  #23

                                  @girish Sent.

                                  1 Reply Last reply
                                  0
                                  • humptydumptyH Offline
                                    humptydumptyH Offline
                                    humptydumpty
                                    wrote on last edited by
                                    #24

                                    @girish I'm not sure if you got my email as I sent an email (proton email) to my CR email (roundcube) and I didn't receive it. I deleted the Hetzner firewall (as I've had it this whole time) and then sent a new email and then it was received in Roundcube.

                                    1 Reply Last reply
                                    0
                                    • girishG Offline
                                      girishG Offline
                                      girish
                                      Staff
                                      wrote on last edited by
                                      #25

                                      @humptydumpty thanks.

                                      Just as an update: we found that for some reason, the docker containers (any of them) are unable to reach any port other than port 443/80 using the public IP. From the server itself, all ports of public IP are reachable... Have to debug this further tomorrow.

                                      1 Reply Last reply
                                      3
                                      • Dave SwiftD Offline
                                        Dave SwiftD Offline
                                        Dave Swift
                                        wrote on last edited by
                                        #26

                                        Any update on this? I'm having the same issue.

                                        1 Reply Last reply
                                        1
                                        • humptydumptyH Offline
                                          humptydumptyH Offline
                                          humptydumpty
                                          wrote on last edited by
                                          #27

                                          This is happening if the mailserver and freescout are on the same server. You can either move FS to another CR or change the mailbox settings (sending/fetching) to what's shown in the screenshots below until a perm fix is released and then you can revert to the previous settings.

                                          SENDING
                                          image.png


                                          FETCHING
                                          d82434b6-4714-41b4-971f-821263ec6849-image.png

                                          1 Reply Last reply
                                          1
                                          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