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. TLSA and DANE is missing on Cloudron mailserver

TLSA and DANE is missing on Cloudron mailserver

Scheduled Pinned Locked Moved Solved Support
emaildanetlsa
14 Posts 5 Posters 2.0k Views 5 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.
  • imc67I Offline
    imc67I Offline
    imc67
    translator
    wrote on last edited by
    #1

    Hi,

    I’m managing 2 Cloudron servers for 2 local foundations that needs also be able to email with and from our local government.

    Since a few weeks their email is not reaching us, it seems TLSA and DANE is needed for governments.

    I also did a check on Cloudron.io but that test even fails more, in our case only DANE is missing but urgently needed as we are missing important emails.

    https://en.internet.nl/mail/cloudron.io/1142534/

    girishG 1 Reply Last reply
    2
    • imc67I Offline
      imc67I Offline
      imc67
      translator
      wrote on last edited by
      #2

      Because it was so urgent (imagine we couldn't receive mails from the government who subsidise us and is partner in activities) I created a work around but it has to be repeated every time the CERTS get renewed (@girish when is this exactly?):

      1. go to a sub domain website (like www.) same as your mailserver is
      2. download the public key in PEM (convince yourself it's the wildcard cert)
      3. go to https://www.huque.com/bin/gen_tlsa
      4. leave the radio buttons as they are
      5. paste the PEM
      6. port number is 25
      7. transport protocol is tcp
      8. domain name is you mailserver domain name
      9. generate DNS record
      10. go to your DNS host and create a TLSA record with the details from the generated record in step 9.
      11. wait some minutes (or longer depending on propagation) and test via https://www.huque.com/bin/danecheck-smtp

      This has to be repeated on the same date/time as the mail server wildcard certificate is renewed, THAT is tricky 😵

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

        Interesting that DANE is a requirement. The big email providers have gone with STS instead. From what I read in the past, DANE is more secure and much easier to deploy than STS. STS required DNS and a wellknown record as opposed to DANE.

        @imc67 On Cloudron, we always re-use the private key. So, you can use the public key hash. See also https://mytechiethoughts.com/linux/implementing-dane-with-certbot-using-lets-encrypt/

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

          You can also use the usage 0 (based on Let's Encrypt CA). On ubuntu, if you install hash-slinger, it provides the records:

          $ tlsa --usage 0 --selector 1 --mtype 1 --port 993 my.smartserver.io
          Got a certificate with the following Subject:
          	/C=US/O=Let's Encrypt/CN=R3
          Use this as certificate to match? [y/N] y
          _993._tcp.my.smartserver.io. IN TLSA 0 1 1 8d02536c887482bc34ff54e41d2ba659bf85b341a0a20afadb5813dcfbcf286d
          Got a certificate with the following Subject:
          	/C=US/O=Let's Encrypt/CN=R3
          Use this as certificate to match? [y/N] y
          _993._tcp.my.smartserver.io. IN TLSA 0 1 1 8d02536c887482bc34ff54e41d2ba659bf85b341a0a20afadb5813dcfbcf286d
          
          imc67I 1 Reply Last reply
          0
          • girishG girish

            Interesting that DANE is a requirement. The big email providers have gone with STS instead. From what I read in the past, DANE is more secure and much easier to deploy than STS. STS required DNS and a wellknown record as opposed to DANE.

            @imc67 On Cloudron, we always re-use the private key. So, you can use the public key hash. See also https://mytechiethoughts.com/linux/implementing-dane-with-certbot-using-lets-encrypt/

            imc67I Offline
            imc67I Offline
            imc67
            translator
            wrote on last edited by
            #5

            @girish it’s indeed strange they require DANE / TLSA, that’s what their Helpdesk answered but I doubt it’s the reason for failing. I’ve checked GMail and they don’t have DANE / TLSA either.

            But I have to implement it otherwise they blame us, beside that it’s better to be extra safe.

            Thanks for the hint about the public key!

            1 Reply Last reply
            0
            • girishG girish

              You can also use the usage 0 (based on Let's Encrypt CA). On ubuntu, if you install hash-slinger, it provides the records:

              $ tlsa --usage 0 --selector 1 --mtype 1 --port 993 my.smartserver.io
              Got a certificate with the following Subject:
              	/C=US/O=Let's Encrypt/CN=R3
              Use this as certificate to match? [y/N] y
              _993._tcp.my.smartserver.io. IN TLSA 0 1 1 8d02536c887482bc34ff54e41d2ba659bf85b341a0a20afadb5813dcfbcf286d
              Got a certificate with the following Subject:
              	/C=US/O=Let's Encrypt/CN=R3
              Use this as certificate to match? [y/N] y
              _993._tcp.my.smartserver.io. IN TLSA 0 1 1 8d02536c887482bc34ff54e41d2ba659bf85b341a0a20afadb5813dcfbcf286d
              
              imc67I Offline
              imc67I Offline
              imc67
              translator
              wrote on last edited by
              #6

              @girish why port 993?

              girishG 1 Reply Last reply
              0
              • imc67I imc67

                Hi,

                I’m managing 2 Cloudron servers for 2 local foundations that needs also be able to email with and from our local government.

                Since a few weeks their email is not reaching us, it seems TLSA and DANE is needed for governments.

                I also did a check on Cloudron.io but that test even fails more, in our case only DANE is missing but urgently needed as we are missing important emails.

                https://en.internet.nl/mail/cloudron.io/1142534/

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

                @imc67 said in TLSA and DANE is missing on Cloudron mailserver:

                I also did a check on Cloudron.io but that test even fails more, in our case only DANE is missing but urgently needed as we are missing important emails.

                https://en.internet.nl/mail/cloudron.io/1142534/

                We never implemented DNSSEC. So far, there hasn't been a need for it. All our services are protected with PKI...

                1 Reply Last reply
                0
                • imc67I imc67

                  @girish why port 993?

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

                  @imc67 port 993 uses TLS (can also use 465). Port 25/587 use STARTTLS i.e it is a plain text connection which upgrades to TLS. The tlsa wants somewhere to make a TLS connection to i.e it is providing the above DNS values by making a live connection to the server.

                  edit: Whoops, I was wrong. Port 25 works fine too. Looks like it takes care of starttls. The issue was that I was trying to connect to port 25 from my home and outbound port 25 is blocked.

                  1 Reply Last reply
                  0
                  • scookeS Offline
                    scookeS Offline
                    scooke
                    wrote on last edited by
                    #9

                    I love coming across I post that I have no idea what is being talked about! So, off to Google!

                    A life lived in fear is a life half-lived

                    1 Reply Last reply
                    1
                    • girishG Offline
                      girishG Offline
                      girish
                      Staff
                      wrote on last edited by
                      #10

                      Well, I ended up enabling DNSSEC for cloudron.io 🤞 I put notes on DANE setup at https://docs.cloudron.io/email/#dane . Sadly, route53 (which we use for cloudron.io) does not support TLSA records. So, no DANE for us.

                      robiR imc67I 2 Replies Last reply
                      1
                      • girishG girish marked this topic as a question on
                      • girishG girish has marked this topic as solved on
                      • girishG girish

                        Well, I ended up enabling DNSSEC for cloudron.io 🤞 I put notes on DANE setup at https://docs.cloudron.io/email/#dane . Sadly, route53 (which we use for cloudron.io) does not support TLSA records. So, no DANE for us.

                        robiR Offline
                        robiR Offline
                        robi
                        wrote on last edited by
                        #11

                        @girish FYI, Cloudflare supports TLSA records.

                        Conscious tech

                        imc67I 1 Reply Last reply
                        1
                        • robiR robi

                          @girish FYI, Cloudflare supports TLSA records.

                          imc67I Offline
                          imc67I Offline
                          imc67
                          translator
                          wrote on last edited by
                          #12

                          @robi said in TLSA and DANE is missing on Cloudron mailserver:

                          @girish FYI, Cloudflare supports TLSA records.

                          Right I used it, simply and quickly

                          1 Reply Last reply
                          0
                          • girishG girish

                            Well, I ended up enabling DNSSEC for cloudron.io 🤞 I put notes on DANE setup at https://docs.cloudron.io/email/#dane . Sadly, route53 (which we use for cloudron.io) does not support TLSA records. So, no DANE for us.

                            imc67I Offline
                            imc67I Offline
                            imc67
                            translator
                            wrote on last edited by
                            #13

                            @girish Thanks!!

                            1 Reply Last reply
                            0
                            • P Offline
                              P Offline
                              paradoxbound
                              wrote on last edited by
                              #14

                              Just a quick note here. Route53 supports TLSA records now.

                              1 Reply Last reply
                              2
                              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