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
  • Brite
  • 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 - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. Discourse
  3. Incoming Email: cannot open mailbox

Incoming Email: cannot open mailbox

Scheduled Pinned Locked Moved Discourse
20 Posts 4 Posters 222 Views 4 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.
  • jamesJ james

    Hello @phneutre
    Did you configure anything in discourse for incoming mails?
    See: https://meta.discourse.org/t/troubleshoot-reply-by-email/42026

    P Online
    P Online
    pHneutre
    wrote last edited by pHneutre
    #9

    @james Ah yes sure.
    POP3 polling enabled and :
    e874f470-7499-4766-98b7-60f32171c12e-image.jpeg

    Note: POP3 polling port was actually 9595 (and wasn't considered modified by discourse (no green dot)), so that explains the 9595 call (but why was there a 995 call too then?). I just changed it to 995 and tried again to send an email (and waited for the 5 min of polling period), but no luck.

    1 Reply Last reply
    1
    • P Online
      P Online
      pHneutre
      wrote last edited by
      #10

      Bumping this thread in case someone got an idea.

      1 Reply Last reply
      1
      • nebulonN Away
        nebulonN Away
        nebulon
        Staff
        wrote last edited by
        #11

        @phneutre so if you open a webterminal into the app and run env | grep MAIL you should see all the possible connection details. Note that using mail as the email server domain, means the app will connect via the local route and hence does not necessarily need encrypted connection at all, if that helps with the discourse pop3 setup.

        P 1 Reply Last reply
        0
        • nebulonN nebulon

          @phneutre so if you open a webterminal into the app and run env | grep MAIL you should see all the possible connection details. Note that using mail as the email server domain, means the app will connect via the local route and hence does not necessarily need encrypted connection at all, if that helps with the discourse pop3 setup.

          P Online
          P Online
          pHneutre
          wrote last edited by
          #12

          @nebulon

          CLOUDRON_MAIL_POP3_PORT=9595
          CLOUDRON_MAIL_POP3S_PORT=9995
          CLOUDRON_MAIL_SMTP_SERVER=mail
          CLOUDRON_MAIL_IMAP_SERVER=mail

          So that was why the pop3 polling port was 9595 on Discourse. I reverted it to 9595 and tried again replying by email. Still nothing, and the timeout on 9595 is back (at least it's consistent).
          Could there be a port conflict? How could I check that?

          1 Reply Last reply
          0
          • nebulonN Away
            nebulonN Away
            nebulon
            Staff
            wrote last edited by
            #13

            If you open a webterminal into your app instance you can try telnet mail 9595 to see if telnet is able to connect on the pop3 port. You should see this:

            root@c5a31d99-2479-4c15-9f9f-b10ed96a3886:/app/code# telnet mail 9595
            Trying fd00:c107:d509::4...
            Connected to mail.
            Escape character is '^]'.
            +OK Dovecot (Ubuntu) ready.
            
            P 1 Reply Last reply
            0
            • nebulonN nebulon

              If you open a webterminal into your app instance you can try telnet mail 9595 to see if telnet is able to connect on the pop3 port. You should see this:

              root@c5a31d99-2479-4c15-9f9f-b10ed96a3886:/app/code# telnet mail 9595
              Trying fd00:c107:d509::4...
              Connected to mail.
              Escape character is '^]'.
              +OK Dovecot (Ubuntu) ready.
              
              P Online
              P Online
              pHneutre
              wrote last edited by
              #14

              @nebulon I get exactly that (except for the IP address ofc).

              1 Reply Last reply
              0
              • nebulonN Away
                nebulonN Away
                nebulon
                Staff
                wrote last edited by
                #15

                huh an yet if ou use 9595 with mail as the host in discourse you still get timeouts?

                P 1 Reply Last reply
                0
                • nebulonN nebulon

                  huh an yet if ou use 9595 with mail as the host in discourse you still get timeouts?

                  P Online
                  P Online
                  pHneutre
                  wrote last edited by
                  #16

                  @nebulon
                  Yes:
                  e2dd03d0-9a25-4564-b7e3-54f27dcb72e5-image.jpeg

                  What do you exactly mean by "with mail as the host in discourse" ? My Discourse settings are as above. Host is the default one (my) :
                  74f99d00-ae76-438b-8d4e-a5cc917312ba-image.jpeg

                  1 Reply Last reply
                  0
                  • nebulonN Away
                    nebulonN Away
                    nebulon
                    Staff
                    wrote last edited by
                    #17

                    Ah try mail as the hostname instead of the dashboard domain. This would resolve to the local IP of the mail server and not the external interface.

                    P 1 Reply Last reply
                    0
                    • nebulonN nebulon

                      Ah try mail as the hostname instead of the dashboard domain. This would resolve to the local IP of the mail server and not the external interface.

                      P Online
                      P Online
                      pHneutre
                      wrote last edited by
                      #18

                      @nebulon This will move the whole cloudron instance's mail server to this name. Aren't there any references I should worry about when doing this? (we're hosting a bunch of services, I don't know all of them)

                      jdaviescoatesJ 1 Reply Last reply
                      0
                      • nebulonN Away
                        nebulonN Away
                        nebulon
                        Staff
                        wrote last edited by
                        #19

                        Ah sorry, I might not have been clearly communicating. I was referring to the configuration within discourse, use mail there as the mail server host.

                        1 Reply Last reply
                        0
                        • P pHneutre

                          @nebulon This will move the whole cloudron instance's mail server to this name. Aren't there any references I should worry about when doing this? (we're hosting a bunch of services, I don't know all of them)

                          jdaviescoatesJ Offline
                          jdaviescoatesJ Offline
                          jdaviescoates
                          wrote last edited by
                          #20

                          @pHneutre I could be wrong, but I think @nebulon is just suggesting that instead of my.solectic.cloud in the POP3 polling host field shown below, you just put mail

                          acad1740-df6f-404f-987d-2cca23238dcf-image.jpeg

                          I could be wrong, but I don't think he's suggesting updating the Server location as per https://docs.cloudron.io/email#server-location

                          I use Cloudron with Gandi & Hetzner

                          1 Reply Last reply
                          0

                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                          With your input, this post could be even better 💗

                          Register Login
                          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