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. Afterlogic cannot send emails

Afterlogic cannot send emails

Scheduled Pinned Locked Moved Solved Support
mail
17 Posts 4 Posters 2.3k 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.
    • nebulonN nebulon

      @cumpal I don't have an afterlogic instance to test this, but have you tried to toggle the SSL checkbox? We found that especially in mail settings, those are often a bit confusing and interpreted differently. Also of course I guess you then have moved your mail domain to mail.example.com instead of the default my.example.com ? Just double checking there.

      C Offline
      C Offline
      Cumpal
      wrote on last edited by Cumpal
      #3

      @nebulon I tried ticking the SSL checkbox but i got the same error, and yes i moved my mail server to mail.domain.com instead of my.domain.com

      Also tried running a SMTP test and all seems okay.

      Starting SMTP test of: mail.x.x
      0.00s
      Resolved IP address to: 80.xxx.x.x:587
      Connection: opening to 80.xxx.x.x:587, timeout=15
      Connection: opened
      0.37s
      < 220 mail.x.x ESMTP Haraka/2.8.27 ready
      1.88s
      SMTP connection established
      > EHLO example.com
      < 250-mail.x.x Hello example.com [XX.XX.XX.XX]Haraka is at your service.
      250-PIPELINING
      250-8BITMIME
      250-SMTPUTF8
      250-SIZE 26214400
      250 STARTTLS
      2.88s
      Connection: closed
      
      murgeroM 1 Reply Last reply
      0
      • C Cumpal

        @nebulon I tried ticking the SSL checkbox but i got the same error, and yes i moved my mail server to mail.domain.com instead of my.domain.com

        Also tried running a SMTP test and all seems okay.

        Starting SMTP test of: mail.x.x
        0.00s
        Resolved IP address to: 80.xxx.x.x:587
        Connection: opening to 80.xxx.x.x:587, timeout=15
        Connection: opened
        0.37s
        < 220 mail.x.x ESMTP Haraka/2.8.27 ready
        1.88s
        SMTP connection established
        > EHLO example.com
        < 250-mail.x.x Hello example.com [XX.XX.XX.XX]Haraka is at your service.
        250-PIPELINING
        250-8BITMIME
        250-SMTPUTF8
        250-SIZE 26214400
        250 STARTTLS
        2.88s
        Connection: closed
        
        murgeroM Offline
        murgeroM Offline
        murgero
        App Dev
        wrote on last edited by murgero
        #4

        @cumpal Depending on your firewall, you may need to use the internal name of the mail server docker (just called mail) as the the IMAP/SMTP host with port 2525. I had to do something like this with Nextcloud cause my firewall doesn't allow looped traffic:

        SMTP: mail:2525
        IMAP mail:993

        As another note, looking at your screenshot 587 is NOT SSL but normally STARTTLS. 465 is usually SSL. Might want to try that too. I am not 100% sure if Cloudron also has 465 open

        --
        https://urgero.org
        ~ Professional Nerd. Freelance Programmer. ~

        C 1 Reply Last reply
        0
        • murgeroM murgero

          @cumpal Depending on your firewall, you may need to use the internal name of the mail server docker (just called mail) as the the IMAP/SMTP host with port 2525. I had to do something like this with Nextcloud cause my firewall doesn't allow looped traffic:

          SMTP: mail:2525
          IMAP mail:993

          As another note, looking at your screenshot 587 is NOT SSL but normally STARTTLS. 465 is usually SSL. Might want to try that too. I am not 100% sure if Cloudron also has 465 open

          C Offline
          C Offline
          Cumpal
          wrote on last edited by Cumpal
          #5

          @murgero I tried 465 with SSL, no luck, 2525 with or without SSL and no luck.
          I added 2525 to the cloudron firewall whitelist but that didin't help either.

          murgeroM 1 Reply Last reply
          0
          • C Cumpal

            @murgero I tried 465 with SSL, no luck, 2525 with or without SSL and no luck.
            I added 2525 to the cloudron firewall whitelist but that didin't help either.

            murgeroM Offline
            murgeroM Offline
            murgero
            App Dev
            wrote on last edited by
            #6

            @cumpal If you are using the internal name, you would:

            Server name: mail
            Port: 2525

            You do not need to whitelist this as the traffic never leaves the cloudron server.

            --
            https://urgero.org
            ~ Professional Nerd. Freelance Programmer. ~

            C 1 Reply Last reply
            0
            • murgeroM murgero

              @cumpal If you are using the internal name, you would:

              Server name: mail
              Port: 2525

              You do not need to whitelist this as the traffic never leaves the cloudron server.

              C Offline
              C Offline
              Cumpal
              wrote on last edited by
              #7

              @murgero Where do i put that?

              murgeroM 1 Reply Last reply
              0
              • C Cumpal

                @murgero Where do i put that?

                murgeroM Offline
                murgeroM Offline
                murgero
                App Dev
                wrote on last edited by
                #8

                @cumpal Instead of mail.domain.com just use mail in imap / smtp server.

                --
                https://urgero.org
                ~ Professional Nerd. Freelance Programmer. ~

                C 1 Reply Last reply
                0
                • murgeroM murgero

                  @cumpal Instead of mail.domain.com just use mail in imap / smtp server.

                  C Offline
                  C Offline
                  Cumpal
                  wrote on last edited by
                  #9

                  @murgero Wouldn't that connect to nowhere tho?

                  murgeroM 1 Reply Last reply
                  0
                  • C Cumpal

                    @murgero Wouldn't that connect to nowhere tho?

                    murgeroM Offline
                    murgeroM Offline
                    murgero
                    App Dev
                    wrote on last edited by
                    #10

                    @cumpal mail is the internal name for the cloudron mail server. It will go there.

                    --
                    https://urgero.org
                    ~ Professional Nerd. Freelance Programmer. ~

                    C 1 Reply Last reply
                    0
                    • murgeroM murgero

                      @cumpal mail is the internal name for the cloudron mail server. It will go there.

                      C Offline
                      C Offline
                      Cumpal
                      wrote on last edited by
                      #11

                      @murgero Afterlogic is hosted on a another server outside of my cloudron mailserver, so i believe that wouldn't work

                      1 Reply Last reply
                      1
                      • C Cumpal

                        Hi, i'm asking for help here as a last resort as i can't figure out what is wrong.
                        I am hosting Afterlogic on a another server that doesn't have Cloudron installed.
                        The problem i'm having is that afterlogic cannot connect to my mail server which is hosted from
                        Cloudron.
                        Spark on my iPhone can send emails but some other email apps cannot send emails either eg. Outlook.
                        So i am wondering if my mail settings in Afterlogic are wrong or is there something else im missing?

                        74fce850-dba5-47e3-8984-fc35776d3409-kuva.png

                        These are the settings im using in Afterlogic
                        d59089d1-6789-4f78-b0cd-9dda6fb4cd31-kuva.png

                        girishG Offline
                        girishG Offline
                        girish
                        Staff
                        wrote on last edited by
                        #12

                        @cumpal Your settings look correct to me. The SSL checkbox must be checked for IMAP and be unchecked for 587. Port 587 uses opportunistic TLS/STARTTLS and does not use SSL immediately. But each mail client behaves differently and one has to dig deeper to understand what exactly this SSL checkbox means.

                        I see that Afterlogic has many products, so I am not sure what the correct docs to look at are. If it is https://afterlogic.com/docs/webmail-lite-8/configuring-webmail/advanced-configuration, then we have to somehow set this PreferStarttls flag.

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

                          FWIW, I test the mailserver with http://samples.afterlogic.com/asp-net-samples/set_smtp.aspx and it connects (do not put real username/password on that page!).

                          a5036fad-df89-4d1a-b6e6-e7d9da281a98-image.png

                          1 Reply Last reply
                          0
                          • girishG girish

                            @cumpal Your settings look correct to me. The SSL checkbox must be checked for IMAP and be unchecked for 587. Port 587 uses opportunistic TLS/STARTTLS and does not use SSL immediately. But each mail client behaves differently and one has to dig deeper to understand what exactly this SSL checkbox means.

                            I see that Afterlogic has many products, so I am not sure what the correct docs to look at are. If it is https://afterlogic.com/docs/webmail-lite-8/configuring-webmail/advanced-configuration, then we have to somehow set this PreferStarttls flag.

                            C Offline
                            C Offline
                            Cumpal
                            wrote on last edited by Cumpal
                            #14

                            @girish I am using Afterlogic WebMail Lite 8, and the test you gave me, it successfully connected to it.

                            Also checked the PreferStarttls flag and it was already set as true

                            757d4bc2-3873-40d9-a947-57bcc183e72f-kuva.png

                            girishG murgeroM 2 Replies Last reply
                            0
                            • C Cumpal

                              @girish I am using Afterlogic WebMail Lite 8, and the test you gave me, it successfully connected to it.

                              Also checked the PreferStarttls flag and it was already set as true

                              757d4bc2-3873-40d9-a947-57bcc183e72f-kuva.png

                              girishG Offline
                              girishG Offline
                              girish
                              Staff
                              wrote on last edited by
                              #15

                              @cumpal So, the next step to debug this would be to check the Cloudron mail server logs when afterlogic tries to connect. Also, does afterlogic itself have any detailed logs on why it cannot connect? Is it a network error or something SMTP error or auth error?

                              1 Reply Last reply
                              0
                              • C Cumpal

                                @girish I am using Afterlogic WebMail Lite 8, and the test you gave me, it successfully connected to it.

                                Also checked the PreferStarttls flag and it was already set as true

                                757d4bc2-3873-40d9-a947-57bcc183e72f-kuva.png

                                murgeroM Offline
                                murgeroM Offline
                                murgero
                                App Dev
                                wrote on last edited by
                                #16

                                @cumpal My apologies, I thought this was in a LAMP app on cloudron.

                                --
                                https://urgero.org
                                ~ Professional Nerd. Freelance Programmer. ~

                                1 Reply Last reply
                                0
                                • C Offline
                                  C Offline
                                  Cumpal
                                  wrote on last edited by
                                  #17

                                  Mystery solved; The server i was hosting Afterlogic on turns out is just too slow. Checking the logs it would always time out, which is 15 seconds.
                                  I ran Afterlogic on a much faster server and now it sends emails just fine.
                                  Thanks all for your efforts to help me, it was much appreciated.

                                  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