Kaspersky Secure Mail Gateway

Adding a DKIM key to DNS server settings

July 10, 2024

ID 102272

To add a public DKIM key to the settings of your DNS server:

  1. Sign in to your DNS server under the administrator account.
  2. Locate the page with information on updating DNS records of the domain for whose addresses you want to configure the DKIM signature to be added to outgoing messages.

    For example, this page can be named "DNS Management", "Name Server Management", or "Advanced Settings".

  3. Find records in TXT format for the domain for whose addresses you want to configure the DKIM signature to be added to outgoing messages.
  4. In the list of records in TXT format, add the DNS record of the public DKIM key for a certain domain with the following contents:

    <selector>._domainkey.<name of the domain for which you want to add the public DKIM key>. IN TXT ( "v=<DKIM version>; k=rsa; s=email" "p=<DNS record of the public DKIM key>" )

     

    Example of a DNS record for a Public DKIM key:

    sel1._domainkey.test.example.com. IN TXT ( "v=DKIM1; k=rsa; s=email; "

    "p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArqGgYtLwpVAFRDf+YfRK0aB5Qbne2xMAEye/aH4fLf7cOuOcWz/x5f33uxSpL8YwPgEXPoFogKWTFCqMUUBreHx1mbfgBn+uGYvlxJEXyFFmiMKHO0yTJntPrWxsCnF10ZSf5lBL/olqmgCTgkpBG11PcvCJq0bdEyWQ50avMCfg3zoean8CsiJUb91TWIy08T8HoW0huyQ3"

    "W82jMhAYvO8FMgI1rbwaH7z3tlQxnGqc49+lRpz7T+p1Tl6Bs2iU8h2m1mIupIsNHF4Q+UtGNl9jaajhyz+NMmjLVTlaZvpbS3xODSBnZdpAXywUa4hfQsto1cHSAwEWsk90IQ/HHwIDAQAB" )

    See Document RFC 5617 for details on configuring settings of the DNS record of a public DKIM key.

  5. Save changes.

The syntax of the sample DNS record is provided for purposes of adding it to the settings of a BIND DNS server. The syntax of the DNS record to be added to other DNS servers may differ slightly from the example provided.

See also

DKIM signature for outgoing messages

Creating the DKIM key

Viewing DKIM key information

Importing the DKIM key from file

Deleting the DKIM key

Retrieving a DNS record for a public DKIM key

Configuring the DKIM signature when migrating to KSMG 2.1

Creating the DKIM key

Importing the DKIM key from file

Deleting the DKIM key

Did you find this article helpful?
What can we do better?
Thank you for your feedback! You're helping us improve.
Thank you for your feedback! You're helping us improve.