ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Setup DKIM with Exchange 2013/2016 Inhouse Server

    IT Discussion
    dkim microsoft exchange server 2016 windows server 2016 dkim-exchange dmarc dns windows server
    5
    16
    10.2k
    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.
    • dbeatoD
      dbeato
      last edited by

      We were requested to Setup DKIM on a Microsoft Exchange 2016 Server and since Microsoft doesn't include DKIM as part of the Exchange Inhouse Server we needed to rely on a DKIM Signer tool. We found an opensource tool and that works with Exchange. In this case we are using the https://github.com/Pro/dkim-exchange project.

      Installation
      1- Download the Latest Package to the Exchange Server- https://github.com/Pro/dkim-exchange/releases/latest (Select the Configuration.DkimSigner.zip file)
      2- Once Downloaded it Extract the Zip File to any folder you want on the Exchange Server.
      3- Run the Configuration.DkimSigner.exe from the Extracted files.
      ee052990-c638-4239-965f-e1abd30f7550-image.png
      4- Once it opens, wait until your see the Install option available and click on it.
      4402c60d-93a3-4b59-a7eb-0324f6b17165-image.png
      5- Let the installer finish and Close it.
      08c641e5-71e5-4e70-af30-0a4f5ba12faf-image.png

      Now to Configure the Application
      1- Go to the C:\Program Files\Exchange DkimSigner folder
      69c924b8-074d-4834-80a8-9dcdca35b10b-image.png
      2- Run the Configuration.DkimSigner.exe application
      3- Click the Configure Button
      2a1414ba-110c-4185-85b5-c057cf882f0a-image.png
      4- Move up the "Exchange DKIMSigner" Transport Agent
      04da6425-fcb8-4aed-9efc-48ad95278203-image.png
      5- Press Close.
      6- Go to the DKIM Settings and set the "Header Canonicalization & Body Canonicalization" Options as Relaxed
      1477d1a9-ec6a-469a-aa38-5aced831343d-image.png
      7- Then press the "Save Configuration" button
      8- Go to the "Domain settings Tab" and press the "Add" button
      9- Enter your domain name and set your Selector (DKIM record selector)
      be6d95df-1c2a-4f15-8de0-ba86f0eef186-image.png
      10- Press the "Generate new key" button
      eb631b2b-f68c-4f63-8e94-b12e4651be9f-image.png
      11- You will be prompted to save your Key on the Server (The default save locations is "C:\Program Files\Exchange DkimSigner\keys")
      12- Press Save.
      13- Created your DKIM DNS records based on the "Suggested DNS Name" and "Suggested DNS record"
      a7162c62-69d4-431c-93d8-191ddf853aa3-image.png
      14- Press the "Save Domain Button"
      64c0e827-a27c-4643-8030-361cb86af7b3-image.png
      15- Go to the Information Tab and Press the Restart Button under the "Transport Service Status"
      b639a457-f182-4e9b-becb-1c132b066334-image.png

      Once the service restarts then your emails will be signed . Use a DKIM validator or other method to confirm your DKIM emails are signed. Also don't forget to setup your DMARC DNS record. (You can use MXtoolbox for that - https://mxtoolbox.com/DMARCRecordGenerator.aspx)

      T 1 Reply Last reply Reply Quote 3
      • J
        jjvalstar
        last edited by

        Hi,
        I tried to do this dkim for exchange server 2016 CU20.
        I have installed version 3.3.2, it generates indeed the folder:
        C:\Program Files\Exchange DkimSigner

        But if I start Configuration.DkimSigner.exe it does not give me the output as I expected from your manual.

        See screendump below:
        79ed8609-cde9-41cf-8e3e-1a3669138aa6-image.png

        What I'm doing wrong?

        dbeatoD 1 Reply Last reply Reply Quote 0
        • dbeatoD
          dbeato @jjvalstar
          last edited by

          @jjvalstar said in Setup DKIM with Exchange 2013/2016 Inhouse Server:

          t Configuration.DkimSigner.exe it does not give me the output as I expected from your manual.

          Try doing the offline install from below
          https://github.com/Pro/dkim-exchange/wiki/Installation

          1 Reply Last reply Reply Quote 0
          • A
            akpeelo
            last edited by

            I've installed exchange server 2016 CU21 and i've followed your post, but on the Domain Settings at the "Check" button when clicked says "No record found". ive updated my external dns with the suggested DNS Name and Suggested DNS Records respectively from the DKIM. What should i do next?

            dbeatoD 1 Reply Last reply Reply Quote 0
            • dbeatoD
              dbeato @akpeelo
              last edited by

              @akpeelo Can you do an nslookup of the record and see if you get information back on the lookup?

              A 1 Reply Last reply Reply Quote 0
              • A
                akpeelo @dbeato
                last edited by

                @dbeato do you mean perform nslookup on the selector? NB: if i use online tools such as https://dmarcian.com to check the record, it fails automatically. but if i enter the selector i used in the DKIM software on my server, it passes the check in the online tool.

                A 1 Reply Last reply Reply Quote 0
                • A
                  akpeelo @akpeelo
                  last edited by

                  @akpeelo Please can someone help out?

                  V dbeatoD 2 Replies Last reply Reply Quote 0
                  • V
                    VoIP_n00b @akpeelo
                    last edited by

                    @akpeelo https://github.com/Pro/dkim-exchange/issues

                    1 Reply Last reply Reply Quote -1
                    • dbeatoD
                      dbeato @akpeelo
                      last edited by

                      @akpeelo said in Setup DKIM with Exchange 2013/2016 Inhouse Server:

                      @akpeelo Please can someone help out?

                      Check this
                      https://github.com/Pro/dkim-exchange/issues/342

                      Also can you actually show your error, it is kind of hard to help without seeing what you see?

                      A 1 Reply Last reply Reply Quote 0
                      • A
                        akpeelo @dbeato
                        last edited by

                        @dbeato ![alt text](DKIM.jpg image url).

                        dbeatoD 1 Reply Last reply Reply Quote 0
                        • dbeatoD
                          dbeato @akpeelo
                          last edited by

                          @akpeelo What is the DNS record that you added for adraghana.org?

                          A 1 Reply Last reply Reply Quote 0
                          • A
                            akpeelo @dbeato
                            last edited by

                            @dbeato i added a TXT record and in the txt record, i added the Suggested Name as the host=20211509._domainkey and then added the Suggested DNS record =v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAjddh3bmEvLbFI6cp60ZTEQJo4et80bPMhJ1OV5mVSOJl8w2hQL8EBzKISDNDxk9S6e7AiVTNNeYDu6mnxpacvlfsBEb5Pg1ZHqCiojf01XS4hbgvDLeHxsX2L11cYiYICQUQtVIzY0NHKZ2wN8bo2DkP+U10rb+KCTOeVi1jkeQHi+X5jp8NbiS/o4N0IFAzX7RP055oTvq8pBPtFI63IehSOsFndj3Cq6jBl0Oqb3R8lrKtih4tpK64HZwHTJWOR642MYVS4tiP5uAQTtaVQsnK81vW4lVGJDeLjiqLJI1B/m1mLatyJTM/FvlDCq1J2Y39Gv11uJz2Di0WsFH9xwIDAQAB as the value.

                            dbeatoD 1 Reply Last reply Reply Quote 0
                            • dbeatoD
                              dbeato @akpeelo
                              last edited by

                              @akpeelo said in Setup DKIM with Exchange 2013/2016 Inhouse Server:

                              @dbeato i added a TXT record and in the txt record, i added the Suggested Name as the host=20211509._domainkey and then added the Suggested DNS record =v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAjddh3bmEvLbFI6cp60ZTEQJo4et80bPMhJ1OV5mVSOJl8w2hQL8EBzKISDNDxk9S6e7AiVTNNeYDu6mnxpacvlfsBEb5Pg1ZHqCiojf01XS4hbgvDLeHxsX2L11cYiYICQUQtVIzY0NHKZ2wN8bo2DkP+U10rb+KCTOeVi1jkeQHi+X5jp8NbiS/o4N0IFAzX7RP055oTvq8pBPtFI63IehSOsFndj3Cq6jBl0Oqb3R8lrKtih4tpK64HZwHTJWOR642MYVS4tiP5uAQTtaVQsnK81vW4lVGJDeLjiqLJI1B/m1mLatyJTM/FvlDCq1J2Y39Gv11uJz2Di0WsFH9xwIDAQAB as the value.

                              It is correct as below

                              94b97c23-0e41-4dbc-b0ae-e46eb0e8fd7d-image.png

                              So basically the issues is on the DKIM application but your messages are signed properly.

                              A 1 Reply Last reply Reply Quote 0
                              • A
                                akpeelo @dbeato
                                last edited by

                                @dbeato so what should my next step be?

                                1 Reply Last reply Reply Quote 0
                                • T
                                  Teece @dbeato
                                  last edited by

                                  @dbeato step 4 is wrong. The DKIM signer needs to be at the BOTTOM of this list, so it runs last. Otherwise, other transport agents may modify the message, which would render the signatures generated by the signer invalid.

                                  dbeatoD 1 Reply Last reply Reply Quote 0
                                  • dbeatoD
                                    dbeato @Teece
                                    last edited by

                                    @teece I haven't seen that happened ever, no other transport rules modified the DKIM at all.

                                    1 Reply Last reply Reply Quote 0
                                    • 1 / 1
                                    • First post
                                      Last post