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

    Authentication-Results should also contain DMARC and DKIM result

    Feature Requests
    email
    3
    4
    269
    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.
    • M
      moco last edited by girish

      New subscriber here.

      I wanted to request an email header enhancement. For incoming email, currently the "Authentication-Results" header only displays if SPF passed or failed. Other email implementations also place the DKIM and DMARC results there. I'm requesting the Cloudron email also place the DKIM and DMARC results in the Authentication-Results header.

      Authentication-Results: mail2.outsi.de (dis=neutral; info=dmarc domain policy);
          dmarc=pass (dis=neutral p=reject; aspf=r; adkim=r; pSrc=dns) header.from=example.org;
          dkim=pass header.d=example.org header.s=r header.b=O/8zOi6w
      

      I believe this available by adding OpenDMARC to Postfix.

      When fully functional this header is a useful troubleshooting tool for incoming emails.

      ? girish 2 Replies Last reply Reply Quote 5
      • ?
        A Former User @moco last edited by

        @moco that's a really good idea! By the way for next time, there's a feature request category on the forums for things like this.

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

          @moco We don't use postfix but instead use Haraka mail server. Haraka does have a plugin can dkim_verify that will attach this information. I have to investigate a bit more to give a better reply but off my head this is not enabled because SpamAssassin does the DKIM checks and I wanted to avoid double DKIM verification. You will see the DKIM check in the spam status results:

          X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID,
          	DKIM_SIGNED,HTML_FONT_LOW_CONTRAST,HTML_MESSAGE,SPF_HELO_NONE,SPF_PASS
          	autolearn=no autolearn_force=no version=3.4.4
          

          Cloudron currently does not honor DMARC (for better or worse). It seems there are too many poorly misconfigured mail servers out there and it's too "risky" to enable it to reject mail outright if SPF or DKIM fails. Instead, we just categorize such mails as spam.

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

            @girish Hi there. Thanks for checking into this for me.

            I had a suspicion that the spam engine was verifying, since I did see those fields in the Spam results headers. However I think it's also useful to have Haraka add the headers as well. It would add very little overhead and will add additional detail that the spam header doesn't contain about the DKIM verification (such as which signature failed or passed, since an email can contain multiple).

            In regards to DMARC. I don't believe this would be risky at all if implemented in the following manner:

            • No DMARC record found, take no action.
            • DMARC found, DKIM/SPF aligned, take no action
            • DMARC found, DKIM/SPF alignment fails, but p=none, take no action.
            • DMARC found, DKIM/SPF alignment fails, but p=quarantine, move to spam folder
            • DMARC found, DKIM/SPF alignment fails, p=reject, dev/null the mail. If you don't like the risk of this, push it to spam instead... or make it a cloudron option under Settings.

            Thanks for listening.

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