Suped

How to set up DMARC/DKIM/SPF for Twikey

Published 11 Jul 2026
Updated 12 Nov 2026
12 min read
Summarize with
Twikey SPF, DKIM, and DMARC setup
Updated on 12 Nov 2026: We clarified Twikey DNS entry and authentication checks, and corrected enforcement guidance for receivers that ignore t=y.
For Twikey SMTP, authorize its sending servers with include:_spf.twikey.com in one SPF record, add the app and test DKIM CNAMEs, enable DKIM in Twikey, and publish an applicable DMARC policy for the From-address domain. Start a new DMARC deployment at p=none, verify authentication and identifier alignment in real messages, then move to p=reject after every legitimate sender is accounted for. Keep an existing quarantine or reject policy while authenticating Twikey.
Choose the sending path first
Twikey SMTP uses Twikey's mail infrastructure and the DNS records below. Custom SMTP shifts SPF, MAIL FROM, connection, and reputation requirements to that SMTP system, but Twikey still supports its DKIM option with either path. Do not authorize Twikey in SPF when Twikey is not the system that transmits the message. Inspect a received message to identify every DKIM signature added by Twikey or the custom SMTP system.

Choose your sending domain

Twikey's documented setup uses the domain after @ in the From address, and its Test action validates the integration before saving. The public Twikey email guide documents both Twikey SMTP and custom SMTP setup.
Publish records at the DNS hosting provider used by your domain's authoritative nameservers, which is not always your registrar or website host. Replace example.com with your sending domain. If the Name/Host field automatically appends example.com, use @ for the root SPF record, app._domainkey and test._domainkey for DKIM, and _dmarc for DMARC. For billing@payments.example.com in that DNS zone, the DKIM names are app._domainkey.payments and test._domainkey.payments; an exact-domain DMARC record uses _dmarc.payments. Check the resulting full hostnames to avoid duplicated domain suffixes.
  1. Open settings. In Twikey, go to Settings, Integrations, then Email integration.
  2. Select transport. Choose Twikey SMTP Server for the records on this page, or Custom SMTP server if another system will transmit the mail.
  3. Set the sender. Enter a From address on a domain you control, such as Billing <billing@example.com>. Publish the Twikey DKIM records for that From domain and confirm that an applicable DMARC policy covers it.
  4. Delay saving. Leave the integration open while publishing SPF and DKIM. Run Test and Save only after DNS resolves publicly.
Twikey email integration and From address settings
Twikey email integration and From address settings
Twikey SMTP
  1. DNS ownership. Publish Twikey's SPF authorization and both Twikey DKIM CNAMEs.
  2. Operational profile. Twikey queues mail and usually sends it within minutes, but high billing traffic around the first of the month can cause delays.
Custom SMTP
  1. DNS ownership. Use the transmitting system's SPF instructions and configure Twikey's DKIM CNAMEs if enabling Twikey DKIM.
  2. Connection data. Enter the SMTP host and the required port and encryption settings. Supply credentials when the server requires authentication. Twikey defaults an empty port to 25, or 587 when SSL is enabled; SSL is disabled by default.

Set up SPF

SPF authenticates the SMTP MAIL FROM domain, which is commonly shown later in the Return-Path header. With Twikey SMTP, add Twikey to the single SPF TXT record for the MAIL FROM domain. SPF contributes to DMARC only when that authenticated domain has identifier alignment with the visible From domain, so verify the actual domains in a received message.
  1. Inspect DNS. Find the existing TXT value beginning with v=spf1. Never publish a second SPF record at the same hostname.
  2. Add Twikey. Insert include:_spf.twikey.com before the final all mechanism. Keep every existing authorized sender.
  3. Count lookups. Keep the total at ten or fewer evaluated DNS-querying mechanisms or modifiers, including those in nested includes and redirect chains. Twikey documents limitations resolving SPF includes during its own validation, so verify the complete policy independently.
  4. Verify alignment. Send a Twikey message and confirm spf=pass with smtp.mailfrom and header.from sharing the same organizational domain under relaxed alignment. If aspf=s is configured, the two domains must match exactly.
New SPF record for Twikey-only sendingDNS
Name: example.com Type: TXT Value: v=spf1 include:_spf.twikey.com ~all
If an SPF record already exists, merge Twikey's include into it. Replacing the whole record can break authentication for other mail streams. Twikey documents a:mail.twikey.com as an alternative that follows hostname address changes, but it still counts toward the SPF lookup limit. Recount the full policy after changing it. Use a direct ip4 authorization only with a process to track Twikey IP changes.

SPF checker

Find SPF syntax issues, lookup limits, and weak records.

?/16tests passed
The check should return one syntactically valid SPF policy and show Twikey's authorization before the terminal all mechanism. A permerror means receivers cannot reliably evaluate the record, even when Twikey's own test appears successful.
Do not force SPF alignment
A custom SMTP service might not provide an aligned MAIL FROM domain. In that case, expect SPF alignment errors and rely on aligned DKIM for DMARC. A message passes DMARC when either aligned SPF or aligned DKIM passes.

Set up DKIM

Twikey delegates two selectors by CNAME. The app selector covers production and the test selector covers the beta environment. Publish both on the same domain used in the From address, then enable DKIM inside the email integration.
  1. Create app. Add app._domainkey as a CNAME pointing to app._domainkey.twikey.com.
  2. Create test. Add test._domainkey as a CNAME pointing to test._domainkey.twikey.com.
  3. Check selector records. If the DNS host supports proxying, leave both mail CNAMEs DNS-only. Check who uses any existing TXT or CNAME at either selector before replacing it. Resolve conflicts with the domain administrator or Twikey support if another active sender uses app or test.
  4. Enable signing. Return to Twikey, select Enable DKIM, run Test, confirm success, and click Save.
Twikey DKIM CNAME recordsDNS
Name: app._domainkey.example.com Type: CNAME Value: app._domainkey.twikey.com Name: test._domainkey.example.com Type: CNAME Value: test._domainkey.twikey.com
Twikey DKIM enabled with successful validation
Twikey DKIM enabled with successful validation
What a valid message shows
The receiving server's Authentication-Results header should show dkim=pass and a header.d domain with the same organizational domain as header.from under relaxed alignment. A parent domain or sibling subdomain can qualify; adkim=s instead requires an exact domain match. A published CNAME alone does not prove that Twikey signed the message.

Set up DMARC

DMARC policy discovery starts at _dmarc on the visible From domain. If no valid record exists there, RFC 9989 receivers use a DNS Tree Walk to find an applicable parent policy. Publish an exact-domain record when that From domain needs its own policy; otherwise confirm that the organizational-domain policy covers it. DMARC checks identifier alignment and tells receivers what to do when both aligned SPF and aligned DKIM fail. For a new policy, start with p=none so reporting reveals legitimate senders without requesting delivery changes.
  1. Check first. Look up the exact From domain and any applicable parent policy. If a valid policy already uses p=quarantine or p=reject, keep that enforcement level and fix Twikey rather than weakening the policy.
  2. Create one record. If no applicable policy exists, publish the starter record below as TXT at _dmarc. Replace the example reporting address with a monitored mailbox or DMARC reporting destination. If the rua domain differs from the policy domain's organizational domain, confirm that the destination publishes authorization to receive those reports.
  3. Check alignment modes. The default relaxed modes accept an authenticated domain with the same organizational domain as the From domain. If an existing policy specifies aspf=s or adkim=s, verify the corresponding exact domain match before changing those settings.
  4. Collect reports. Aggregate reports usually arrive daily rather than immediately. Group Twikey traffic by source and DKIM domain, and confirm aligned pass results before enforcement. Not every receiving server sends reports.
Starter DMARC recordDNS
Name: _dmarc.example.com Type: TXT Value: v=DMARC1; p=none; rua=mailto:dmarc@example.com
The DMARC record generator creates a policy with reporting and alignment options. Use a monitored rua destination that accepts aggregate XML, authorize it when it is on another organizational domain, and avoid publishing multiple DMARC TXT records at the same name.

DMARC checker

Look up a domain's DMARC record and catch policy issues.

?/7tests passed
For the starter policy, confirm that one DMARC record contains v=DMARC1, p=none, and the intended rua destination. The checker confirms DNS syntax, while a real Twikey message confirms whether the identifiers actually have alignment.
A pass must be aligned
SPF or DKIM can pass for an unrelated domain while DMARC still fails. Compare smtp.mailfrom and header.d with the domain in header.from. At least one passing identifier must share the same organizational domain under relaxed alignment.

Verify and troubleshoot

Verify in two places: Twikey's built-in Test action confirms its configuration, and an independently received message confirms what mailbox providers evaluate. DNS success without a signed message is incomplete verification.
  1. Run Twikey Test. Open Settings, Integrations, Email integration, click Test, and wait for a success message before Save.
  2. Receive a message. Trigger a real mandate, payment notification, or dunning test to a mailbox you control. Check junk if it does not reach the inbox.
  3. Read authentication. Inspect the receiving mailbox server's Authentication-Results header for spf=pass, dkim=pass, and dmarc=pass. Confirm that at least one passing SPF or DKIM identifier meets the policy's alignment requirements for header.from.
  4. Check both selectors. Resolve app._domainkey and test._domainkey. Each must return its Twikey target without a CNAME loop or competing record.
  5. Separate custom SMTP. When custom SMTP is selected, inspect its MAIL FROM domain and every DKIM signature. Twikey's SPF include does not authorize the custom server, and the custom server can add its own DKIM signature.
Successful SPF and DKIM test in Twikey
Successful SPF and DKIM test in Twikey
For the quickest end-to-end check, send a Twikey test message to the email tester below. It reports the visible From domain, Return-Path, DKIM signature, DMARC result, and common content or transport faults in one result.

Email tester

Send a real email to this address. Suped shows a results button when the test is ready.

?/43tests passed
If the result fails, fix the first authentication fault before judging inbox placement. Twikey advises allowing up to 48 hours for DNS propagation; cached old records or missing-record responses persist until their cache TTL expires. Re-test with a newly generated Twikey message after every change.
Failure symptom
  1. SPF permerror. Multiple SPF records, bad syntax, a loop, or more than ten lookups.
  2. DKIM missing or failing. dkim=none indicates no signature. A missing selector or conflicting DNS data can cause a verification error; message changes after signing can cause dkim=fail.
  3. DMARC fail. Neither SPF nor any DKIM signature passed with the domain relationship required by the DMARC policy.
  4. No test mail. Bad From formatting, a Twikey queue delay, junk placement, or SMTP rejection.
Corrective action
  1. SPF repair. Merge senders into one policy and reduce lookup-producing mechanisms.
  2. DKIM repair. Correct both CNAME targets, wait for cache expiry, and enable DKIM. If signatures still fail, check whether the custom SMTP system changes signed content.
  3. DMARC repair. Make either smtp.mailfrom or header.d use the required domain relationship with header.from.
  4. Delivery repair. Review Twikey's test status and Activity > Email errors, then retry.

Monitor Twikey authentication

A passing test is a point-in-time result. Twikey infrastructure, DNS edits, selector changes, and newly added senders can change authentication later. Monitor aggregate DMARC data continuously and alert on a sustained change in aligned pass rates or an unknown source. Report-based alerts follow receiver reporting schedules, so investigate failed transactions directly as well.
  1. Route reports. Send rua reports to a processor that can parse XML, retain history, and group records by sending source.
  2. Baseline Twikey. Record its normal source IPs, app or test DKIM use, aligned SPF rate, aligned DKIM rate, and daily volume.
  3. Alert on change. Investigate a new source, a sharp failure increase, a missing DKIM selector, or unexpected volume before enforcement blocks valid mail.
  4. Retest after edits. Trigger a Twikey transaction after any DNS or integration change and compare it with the established baseline.
Use Suped for continuous detection
Suped is our DMARC platform. It converts aggregate reports into identified sending sources, flags SPF, DKIM, and DMARC faults, provides specific fix steps, and sends alerts when authentication changes. For Twikey, use reports to investigate unknown sources and drops in aligned authentication. Check app and test selector values where receivers include them, and confirm signing in received-message headers.
Use DMARC monitoring to compare Twikey authentication with other business mail streams before changing your domain policy.

Move to DMARC p=reject

Move to p=reject only after Twikey and every other legitimate source consistently pass aligned SPF or aligned DKIM. Treat enforcement as a staged change backed by report evidence. RFC 9989 made pct historic. Its t=y test mode requests one-level-lower handling only from receivers that implement it. Receivers that do not recognize t=y ignore the tag and can apply the published p policy at full strength, so treat quarantine and reject as enforceable when publishing them.
  1. Inventory senders. Identify every source in DMARC reports, including low-volume transactional systems and subdomains. Observe a complete Twikey billing cycle and account for other infrequent senders before enforcement. Classify unknown traffic before authorizing it.
  2. Prove Twikey alignment. Confirm recent production messages use aligned app DKIM or aligned SPF. Also verify the test selector if the beta environment sends mail.
  3. Stage quarantine. Publish p=quarantine once legitimate senders consistently pass. Review failures and actual message handling before proceeding. Mail receivers retain disposition discretion; t=y does not guarantee monitoring-only handling across receivers.
  4. Apply reject. After quarantine is stable and legitimate aligned pass rates remain consistent, publish p=reject. Decide whether subdomains need explicit sp or np policies, and continue reporting. Treat p=reject; t=y as capable of causing rejection at receivers that ignore t=y.
  5. Keep rollback data. Record the previous policy, DNS TTL, owner, and approval. If valid mail fails, fix its alignment first and use a controlled policy rollback only when business impact requires it.
DMARC enforcement gates
Use report evidence for each policy change and treat the published p policy as enforceable.
Observe
p=none
Identify legitimate sources and confirm Twikey authentication.
Quarantine
p=quarantine
Request quarantine for failing mail and check legitimate traffic before proceeding.
Enforce
p=reject
Request rejection after quarantine is stable and legitimate streams consistently pass.
Full enforcement exampleDNS
Name: _dmarc.example.com Type: TXT Value: v=DMARC1; p=reject; rua=mailto:dmarc@example.com
Use Suped to stage enforcement
Suped maps verified and unverified sources, flags specific authentication and alignment failures, and provides fix steps before policy changes. Use Suped's hosted DMARC controls to publish each enforcement policy, then use alerts and aggregate reports to check whether a Twikey change affects valid traffic.

Twikey authentication FAQ

These checks cover the details that most often cause a Twikey configuration to pass DNS validation but fail DMARC in a received message.

With Twikey SMTP, add include:_spf.twikey.com to the existing SPF policy before its final all mechanism. If no SPF record exists and Twikey is the only sender, use v=spf1 include:_spf.twikey.com ~all. Publish one SPF record only.

Twikey uses app for production and test for its beta environment. Create CNAME records from app._domainkey on your domain to app._domainkey.twikey.com and from test._domainkey to test._domainkey.twikey.com, then enable DKIM in Twikey.

mail.twikey.com is associated with Twikey's SMTP sending path. Twikey documents a:mail.twikey.com as an advanced SPF authorization. Treat rDNS as a source clue, then confirm ownership with the MAIL FROM domain, DKIM signing domain, source IP, and current DMARC data.

No. DMARC passes when either SPF passes with an aligned MAIL FROM domain or DKIM passes with an aligned signing domain. Configure both where supported because DKIM survives forwarding more reliably and SPF provides another valid path.

Only if Twikey infrastructure actually transmits the message or the custom design specifically requires it. With Custom SMTP selected, use the SPF requirements of the transmitting system, enable Twikey DKIM if desired, and verify every identifier in a received message.

Change to p=reject after reports covering a complete Twikey billing cycle show that Twikey and every legitimate sender consistently pass aligned SPF or DKIM. Stage through p=quarantine, investigate legitimate failures, and retain aggregate reporting. The historic pct tag is not a rollout control under RFC 9989, and t=y only requests reduced handling at supporting receivers. Keep an existing quarantine or reject policy while fixing Twikey.
DMARC monitoring

Start monitoring your DMARC reports today

Suped DMARC platform dashboard
What you'll get with Suped
Real-time DMARC report monitoring and analysis
Automated alerts for authentication failures
Clear recommendations to improve email deliverability
Protection against phishing and domain spoofing