Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Check mail settings for an external service

    Feature Requests
    mail sendgrid
    3
    9
    344
    Loading More Posts
    • 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.
    • potemkin_ai
      potemkin_ai last edited by girish

      I faced an issue when during the domains registrar change I've got my SendGrid records vanished from the DNS records.

      I was looking at the mail settings verification and since it was telling it's Ok, I believed it's checking if appropriate records are valid even when external service is enabled, which turned out to be wrong.

      Probably it would be nice to add to CloudRon a check for the SPF/DKIM records if outbound e-mail is configured at all?

      timconsidine 1 Reply Last reply Reply Quote 1
      • girish
        girish Staff last edited by

        Currently, we just have SMTP integration. This needs more of an API integration depending on the provider.

        potemkin_ai 1 Reply Last reply Reply Quote 0
        • timconsidine
          timconsidine App Dev @potemkin_ai last edited by timconsidine

          @potemkin_ai you probably do something like this already, but in case useful for others, I use spftoolbox (https://spftoolbox.com) which I installed as a LAMP app from their Github.

          I get that it's not integrated in the way you're suggesting but for infrequent searches, it does the job. For me anyway.

          Dozens of alternatives of course e.g. mxtoolbox (https://mxtoolbox.com/)

          potemkin_ai 1 Reply Last reply Reply Quote 1
          • potemkin_ai
            potemkin_ai @girish last edited by

            @girish asking that would be too much; I'm only speaking about checking the existence of the necessary records, not even the value of them

            girish 1 Reply Last reply Reply Quote 0
            • potemkin_ai
              potemkin_ai @timconsidine last edited by

              @timconsidine thank you!
              And you are right - in every trouble I'm always looking how the tool could help me to avoid spending time, as that makes it more valuable - so I decided to share it as a feedback here.

              1 Reply Last reply Reply Quote 1
              • girish
                girish Staff @potemkin_ai last edited by

                @potemkin_ai not 100% sure but I think that sendgrid generates a subdomain and we can get this subdomain only via the API (and then the subdomain can be checked against DNS).

                potemkin_ai 1 Reply Last reply Reply Quote 0
                • potemkin_ai
                  potemkin_ai @girish last edited by

                  @girish hmm... yes, that's correct.
                  What about scanning for CNAMEs then? Smth like

                  checkDNSForCnames() {
                  get all DNS records
                  grep CNAME
                  grep $service_name
                  }
                  

                  followed by:

                  if $outboundSMTP is enabled
                  and checkDNSForCnames() is false
                  then displayMessage "your mail configuration provider seems to be misconfigured and your e-mails might be rejected."
                  

                  ?

                  girish 1 Reply Last reply Reply Quote 0
                  • girish
                    girish Staff @potemkin_ai last edited by

                    @potemkin_ai possibly, have to investigate more about that approach. Each provider has their own way of setting up DNS though so I suspect it's error prone (or maybe this is all standardized by now). We use postmark and don't use any of this CNAME records. IIRC, they don't need SPF (https://postmarkapp.com/blog/why-we-no-longer-ask-for-spf-records).

                    BTW, I just left a note for myself with the comment that it would be nice to do an API integration. It wasn't an argument against your request. We are open to integrating with relay providers via API. This has the advantage that we can also get proper delivery reports for each mail via API as well.

                    potemkin_ai 1 Reply Last reply Reply Quote 2
                    • potemkin_ai
                      potemkin_ai @girish last edited by

                      @girish that would be the best way, actually - having error codes from the service provider would help me to understand the DNS records are missing even earlier 🙂

                      1 Reply Last reply Reply Quote 1
                      • First post
                        Last post
                      Powered by NodeBB