--- title: "Custom DKIM policies" slug: "custom-dkim-policies" tags: ["Email Security - Cloud", "Customer", "Cloud Security"] updated: 2026-09-04T18:57:29Z published: 2026-09-04T18:57:29Z canonical: "docs.trellix.com/custom-dkim-policies" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # Custom DKIM policies DKIM (Domain Keys Identified Mail) is an email authentication method that adds an encrypted header (DKIM signature) to outgoing mail. Using a DKIM policy, admins can sign outbound mail with custom DKIM keys. All domains associated with a DKIM policy will be signed by a standard Trellix DKIM key. For more information on Trellix DKIM keys, see "About DKIM Signing" in [Message analysis policies](/data-and-email/docs/message-analysis-policies). Administrators can generate custom keys to sign outbound mail with in addition to the Trellix keys. When a custom key is created, the email will be signed with both signatures. ![ETP_dkim.png](https://cdn.us.document360.io/0d453a50-e1da-4d4a-9409-fea7959614d8/Images/Documentation/uuid-df54e1e2-e318-3b59-aea2-f34123a65b13.png?sv=2026-02-06&spr=https&st=2026-11-22T13%3A13%3A33Z&se=2026-11-22T14%3A13%3A33Z&sr=c&sp=r&sig=aGLkpMEsa3nhTR307Yfb0d4z0PhHEnFI0Zkl3Pf6l0M%3D) To use a custom DKIM signature, you must create the policy, generate the keys, update your DNS record, validate the keys, and then associate the policy to a domain. **To create a DKIM policy:** 1. From the Email Cloud dashboard, select **Configuration** > **Policies**. 2. Click **Create Policy**. 3. Next to Traffic Type, select **Outbound**. 4. Select **DKIM Policy**. 5. Enter a policy name and description (optional). 6. Click **Create**. The new policy page opens. **To generate a DKIM key:** 1. Next to DKIM Configuration, select **Manage**. 2. Click **Generate Keys**. 3. Select your key length: **1024** or **2048** bits. 4. Click **Submit**. Two keys are generated. The primary key is the key used to sign mail. **To update your DNS records:** > [!WARNING] > Important > > You must update your domain's DNS records before you validate the DKIM keys. Work with your domain hosting provider to create a new CNAME or TXT record in your DNS settings before proceeding. > > Hostname creation is not supported for US Government users. The **Copy Hostname** option is disabled. Use the **Copy Public Key** option to create the required TXT record for your domain. Update the corresponding TXT record as necessary when regenerating your secondary selector public key. You can manage DKIM keys through the portal by adding CNAME records in your DNS or you can manually manage records by adding TXT records in your DNS. Manually managing TXT records can lead to error or inconsistency. The CNAME format should be as follows: - trellix1._domainkey.domain.com > {generated_selector1}.fireeyecloud.com - trellix2._domainkey.domain.com > {generated_selector2}.fireeyecloud.com Use the "Copy Hostname" button to copy the CNAME address. The TXT format should be as follows: - trellix1.domainkey.domain.com > TXT record value: of selector1 - trellix2.domainkey.domain.com > TXT record value: of selector2 Use the "Copy Public Key" button to copy the TXT record value. **To validate the DKIM keys:** 1. Next to the key, click **Validate**. 2. Select a domain from the Domain dropdown. 3. Click **Proceed**. When the key is verified, the checkmark in the **Verified** column turns green. Repeat this process for the secondary key. **To associate the policy to a domain or domain group:** 1. From the Domains page, select a domain or domain group. 2. Under Policies - Outbound, select **Manage** next to DKIM Configuration. 3. Click the **Change** link to specify a policy, or **Manage** if a policy is already associated with the domain. 4. Select a policy. 5. Click **OK**. 6. Click **Save**. The policy is now associated to the domain or domain group. ### Regenerating DKIM keys You can regenerate keys to upgrade or downgrade the key strength. **To regenerate DKIM keys:** 1. Open the policy page of a DKIM policy. 2. Next to DKIM Configuration, select **Manage**. 3. Select **Regenerate Key**. 4. Select your key length: **1024** or **2048** bits. 5. Click **Submit**. After regenerating the keys, allow a few minutes to make sure the keys are propagated. After the keys have regenerated, rotate the keys to make the newly created key the primary key. ### Rotating DKIM keys Rotate DKIM keys to change which selector is the primary key. Trellix recommends that you use a key to sign outgoing email before switching the key from being the primary key to the secondary key. It is not advised to rotate keys frequently. Trellix recommends waiting at least a week before regenerating the keys or rotating them again. **To rotate DKIM keys:** 1. Open the policy page of a DKIM policy. 2. Next to DKIM Configuration, select **Manage**. 3. Select **Rotate Keys**. 4. Select **Proceed**. The secondary selector becomes the primary key.