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. Cannot connect with TSL/SSL

Cannot connect with TSL/SSL

Scheduled Pinned Locked Moved Solved FreeScout
32 Posts 9 Posters 5.8k Views 9 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.
  • subvenS Offline
    subvenS Offline
    subven
    wrote on last edited by
    #2

    Have you checked the docs? Only SMTP works.

    Can you post your SMTP configuration (maybe censoring personal details like domain names)?

    jordanurbsJ 1 Reply Last reply
    0
    • jordanurbsJ jordanurbs

      Trying to use a Cloudron mailbox for this.

      Outgoing: I've tried using PHP mail() function as well as manually inserting the Mailgun SMTP details on all 3 ports with either SSL or TSL and nothing will send.

      With PHP mail() selected it tells me to check the logs. This is there in the cloudron app logs but nothing else looks out of place:

      sh: 1: /usr/sbin/sendmail: not found
      

      And with Mailgun selected I get one of the following depending on which port and if SSL or TSL is selected

      stream_socket_enable_crypto(): Peer certificate CN=`*.mailgun.org' did not match expected CN=`smtp.mailgun.com'
      

      OR

      Connection could not be established with host smtp.mailgun.com [ #0]
      

      Doesn't feel like a Mailgun issue as I'm not having issues sending mail elsewhere. When I select Mailgun with no encryption, the test email is successful.

      jimcavoliJ Offline
      jimcavoliJ Offline
      jimcavoli
      App Dev
      wrote on last edited by
      #3

      @jordanurbs That looks an issue with the TLS implementation underpinning the mail function using peer matching that is too strict/dumb on the hostname. They're using a wildcard cert and for whatever reason PHP is balking at the * wildcard and expecting that to literally be the hostname. This was a known bug in PHP like 7 years ago, but shouldn't be a contemporary problem. What version of PHP are you using?

      1 Reply Last reply
      0
      • jordanurbsJ jordanurbs

        Trying to use a Cloudron mailbox for this.

        Outgoing: I've tried using PHP mail() function as well as manually inserting the Mailgun SMTP details on all 3 ports with either SSL or TSL and nothing will send.

        With PHP mail() selected it tells me to check the logs. This is there in the cloudron app logs but nothing else looks out of place:

        sh: 1: /usr/sbin/sendmail: not found
        

        And with Mailgun selected I get one of the following depending on which port and if SSL or TSL is selected

        stream_socket_enable_crypto(): Peer certificate CN=`*.mailgun.org' did not match expected CN=`smtp.mailgun.com'
        

        OR

        Connection could not be established with host smtp.mailgun.com [ #0]
        

        Doesn't feel like a Mailgun issue as I'm not having issues sending mail elsewhere. When I select Mailgun with no encryption, the test email is successful.

        girishG Do not disturb
        girishG Do not disturb
        girish
        Staff
        wrote on last edited by
        #4

        @jordanurbs If you are using a Cloudron mailbox, then you only need to put in Cloudron credentials and not mailgun credentials. Mailgun credentials (I assume for relay?) can be set in Email -> select domain -> outbound mail.

        I have added screenshots for Cloudron email configuration in freescout here - https://docs.cloudron.io/apps/freescout/#cloudron-mailbox

        1 Reply Last reply
        1
        • subvenS subven

          Have you checked the docs? Only SMTP works.

          Can you post your SMTP configuration (maybe censoring personal details like domain names)?

          jordanurbsJ Offline
          jordanurbsJ Offline
          jordanurbs
          wrote on last edited by
          #5

          @subven the docs say this:

          For sending emails of a specific mailbox, the STMP method has to be selected as php mail() or sendmail wont work on Cloudron.
          

          @jimcavoli the Cloudron default, looks like 7.3

          @girish this took care of it. Thanks for adding that to the docs, makes everything much simpler

          1 Reply Last reply
          1
          • jimcavoliJ Offline
            jimcavoliJ Offline
            jimcavoli
            App Dev
            wrote on last edited by
            #6

            Yeah, I think I misinterpreted your question a little - glad you're all set though!

            1 Reply Last reply
            0
            • T Offline
              T Offline
              TestDesk
              wrote on last edited by
              #7

              Good day @all

              I hope you are well. I am happy to be with you and to work with you on solutions and feedbacks.

              Currently, I have the following problem, short summary:

              • FreeScout installed and mailbox set up - works.
              • Checked email settings (system) with a test email - works
              • Mailbox set up for incoming email - works

              Now the problem:
              Sending an e-mail via the mailbox (SMTP) does not work.

              The following error message appears:

              Expected response code 220 but got code "500", with message "500 Unrecognised command"
              

              Bildschirmfoto 2021-03-06 um 10.40.50.png

              I have checked the settings for SMTP several times. With the same settings I was able to set up Thunderbrid without any problems.

              I took my settings from the official description, see screenshot.

              SMTP settings

              What I noticed:
              As soon as I set the encryption from TLS to NONE, the sending works.

              Is it a BUG or have I overlooked something?

              Thanks in advance for your help.

              nebulonN girishG 2 Replies Last reply
              0
              • T TestDesk

                Good day @all

                I hope you are well. I am happy to be with you and to work with you on solutions and feedbacks.

                Currently, I have the following problem, short summary:

                • FreeScout installed and mailbox set up - works.
                • Checked email settings (system) with a test email - works
                • Mailbox set up for incoming email - works

                Now the problem:
                Sending an e-mail via the mailbox (SMTP) does not work.

                The following error message appears:

                Expected response code 220 but got code "500", with message "500 Unrecognised command"
                

                Bildschirmfoto 2021-03-06 um 10.40.50.png

                I have checked the settings for SMTP several times. With the same settings I was able to set up Thunderbrid without any problems.

                I took my settings from the official description, see screenshot.

                SMTP settings

                What I noticed:
                As soon as I set the encryption from TLS to NONE, the sending works.

                Is it a BUG or have I overlooked something?

                Thanks in advance for your help.

                nebulonN Offline
                nebulonN Offline
                nebulon
                Staff
                wrote on last edited by
                #8

                @testdesk your settings do seem to be ok, we use the same settings on our FreeScout instance just fine.

                Do you have any additional plugins installed in FreeScout? Generally if encryption set to None, it should still perform StartTLS upon connection so you should still be fine there. However I do wonder what the difference might be here.

                Are there any further hints in the FreeScout log view? (the one built into FreeScout itself)

                T 1 Reply Last reply
                0
                • nebulonN nebulon

                  @testdesk your settings do seem to be ok, we use the same settings on our FreeScout instance just fine.

                  Do you have any additional plugins installed in FreeScout? Generally if encryption set to None, it should still perform StartTLS upon connection so you should still be fine there. However I do wonder what the difference might be here.

                  Are there any further hints in the FreeScout log view? (the one built into FreeScout itself)

                  T Offline
                  T Offline
                  TestDesk
                  wrote on last edited by
                  #9

                  Hello @nebulon
                  Wow! That's a reaction time 👍

                  I don't have any plugins installed.

                  The log from FreeScout shows the following (The last 4 entries):

                  Last 4 entries

                  Can I look somewhere to see if StartTLS was really used?

                  THX

                  imc67I 1 Reply Last reply
                  0
                  • T TestDesk

                    Hello @nebulon
                    Wow! That's a reaction time 👍

                    I don't have any plugins installed.

                    The log from FreeScout shows the following (The last 4 entries):

                    Last 4 entries

                    Can I look somewhere to see if StartTLS was really used?

                    THX

                    imc67I Online
                    imc67I Online
                    imc67
                    translator
                    wrote on last edited by
                    #10

                    @testdesk on two FreeScout instances I use this:

                    SMTP: mail
                    Port: 2525
                    Encryption: no

                    T 1 Reply Last reply
                    0
                    • imc67I imc67

                      @testdesk on two FreeScout instances I use this:

                      SMTP: mail
                      Port: 2525
                      Encryption: no

                      T Offline
                      T Offline
                      TestDesk
                      wrote on last edited by
                      #11

                      Hello @imc67

                      Unfortunately, this does not work for the mailboxes, but only for the system settings, at least not for me.

                      I just tried it, error. I know the settings, they also work with Wordpress and Nextcloud very fine.

                      THX

                      nebulonN 1 Reply Last reply
                      0
                      • T TestDesk

                        Hello @imc67

                        Unfortunately, this does not work for the mailboxes, but only for the system settings, at least not for me.

                        I just tried it, error. I know the settings, they also work with Wordpress and Nextcloud very fine.

                        THX

                        nebulonN Offline
                        nebulonN Offline
                        nebulon
                        Staff
                        wrote on last edited by
                        #12

                        @testdesk hm so also not really more information from FreeScout on the error.
                        Freescout does not have the Cloudron mail addon enabled, since a common use-case is to use external mailboxes as well. This is why it is correct to use the regular mailserver domain in this case my.example.com

                        @girish can correct me if I am wrong here, but I don't think the mail server even allows non secure transfer anyways, so if encyption set to "no" it is fine as well.

                        Still I have to see if I can reproduce this with a new FreeScout instance against the Cloudron mail server later today.

                        1 Reply Last reply
                        0
                        • T TestDesk

                          Good day @all

                          I hope you are well. I am happy to be with you and to work with you on solutions and feedbacks.

                          Currently, I have the following problem, short summary:

                          • FreeScout installed and mailbox set up - works.
                          • Checked email settings (system) with a test email - works
                          • Mailbox set up for incoming email - works

                          Now the problem:
                          Sending an e-mail via the mailbox (SMTP) does not work.

                          The following error message appears:

                          Expected response code 220 but got code "500", with message "500 Unrecognised command"
                          

                          Bildschirmfoto 2021-03-06 um 10.40.50.png

                          I have checked the settings for SMTP several times. With the same settings I was able to set up Thunderbrid without any problems.

                          I took my settings from the official description, see screenshot.

                          SMTP settings

                          What I noticed:
                          As soon as I set the encryption from TLS to NONE, the sending works.

                          Is it a BUG or have I overlooked something?

                          Thanks in advance for your help.

                          girishG Do not disturb
                          girishG Do not disturb
                          girish
                          Staff
                          wrote on last edited by
                          #13

                          @testdesk Setting encryption to NONE is correct setting when FreeScout is installed on the same server as Cloudron mail. When FreeScout is installed in another server, then you have to use TLS.

                          The reason is a bit esoteric. Internally, Cloudron uses containers and the mail container is called 'mail'. Many apps don't work properly if you try to connect with the hostname as 'mail' but the TLS certificate says 'my.domain.com' (because of hostname mismatch). So, for historic reasons, we do not enable TLS for connection within the server itself. In this case, FreeScout is in same server as mail server and thus TLS option is not available. This is totally safe because the full connection is within the server. If you move your freescout to another server, then remember to put it to TLS.

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

                            I have put a doc note here - https://docs.cloudron.io/apps/freescout/#cloudron-mailbox

                            ianhyzyI 1 Reply Last reply
                            1
                            • girishG girish

                              I have put a doc note here - https://docs.cloudron.io/apps/freescout/#cloudron-mailbox

                              ianhyzyI Offline
                              ianhyzyI Offline
                              ianhyzy
                              wrote on last edited by
                              #15

                              @girish I've copied the info from the screenshot here (Freescout and cloudron are on the same machine; mailgun is configured as the outbound SMTP provider in Cloudron settings; there are two mail-enabled domains) but I'm getting an error about the port being closed:

                              e5e07995-31b8-4b48-bf1a-9e2159442304-image.png
                              87ee3de7-b9e4-41e3-a916-a799d2414df2-image.png

                              Could this be my firewall/ISP or did I misconfigure something?

                              micmcM girishG 2 Replies Last reply
                              0
                              • ianhyzyI ianhyzy

                                @girish I've copied the info from the screenshot here (Freescout and cloudron are on the same machine; mailgun is configured as the outbound SMTP provider in Cloudron settings; there are two mail-enabled domains) but I'm getting an error about the port being closed:

                                e5e07995-31b8-4b48-bf1a-9e2159442304-image.png
                                87ee3de7-b9e4-41e3-a916-a799d2414df2-image.png

                                Could this be my firewall/ISP or did I misconfigure something?

                                micmcM Offline
                                micmcM Offline
                                micmc
                                wrote on last edited by
                                #16

                                @ianhyzy Try PORT 2525 with TLS/SSL encryption 😉

                                Andy

                                Ignorance is not an excuse anymore!
                                https://AutomateKit.com

                                ianhyzyI 1 Reply Last reply
                                0
                                • micmcM micmc

                                  @ianhyzy Try PORT 2525 with TLS/SSL encryption 😉

                                  Andy

                                  ianhyzyI Offline
                                  ianhyzyI Offline
                                  ianhyzy
                                  wrote on last edited by
                                  #17

                                  @micmc Got the same port blocked error with that:

                                  617a032e-deae-4253-9605-0190f339352f-image.png

                                  micmcM 1 Reply Last reply
                                  0
                                  • ianhyzyI ianhyzy

                                    @micmc Got the same port blocked error with that:

                                    617a032e-deae-4253-9605-0190f339352f-image.png

                                    micmcM Offline
                                    micmcM Offline
                                    micmc
                                    wrote on last edited by
                                    #18

                                    @ianhyzy Try NO encryption?

                                    Ignorance is not an excuse anymore!
                                    https://AutomateKit.com

                                    ianhyzyI 1 Reply Last reply
                                    0
                                    • micmcM micmc

                                      @ianhyzy Try NO encryption?

                                      ianhyzyI Offline
                                      ianhyzyI Offline
                                      ianhyzy
                                      wrote on last edited by
                                      #19

                                      @micmc same error 😞

                                      micmcM 1 Reply Last reply
                                      0
                                      • ianhyzyI ianhyzy

                                        @micmc same error 😞

                                        micmcM Offline
                                        micmcM Offline
                                        micmc
                                        wrote on last edited by
                                        #20

                                        @ianhyzy I'm guessing your 'mail' mx is the cloudron one and that ALL email settings are enabled and GREEN for the domain you use for your FreshScout?

                                        Ignorance is not an excuse anymore!
                                        https://AutomateKit.com

                                        ianhyzyI 1 Reply Last reply
                                        0
                                        • micmcM micmc

                                          @ianhyzy I'm guessing your 'mail' mx is the cloudron one and that ALL email settings are enabled and GREEN for the domain you use for your FreshScout?

                                          ianhyzyI Offline
                                          ianhyzyI Offline
                                          ianhyzy
                                          wrote on last edited by
                                          #21

                                          @micmc Yup, green light and works with other apps

                                          micmcM 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