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

Offical apps | Community apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. Error upgrading connection with STARTTLS: 502 5.5.1 Error: command not implemented

Error upgrading connection with STARTTLS: 502 5.5.1 Error: command not implemented

Scheduled Pinned Locked Moved Solved Support
emailrelay
5 Posts 3 Posters 150 Views 3 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.
  • S
    S
    smilebasti
    wrote last edited by joseph
    #1

    Hi, I got a new domain, added it to cloudron, set up my E-Mail but failed to set up my E-Mail-Relay.
    I want to relay it to my Proxmox Mail Gateway like I do with my other, older and still functioning (Email-)Domains.

    I set it to External SMTP server (No Authentication), enter the PMG host IP and the internal relaying port of PMG 26. I tested it with checked and not checked accept self signed certificates.
    Then I get the error: Error upgrading connection with STARTTLS: 502 5.5.1 Error: command not implemented. That error I think comes from Proxmox.

    Did in the last year something change in Cloudron that now forces the TLS while setup? Can i setup the connection manually to ignore TLS like the other domains do?

    1 Reply Last reply
    2
    • girishG
      girishG
      girish
      Staff
      wrote last edited by
      #4

      @smilebasti in Cloudron 9, we decided to only accept STARTTLS servers which is the needed for some basic security . I guess for local intranet relays we can add an option to disable this.

      In the meantime, you can edit /home/yellowtent/box/src/mail.js (depending on the version this can be mailserver.js or mailstatus.js). Look for requireTLS: true and just set this to false and systemctl restart box . That should let you add the relay. Haraka already support opportunistic STARTTLS .

      S 1 Reply Last reply
      0
      • J
        J
        joseph
        Staff
        wrote last edited by
        #2

        The mail relay requires STARTTLS - https://docs.cloudron.io/email/#relay-outgoing-mails . Is that enabled in Proxmox?

        S 1 Reply Last reply
        1
        • J joseph

          The mail relay requires STARTTLS - https://docs.cloudron.io/email/#relay-outgoing-mails . Is that enabled in Proxmox?

          S
          S
          smilebasti
          wrote last edited by
          #3

          @joseph
          Hi, no and never was.
          Ai gave me following command to test it:

          openssl s_client -starttls smtp -connect 192.168.20.64:26 -crlf
          
          CONNECTED(00000003)
          Didn't find STARTTLS in server response, trying anyway...
          40A70407AB700000:error:0A00010B:SSL routines:ssl3_get_record:wrong version number:../ssl/record/ssl3_record.c:354:
          ---
          no peer certificate available
          ---
          No client certificate CA names sent
          ---
          SSL handshake has read 239 bytes and written 326 bytes
          Verification: OK
          ---
          New, (NONE), Cipher is (NONE)
          Secure Renegotiation IS NOT supported
          Compression: NONE
          Expansion: NONE
          No ALPN negotiated
          Early data was not sent
          Verify return code: 0 (ok)
          

          Is there anything else I can provide?

          My other 5 Domains that I have set up over a year ago are still working perfectly without any problem and never had. It just came up with the new domain I wanted to add.

          So why do the old domains don't have that and how can I add the new one like the same as the old?
          Is there a config file I can manually copy from the old domains and set it up manually to avoid the starttls check from the GUI?

          1 Reply Last reply
          1
          • girishG
            girishG
            girish
            Staff
            wrote last edited by
            #4

            @smilebasti in Cloudron 9, we decided to only accept STARTTLS servers which is the needed for some basic security . I guess for local intranet relays we can add an option to disable this.

            In the meantime, you can edit /home/yellowtent/box/src/mail.js (depending on the version this can be mailserver.js or mailstatus.js). Look for requireTLS: true and just set this to false and systemctl restart box . That should let you add the relay. Haraka already support opportunistic STARTTLS .

            S 1 Reply Last reply
            0
            • girishG girish

              @smilebasti in Cloudron 9, we decided to only accept STARTTLS servers which is the needed for some basic security . I guess for local intranet relays we can add an option to disable this.

              In the meantime, you can edit /home/yellowtent/box/src/mail.js (depending on the version this can be mailserver.js or mailstatus.js). Look for requireTLS: true and just set this to false and systemctl restart box . That should let you add the relay. Haraka already support opportunistic STARTTLS .

              S
              S
              smilebasti
              wrote last edited by
              #5

              @girish Hi,

              thank you. That worked perfectly.
              Not sure how many people would need that function?

              1 Reply Last reply
              1
              • S smilebasti has marked this topic as solved

              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