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
22 Posts 4 Posters 224 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 setup the wildcard alias according to the docs?
    https://docs.cloudron.io/packages/discourse/#incoming-email-setup

    For unique addresses per category, setup mail aliases for forum@YourMailDomain.TLD. For a category named offtopic, create a mail alias like forum@YourMailDomain.TLD. Create a wildcard mail alias * to choose any category name freely.

    P Offline
    P Offline
    pHneutre
    wrote last edited by
    #5

    @james I didn't realize it was necessary, thanks.
    I set it up on the 10th of march at 17:49. From this moment, the Discourse logs hasn't shown any TCP timeout on 995 anymore. But mails remain ineffective.
    These errors remain afterwards:

    5848241d-dba7-40fe-b9d8-c00f6d43de97-image.jpeg
    I suspect the SMTPServerBusy reveals a new problem?

    1 Reply Last reply
    1
    • jamesJ Offline
      jamesJ Offline
      james
      Staff
      wrote last edited by
      #6

      Hello @phneutre

      Can you share your Discourse configuration?

      P 1 Reply Last reply
      0
      • jamesJ james

        Hello @phneutre

        Can you share your Discourse configuration?

        P Offline
        P Offline
        pHneutre
        wrote last edited by
        #7

        @james As soon as I understand what you mean by that 🙂

        1 Reply Last reply
        0
        • jamesJ Offline
          jamesJ Offline
          james
          Staff
          wrote last edited by
          #8

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

          P 1 Reply Last reply
          1
          • 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 Offline
            P Offline
            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 Offline
              P Offline
              pHneutre
              wrote last edited by
              #10

              Bumping this thread in case someone got an idea.

              1 Reply Last reply
              1
              • nebulonN Offline
                nebulonN Offline
                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 Offline
                  P Offline
                  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 Offline
                    nebulonN Offline
                    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 Offline
                      P Offline
                      pHneutre
                      wrote last edited by
                      #14

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

                      1 Reply Last reply
                      0
                      • nebulonN Offline
                        nebulonN Offline
                        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 Offline
                          P Offline
                          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 Offline
                            nebulonN Offline
                            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 Offline
                              P Offline
                              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 Offline
                                nebulonN Offline
                                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
                                  • P Offline
                                    P Offline
                                    pHneutre
                                    wrote last edited by
                                    #21

                                    When changing POP3 polling host from my.soletic.cloud to mail (the name on the local network?), I get :

                                    88643348-ab5b-490f-a4d2-aed9fd952fd9-image.jpeg

                                    If I try mail.soletic.cloud (public address just in case?), I get:

                                    1537875e-702f-4a99-a9be-88cd6829e923-image.jpeg

                                    1 Reply Last reply
                                    0
                                    • jdaviescoatesJ Offline
                                      jdaviescoatesJ Offline
                                      jdaviescoates
                                      wrote last edited by
                                      #22

                                      I was just guessing, could easily be wrong. I guess @nebulon will have to be a little clearer/ more explicit about exactly what he's asking you to try 🙂

                                      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