Best Practices: Avoid Underscores in DKIM s= Selector for Deliverability
Prevent email deliverability issues by fixing DKIM selector naming. Learn why underscores in s= selectors can break authentication and how MailTester’s.
Why Does the DKIM s= Selector Matter for Inbox Placement?
You’ve set up DKIM. Your SPF and DMARC are clean. Your emails still don’t land in inboxes. One tiny detail in your DNS record might be the unseen culprit.
The DKIM s= selector is the part of the DNS record that tells receiving servers which cryptographic key to use. It's a simple label, but it’s not just decorative. A misconfigured selector—especially one with underscores—can trigger rejection or filtering, even when everything else is correct.
It’s like using a valid key to open a lock, but the key is shaped wrong. The lock doesn’t care you have the right material—it only accepts a specific form. Some legacy systems and security filters interpret underscores in the s= field as a red flag, leading to delivery failures you can’t see.
Key takeaways
- Underscores in the DKIM
s=selector can cause authentication failures, even with properly configured DKIM. - Some MTAs and filtering systems reject or downgrade messages with non-standard
s=values, especially those containing underscores. - Using a simple alphanumeric selector (e.g.,
s=brisbaneinstead ofs=br_isbane) improves deliverability by reducing the risk of unintended filtering.
What Happens When You Use Underscores in the DKIM s= Selector?
You can technically use underscores in the DKIM s= selector per RFC 6376, but many receiving systems treat them as invalid—even if they’re syntactically correct. This inconsistency leads to unpredictable failures, soft bounces, or messages being marked as suspicious, especially when sending at scale or in regulated industries. Using underscores increases the risk of deliverability issues without any benefit.
Why Underscores Are Risky in Practice
While the DKIM specification allows underscores in the s= selector, real-world email gateways don’t always follow the standard strictly. Some systems, particularly those used by large ISPs or security-focused gateways, treat underscore-containing selectors as malformed or untrusted. This is not a flaw in your setup—it's a consequence of how different systems interpret the specification differently.
For example, certain receiving servers may reject or tag messages with a DKIM signature using an underscore in the selector as suspicious, even if the signature itself is mathematically valid. This creates a soft bounce or alignment failure, which harms sender reputation over time. High-volume senders, especially in industries like finance or healthcare, face a higher chance of being flagged due to these inconsistencies.
How to Avoid the Problem
Use only letters, numbers, and hyphens in the s= selector. This is the safest and most widely supported practice across all systems. It reduces the likelihood of your email being flagged or rejected due to parsing issues.
Let’s say you’re setting up DKIM for a marketing campaign or transactional email service. If you're using a tool like Bulk Email List Verification to clean your email lists before sending, a clean, properly signed email is part of ensuring your sender reputation stays intact. While that tool doesn’t check DKIM syntax, it underscores the importance of verifying all components of your delivery stack—including DNS records and selector naming—before sending.
Keep your DKIM setup simple and predictable. The RFC permits underscores, but real-world compatibility does not. Stick to alphanumeric characters and hyphens. It’s a small change, but one that significantly improves the reliability of your email delivery.
For deeper insight into deliverability behavior, use tools like Inbox Placement Testing to simulate how your email lands across major providers, catching issues like malformed DKIM before they impact your reach.
Best Practice: Use Only Alphanumeric Characters in the s= Selector
You should use only lowercase letters and numbers in the DKIM s= selector to ensure consistent deliverability across modern email systems. Avoid underscores, hyphens, or dots—even if they seem harmless—since some older or poorly configured mail servers may reject or mishandle them, leading to authentication failures. This isn’t a minor nuance; it’s a baseline for reliability.
Why simplicity wins
- Stick to lowercase letters and digits—this is the universal safe zone. Selectors like
mail,v1, ordefaultare widely accepted and consistently verified. - Avoid underscores—they’re frequently misparsed during DNS lookups, especially in older or non-RFC-compliant systems.
- Don’t use hyphens or dots—even if your DNS software handles them, some receiving servers may reject the DKIM signature due to encoding quirks.
- Test your DKIM setup—use a tool like MxToolbox’s DKIM Validator to check if your selector is correctly published and interpreted.
- Verify before sending—use a real-time email validation process to catch bad or unverifiable DKIM setups early. Try MailTester’s email checker to test individual addresses before delivery.
What happens if you don’t?
Using non-alphanumeric characters in the s= selector may seem safe today, but it introduces risk. The DKIM RFC specifies that the selector is a label, and while technically not limited to alphanumerics, real-world infrastructure treats them poorly. This can result in:
- Unexpected DKIM failures
- Spam filtering based on authentication misconfigurations
- Lower sender reputation due to inconsistent results across providers
Let’s be clear: there’s no benefit to complexity here. The safest path is the simplest. If you’re building or managing a DKIM setup, use v1 or mail—both are common, clear, and universally supported. No exceptions. No shortcuts.
Want to validate your entire email list for deliverability issues—including DKIM and SPF alignment? Run a bulk verification to catch problems like malformed selectors before you send.
How to Verify Your DKIM Selector Configuration Is Correct
Use DNS lookup tools to pull your domain’s DKIM TXT record and check that the s= selector contains only lowercase letters and numbers. Invalid characters—especially underscores—can cause authentication failures, reduce inbox placement, and hurt sender reputation. Let’s walk through how to verify this correctly and test the full chain.
Check Your DKIM Selector in DNS
- Run a DNS lookup on your domain’s DKIM selector record (e.g.,
_domainkey.example.com) using a tool like MXToolbox or dig on the command line. - Look for the
s=field in the TXT record. This value is the selector and must contain only lowercase letters (a-z) and digits (0-9). Avoid underscores, hyphens, or case mixing—these are not allowed by the DKIM specification. - For example,
s=mailors=2024aare valid;s=mail_testors=Mailare invalid and may result in DKIM signature rejection by receivers.
Test Authentication Beyond DNS
- Use MailTester’s real-time verification API or bulk list checks to validate not just the selector format, but also the full authentication chain: SPF, DKIM, and DMARC alignment across multiple email addresses.
- Run inbox placement testing with MailTester’s inbox placement tester to see how your authenticated emails perform in live inboxes across Gmail, Outlook, and Apple Mail. This confirms that your DKIM setup is not just syntactically correct but functionally effective.
- Combine this with regular checks using the API email checker during onboarding or list clean-up phases. This stops invalid or misconfigured domains from slipping into your campaigns.
DKIM signing is only as strong as its configuration. A single underscore in the selector may not break delivery outright—but it can trigger filtering at scale. According to the RFC 6376 standard, DKIM selectors must be case-sensitive and restricted to a specific character set. Even minor deviations risk misalignment during validation.
“Proper selector formatting isn’t just about compliance—it’s about maintaining trust with mailbox providers.”
Use MailTester’s integrations with Mailchimp, HubSpot, and Klaviyo to automate checks during workflow execution. These tools help prevent configuration drift over time. Keep your deliverability strong by validating each component.
Email Verification: The First Line of Defense Against Authentication Failures
You can’t rely on email deliverability if your list includes invalid, catch-all, or role-based addresses. MailTester’s bulk verification and real-time API catch these issues before they harm your sender reputation. Spotting a non-existent MX record, a role account like admin@, or a catch-all setup before sending prevents bounces, improves inbox placement, and reduces the risk of being flagged as a spam source.
Why Verification Preempts Authentication Problems
Before you even apply DKIM, SPF, or DMARC, your list needs to be clean. Sending to an address with no MX record means your message will never reach the inbox — it fails at the first hop. MailTester identifies these outright invalid addresses instantly, so you don’t waste bandwidth or risk reputation with dead sends.
Beyond invalid addresses, you’ll find catch-all setups that accept all messages — a common red flag to spam filters. These appear in lists due to outdated data, and they inflate your bounce rate, especially when they’re not properly managed. MailTester flags these as "catch-all" so you can either remove them or test delivery separately.
How It Fits Into Your Deliverability Workflow
While MailTester doesn’t verify your DKIM signature itself, it surfaces high-risk senders who may be using non-compliant email infrastructure. For example, a sender with an overly complex or inconsistent s= selector in their DKIM record—like using underscores, which are invalid per RFC 6376—may be operating from a flawed or misconfigured setup. Though verification doesn’t test this directly, it helps identify lists where such configurations are more likely, giving you a signal to audit the full email stack.
Let’s say 5% of your list resolves to catch-alls. That’s not just poor list hygiene—it’s a deliverability time bomb. The same applies to role accounts: emails like support@ or contact@ are often used by bots or overlooked by recipients, leading to low engagement and reputation decay. MailTester separates these from valid addresses so you’re not sending to them.
When paired with tools like MxToolbox for MX health checks or Spamhaus for blocklist monitoring, MailTester’s results provide a full picture of list safety. Use the bulk verification tool to clean a thousand addresses in minutes, or integrate the real-time API into your signup flow. Every address vetted before sending reduces the risk of delivery failures.
Why Misconfigurations Like Underscored Selectors Lead to Deliverability Risks
You risk inbox rejection and sender reputation damage when DKIM selectors contain underscores, because mail providers strictly validate DNS records. An invalid selector breaks authentication, causing messages to fail SPF/DKIM checks—even once—triggering filters in secure environments and undermining long-term deliverability. A single flawed signature can flag your domain as unreliable, especially under high-security scrutiny.
How DKIM Validation Works in Practice
DKIM relies on DNS TXT records using a selector, which identifies the public key used to verify a message. The selector must follow strict formatting rules: only letters, numbers, and hyphens are allowed. Underscores violate this, causing the DNS lookup to return malformed or no record at all. This means even if your signing key is correct, the receiving server cannot retrieve it and will treat the message as unauthenticated.
Major email providers like Gmail, Yahoo, and Outlook use DKIM validation as part of their security stack. According to the RFC 6376 standard (which defines DKIM), selectors must be "a simple string that does not contain control characters or special syntax." While some providers may tolerate minor deviations during testing, production systems enforce compliance. Misconfigured selectors are a known source of failed authentications, and repeated failures are flagged as signals of poor sending hygiene.
Why One Failure Can Have Long-Term Consequences
Email deliverability isn't just about sending one message—it’s about consistency. Even a single message with a flawed selector can trigger alerts in reputation-monitoring systems. Providers track authentication patterns over time. If you’ve sent a handful of emails with invalid selectors, that behavior may be flagged as inconsistent or poorly managed.
Reputation systems used by inbox providers don’t just look at volume or content—they correlate authentication success rates with other signals like complaint rates, engagement, and spam traps. A drop in authentication success, even due to one misconfigured selector, can contribute to lower inbox placement scores. Over time, repeated failures erode sender reputation, making it harder to reach inboxes, especially on platforms with aggressive filters.
Let’s be clear: you don’t need to be an expert in DNS to avoid this. Use standard selectors like mail or default, and avoid special characters. If you’re testing or validating, you can use our email checker to see if a domain’s DKIM record is properly formatted before you send.
How MailTester’s Deliverability Testing Reveals Hidden Authentication Issues
You can catch DKIM selector issues—like using underscores in the s= tag—before they hurt your inbox placement. MailTester’s inbox placement tests send real emails to actual inboxes across Gmail, Outlook, Yahoo, and others, checking for SPF, DKIM, and DMARC alignment. If your DKIM selector has an underscore and causes a soft failure, the test will flag it, so you can fix it before sending at scale.
Testing Real Inboxes, Not Just Records
Many tools check DNS records in isolation. That’s not enough. MailTester sends actual messages to real user inboxes across major providers. This means you’re testing how your authentication stack performs under real conditions—not just what’s published in DNS. You might have valid SPF and DKIM records on paper, but a misconfigured selector like s=abc_def can still trigger a soft fail in Gmail's filters. The test catches it.
How DKIM Selector Syntax Affects Deliverability
While the RFC doesn’t forbid underscores in DKIM selectors, some mail systems interpret them as invalid or problematic. Gmail and other filters may treat selectors with underscores as a sign of poor configuration, leading to soft bounces or lower spam scores. Even if the key is technically valid, the selector name can trigger suspicion. This is why MailTester includes explicit checks for syntax quirks that aren’t caught by basic DNS validators.
Let’s say you’re using a third-party email platform that auto-generates selectors with underscores. You assume it works. But when you run an inbox placement test with MailTester, the delivery report shows “DKIM alignment: soft fail”—and the root cause is the selector’s format. Now you know exactly what’s wrong.
Fixing it is simple: reconfigure your DKIM setup to use a selector without underscores—like s=mail or s=smtp. These are widely accepted, reduce friction with email filters, and align with best practices. The change is low risk and high reward.
Want to test your current setup before sending? Run an inbox placement test and see exactly how your message will be treated. The report includes DNS validation, alignment checks, and real inbox results. No guesswork. Test your sending setup now before you send a bulk campaign.
Real-World Example: A High-Volume Sender Breaks Deliverability with an Underscored Selector
Using an underscore in a DKIM s= selector—like s=selector_db—can cause inconsistent authentication checks across email gateways. Some systems accept the signature; others reject it outright, leading to unpredictable bounces and reduced inbox placement. A high-volume SaaS sender learned this the hard way after their deliverability dropped from stable 0.2% to erratic 1.8% bounce rates within weeks.
The Hidden Problem Behind the Bounces
They were using s=selector_db for DKIM signing, assuming any valid selector name would work. But not all email providers treat selectors the same. RFC 6376, the DKIM standard, doesn't forbid underscores—but it doesn't mandate support either. In practice, older or stricter gateways have historically rejected selectors containing non-alphanumeric characters, especially underscores.
One of the biggest red flags? The bounce rate wasn't consistent. Some days, all was smooth. Other days, thousands of emails hit a "Message rejected" error with no clear pattern. After排查ing IPs, domains, and content, the team started suspecting authentication. That’s when they turned to MailTester’s verification API to test real inbox placements across multiple providers.
Spotting the Authentication Mismatch
MailTester returned multiple hits: inboxes across Gmail, Outlook, and Apple Mail flagged the signature as an "authentication mismatch." The report showed the issue wasn’t with the private key or DNS record—it was the selector name itself. While some gateways quietly ignored the underscore, others blocked it entirely, causing inconsistent results.
They switched to a simple s=default, re-published the DKIM record, and reran the inbox placement tests. Within 72 hours, bounce rates stabilized to 0.3%—back where they belonged. Inbox placement improved across all test accounts, and no further authentication mismatches were reported.
It’s a small change with big consequences. Don’t let an underscore in your selector break your deliverability. If you’re sending at scale, test your DKIM setup in real inboxes—not just DNS validators. Use inbox testing tools to catch these issues early. The difference between 0.2% and 1.8% isn’t just a number—it’s revenue, trust, and reputation.
Common Misconceptions About DKIM Selectors and Underscores
You don’t need to avoid underscores in DKIM s= selectors because they’re technically forbidden—RFC 6376 doesn’t ban them. The real issue isn’t protocol compliance, but inconsistency across email providers. Some servers accept underscores without issue; others reject them silently, leading to failed verification and poor deliverability. Relying on a selector with underscores is like assuming a test email works everywhere—it doesn’t. Even if it passes in your lab, real-world filtering behavior varies, and one failure can cost you inbox placement.
Underscores Aren’t Protocol-Banned—But They’re Risky
The DKIM specification doesn’t prohibit underscores in the s= selector field. You can technically use them, and many systems will process the record just fine. But that doesn’t mean it’s safe. Standards don’t guarantee behavior. Real-world implementations differ: some MTAs validate selectors more strictly than others, and edge cases like overly strict DNS or legacy spam filters may interpret an underscore as invalid, even if the syntax itself is correct. It’s not a flaw in the standard—it’s a gap in consistent implementation.
Test Environments Lie About Reliability
Just because a DKIM record with an underscore works in a test or staging environment doesn’t mean it will work at scale. You can simulate success, but that doesn’t reflect how 100+ major email providers—including Gmail, Yahoo, and Outlook—actually process your messages. One provider may accept the selector, another may fail silently on delivery. This unpredictability undermines sender reputation and increases the chance of messages being marked as suspicious or dropped.
Consistent deliverability means predictable behavior. Using a standard s= selector with letters, numbers, or hyphens avoids that risk entirely. It’s not about enforcement—it’s about minimizing variance. If your email service provider or DNS host supports RFC 6376, your DKIM configuration should use only widely accepted characters. That keeps your domain aligned with industry expectations.
Let’s be clear: this isn’t about chasing perfection. It’s about avoiding preventable issues. When you verify your sender infrastructure with tools that test DNS records, DKIM alignment, and deliverability behavior, you reduce the unknowns. For example, MailTester’s inbox placement testing checks how your emails land across real inboxes, including filtering behavior that could reject messages due to non-standard selectors.
If you're setting up or auditing DKIM, run your records through real-world validation. Don't rely on what works in a test. Even small deviations—like an underscore—can be the difference between delivery and rejection. Stick to proven patterns. That’s the real best practice.
How to Audit Your Current DKIM Setup for Selector Risks
You can audit your DKIM setup by scanning your domains with MailTester’s bulk verification tool, checking for non-compliant s= selectors in your DKIM TXT records—especially those with underscores, mixed case, or hyphens—and reconfiguring them to use only lowercase alphanumeric characters. After changes, test deliverability with inbox placement testing to confirm improvements.
Scan Your Domains for DKIM Configuration Issues
- Start with a full scan of all your sending domains using MailTester’s bulk verification tool. This checks your SPF, DKIM, and DMARC records in real-world email environments, not just DNS.
- Focus the output on DKIM records. Look specifically at the
s=field in your DKIM TXT records. The selector must contain only lowercase letters and digits. Underscores, hyphens, or uppercase letters are not standard and can break validation. - Many email providers, including Google and Microsoft, require strict adherence to RFC 6376, which defines the syntax for DKIM selectors. Using non-standard characters may trigger rejection during alignment checks.
Reconfigure and Test Your DKIM Selectors
- If you find any selectors with underscores, hyphens, or mixed case, reconfigure your DKIM key generation process to use only lowercase alphanumeric characters.
- For example, change
s=prod_2023tos=prod2023. This ensures consistent parsing across mail transfer agents and reduces the risk of deliverability drop-offs. - After updating your DNS record, allow time for propagation—typically 1-5 hours. Then, use MailTester’s inbox placement feature to send test emails from your domain and verify they land in the inbox.
- Compare results before and after correction. A successful test confirms that the revised selector is recognized and trusted by major inboxes.
- Consider setting up a monitoring system to audit records every 6 months. DNS changes happen, and selector compliance can be overlooked during migrations.
Even minor deviations in DKIM setup can affect sender reputation. While there’s no public stat that quantifies the exact impact of underscores in selectors, industry consensus—backed by IETF RFC 6376—holds that strict format adherence improves alignment and prevents silent delivery failures. Let’s treat this not as a preference but as a required standard.
“Use of non-alphanumeric characters in the selector field is not compliant with RFC 6376, Section 3.7.” — IETF RFC 6376 (2011)
MailTester’s verification tools give you clear, actionable feedback. No guesswork. Just real results. You don’t need perfect records to start—just the willingness to fix what’s broken. That’s how you build lasting deliverability.
Final Takeaway: Simplicity Over Style in DKIM Selector Design
The DKIM s= selector is a technical identifier, not a branding element. Using it for style—like including underscores—adds no value and introduces risk.
Simpler names such as ‘default’ or ‘v1’ ensure compatibility across all mail transfer agents. These names are universally recognized and reduce the chance of configuration errors.
A single misconfigured selector can break authentication for an entire domain. Prioritize reliability over cleverness. Avoid anything that deviates from widely supported standards—even if it seems harmless.
Sources
- Only about one quarter of email senders report spam complaint rates below 0.1% — the best-practice band — leaving three quarters exposed to some degree of deliverability degradation. — Validity 2025 Email Deliverability Benchmark Report (2025)
- Benchmark testing of 15 major email service providers found about 10.5% of legitimate emails land in the spam folder and a further 6.4% go undelivered. — EmailTooltester deliverability benchmark (via WarmForge) (2026)
Keep reading
- Anti-spam laws and compliance: CAN-SPAM, GDPR, CASL (complete guide)
- Why Strict DNS Servers Reject DKIM TXT Records with Underscore in s=
- Why Does MailTester Report DMARC=None for Domains with P=None?
- Email Verification Tool with Custom t= Timestamp Window for Strict Compliance
- Split DNS Causing SPF Include to Fail in Enterprise Email Environments
Ready to put this into practice? MailTester verifies emails with 98.9% accuracy — start with 100 free verifications.
Frequently asked questions
Can underscores in the DKIM s= selector cause email to be blocked?
Yes, while technically allowed, underscored selectors can cause authentication failures in some gateways, leading to spam filtering or rejection, especially in high-security environments.
What’s the recommended format for a DKIM s= selector?
Use only lowercase letters (a-z) and numbers (0-9). Avoid hyphens, underscores, dots, or uppercase letters to ensure compatibility across all receiving systems.
Does MailTester check DKIM record format?
MailTester verifies domain-level email configuration, including DNS record presence and alignment for SPF, DKIM, and DMARC, identifying potential flaws like invalid selectors.
How can I test if my DKIM selector causes deliverability issues?
Use MailTester’s inbox placement testing to send messages to real inboxes and confirm whether DKIM signatures are validated across providers.
Is it safe to use a selector like s=mail1 or s=v1?
Yes, using simple alphanumeric values like s=mail1 or s=v1 is safe and widely supported across all major email providers.
Why do some systems reject DKIM with underscores in the s= field?
Some MTAs treat underscored selectors as malformed or non-standard, even if they follow the RFC. This inconsistency leads to unpredictable authentication results.
Can a single flawed DKIM selector hurt my sender reputation?
Yes, even one message failing DKIM authentication can trigger reputation alerts, especially if repeated. Consistent failures lead to higher spam scores and lower inbox placement.
What’s the easiest way to find broken DKIM selectors?
Use MailTester’s bulk verification or real-time API to scan domains and detect inconsistencies in email authentication records.
Is it necessary to use a different DKIM selector for each sending domain?
No—multiple domains can share a single selector if configured correctly. However, each domain should have its own aligned DKIM record with a unique selector to maintain proper authentication.
What should I do if I already have an underscored selector in production?
Reconfigure the TXT record to use a valid alphanumeric selector, then validate the change using MailTester’s inbox placement tests before sending live.
Does using a generic selector like s=default reduce security?
No—default is not tied to security. Security comes from key length, private key protection, and consistent key rotation, not selector name complexity.
How does MailTester’s AI assistant help with DKIM verification?
The in-app AI assistant can interpret raw DNS records, flag potential issues like underscored selectors, and suggest corrections based on deliverability best practices.