Home/Guides/DKIM Selector Strategy
DKIM Setup

DKIM Selector Strategy

Use DKIM selectors to manage multiple keys, rotate credentials safely, and organize email authentication across services.

6 min read
Intermediate

What Are DKIM Selectors?

A DKIM selector is a label that identifies which DKIM key to use for verification. It allows you to have multiple DKIM keys per domain.

DNS Record Structure:

[selector]._domainkey.yourdomain.com
Example 1:
default._domainkey.example.com
Example 2:
google._domainkey.example.com
Example 3:
2025-01._domainkey.example.com

Why Use Multiple Selectors?

Key Rotation

Switch between keys smoothly without downtime during rotation.

Service Separation

Different keys for Google Workspace vs SendGrid vs Salesforce.

Testing

Test new keys before switching production traffic.

Environment Split

Separate keys for staging vs production environments.

Selector Naming Best Practices

Recommended Patterns:

Date-based: 2025-01, 2025-07 (rotation tracking)
Service-based: google, sendgrid, salesforce
Version-based: v1, v2, v3
Environment: prod, staging
Keep Selectors Simple

Use lowercase letters, numbers, and hyphens only. Avoid special characters. Max 63 characters.

Key Rotation Strategy

Use selectors to rotate DKIM keys without email delivery interruption.

Zero-Downtime Rotation Process:

1
Generate new key with new selector
2025-01._domainkey.example.com
2
Publish new DNS record

Both old and new keys are now active

3
Update mail server to use new selector

New emails signed with new key

4
Wait 48 hours

Allow in-flight emails to be verified

5
Remove old DNS record

Complete migration to new key

Related Guides

Manage DKIM Selectors Easily

Check your DKIM selectors and keys with our free tool, or let our platform handle selector management automatically.