Workflow Deep-Dive

Rotate DKIM Keys Without Dropping Your Signed Emails

Updating your DKIM keys is important for security, but many teams worry about breaking their email. Veldica gives you the specific data you need to check new keys before they go live and confirm when it's safe to remove the old ones.

Use the Pro audit to check specific DKIM selectors and reduce the risk of a bad rotation.

Overview

Updating your DKIM keys is important for security, but many teams worry about breaking their email. Veldica gives you the specific data you need to check new keys before they go live and confirm when it's safe to remove the old ones.

The Security Need
Key Health

Old keys are a target. Regular rotation limits the risk if a key is stolen and helps you move toward stronger current standards.

The Rollover Risk
The Security Gap

If you delete an old key too soon, emails still in transit will fail. Veldica helps you track the window where both keys need to be active.

The API Solution
Clear Verification

Check specific selectors during your update to ensure both the old and new public keys are working and set up correctly.

Safe DKIM Update Workflow

Updating your DKIM keys requires careful steps. Veldica acts as a security gate at every stage.

  1. Create a new key pair and a new name (like 2026-q2) in your email tool.
  2. Publish the new public key to your DNS.
  3. Audit: Use Veldica to check the new key and verify it is strong and correct.
  4. Start sending a small amount of mail with the new key.
  5. Check your reports to make sure the new key is working.
  6. After a few days, move all your mail to the new key.
  7. Verify: Wait one more week, then use the API to confirm the old key can be safely removed.

Why DKIM Updates Fail

Manual updates often lead to typos or removing keys too early.

  • Typo Risks: teams can make a small mistake in the DNS text that breaks your email security.
  • Early Deletion: Overwriting a key too soon causes immediate failures for mail that was already sent.
  • Hidden Keys: Without an API, checking many keys across many domains is slow and difficult.
  • Zombie Keys: Old keys are often left active forever, which creates a security risk.

Automated Key Management

Automate your DKIM updates to stop manual errors.

Manual Check

Check each key by hand and hope you don't miss a small error.

Selector Audit

Send the selector name to Veldica and get a structured report on its public key status.

Coverage Check

Audit the selectors you know about across domains instead of checking each DNS record by hand.

Update Guard

Set up a check that confirms your old key stays valid while your new one is being tested.

DKIM Key Audit

Check specific DKIM selectors to make sure their public keys are ready to use.

Request
curl -H 'content-type: application/json' \
  -H 'X-RapidAPI-Key: YOUR_RAPIDAPI_KEY' \
  -H 'X-RapidAPI-Host: email-domain-trust-auditor.p.rapidapi.com' \
  -X POST 'https://email-domain-trust-auditor.p.rapidapi.com/v1/pro/audits/domain' \
  -d '{
    "domain": "veldica.com",
    "selectors": ["2026-q1", "2026-q2"]
  }'

Verified response

Pro audit excerpt

Audit result showing a successful key update window.

{
  "domain": "veldica.com",
  "score": 85,
  "risk": {
    "risk_level": "medium",
    "enforcement_status": "fully_enforced",
    "assessment_confidence": "high"
  },
  "findings": [
    {
      "id": "dkim.selector_found",
      "check": "dkim",
      "status": "pass",
      "title": "DKIM Key Found: 2026-q2",
      "evidence": { "selector": "2026-q2", "key_length": 2048 }
    },
    {
      "id": "dkim.weak_key",
      "check": "dkim",
      "status": "warn",
      "severity": "medium",
      "title": "Weak DKIM Key: 2026-q1",
      "fix": "Finish moving your mail to the stronger '2026-q2' key."
    }
  ]
}

Reading the Results

Use the DKIM findings to manage your update safely.

  • Check Keys: Make sure both your new and old keys are listed as "found".
  • Key Strength: Check for "weak key" warnings if you are moving to a more secure standard.
  • Confidence: If the API can't find a key you expect, do not switch your mail yet.
  • Fix Plan: Use the fix-plan to find any errors in how your key is set up in DNS.

Production Usage: Key Updates

How a security team uses the API to automate their quarterly key updates.

  1. Create new DKIM keys using your email provider's tool.
  2. Automatically publish the new selector record to your DNS.
  3. Call the Veldica API with the new selector name to check its status.
  4. Only move forward with the update if the API gives a "pass" result.
  5. Wait 7 days, then check again to make sure it is safe to delete the old key.
Integration Example (Python)
import requests

def verify_dkim_update(domain, new_selector, old_selector):
    url = "https://email-domain-trust-auditor.p.rapidapi.com/v1/pro/audits/domain"
    headers = {"X-RapidAPI-Key": "YOUR_KEY"}
    
    audit = requests.post(url, json={"domain": domain, "selectors": [new_selector, old_selector]}, headers=headers).json()
    
    new_found = any(f['id'] == 'dkim.selector_found' and f['evidence'].get('selector') == new_selector for f in audit['findings'])
    if not new_found:
        raise Exception(f"New selector {new_selector} not found in DNS!")

Tool Comparison: DKIM Management

Why Veldica is useful for tracking DKIM selector health.

Basic Tools

They show you the record but don't check for errors or help you manage multiple keys.

DMARC Trackers

They show you which selectors are working in observed mail, but not whether a new selector is ready before you use it.

Veldica API

Checks your new selectors before you use them and finds weak public keys before they become a problem.

Keep Exploring

Use the Workflow Library to browse more guides, comparisons, and integration examples to continue your evaluation.

Master Your DKIM Security

Stop worrying about DKIM updates. Use the Veldica API to check every step and keep your email security strong.