Suped

How to set up DMARC/DKIM/SPF for Mail.ru

Published 30 Nov 2026
Updated 30 Nov 2026
13 min read
Summarize with
Mail.ru email authentication setup with an envelope and DNS record tiles.
Mail.ru manages SPF, DKIM, and DMARC for personal @mail.ru addresses. You cannot edit those records. For your own domain on Mail.ru business mail, now VK WorkSpace, verify ownership, publish Mail.ru's SPF policy, copy your domain's DKIM key, and add a DMARC TXT record in your DNS.
I start new DMARC deployments with p=none and reporting, then enforce a stronger policy after checking legitimate senders. If your domain already uses p=quarantine or p=reject, keep that policy while fixing authentication. The DNS steps below apply to a domain you control, such as example.com.

Add your domain

Use the administration panel for Mail.ru business mail, branded VK WorkSpace. A personal Mail.ru inbox has no custom-domain DNS controls. You also need access to the DNS provider hosting your domain's authoritative nameservers.
  1. Open the project: Sign in as a business mail administrator. Choose Add domain ('Добавить домен') or Create project ('Создать проект'), depending on your console version. Enter your domain without an email address.
  2. Copy the proof: Select DNS verification ('DNS-проверка'). Copy the unique TXT value shown for your domain, typically starting with mailru-domain:.
  3. Publish and confirm: Create that TXT record at the host shown by the console, usually @. Save it at your DNS provider, return to Mail.ru, and click Confirm ('Подтвердить') after the record is publicly visible.
  4. Prepare a mailbox: Create a mailbox using your own domain. If migrating incoming mail, follow the account's MX instructions during the planned cutover, normally emx.mail.ru with priority 10. Authentication alone does not require an MX migration.
The ownership TXT value is unique to your account. Copy it exactly and keep existing unrelated TXT records. If your DNS editor appends the domain automatically, use @ for the root instead of entering the domain twice.
The business console separates domain ownership from mail server checks. A confirmed domain still needs its SPF and DKIM records. Existing accounts usually expose these under Mail ('Почта') and Server status ('Состояние сервера').
Illustrated Mail.ru business domain verification using a TXT record.
Illustrated Mail.ru business domain verification using a TXT record.
Proceed when ownership is confirmed. Do not change nameservers merely to add authentication records; publish them where your domain's DNS is already managed.

Set up SPF

For a domain that sends only through Mail.ru's hosted servers, publish one root TXT record that delegates SPF to _spf.mail.ru. For a domain with other senders, add include:_spf.mail.ru to its existing SPF policy instead.
  1. Read the current policy: Find the TXT record beginning v=spf1 at your sending domain. Edit that record rather than adding a second SPF record.
  2. Choose the correct form: Use redirect only for the Mail.ru-only policy below. For a combined policy, retain your other authorized senders and place include:_spf.mail.ru before the final all mechanism.
  3. Save one record: Use TXT at @ for root-domain mail. Do not add an all mechanism to the redirect-only example, since all prevents the redirect from being used.
  4. Check the budget: Keep SPF evaluation within the 10 DNS-lookup term limit, including nested includes and redirects. Do not copy Mail.ru's current IP addresses into a static list.
Root TXT values: choose the form that matches your senderstext
Mail.ru only: v=spf1 redirect=_spf.mail.ru Mail.ru plus an authorized server, example only: v=spf1 ip4:192.0.2.10 include:_spf.mail.ru ~all
The address 192.0.2.10 is a documentation placeholder. Replace it with an actual authorized server or retain your existing sender mechanisms. Publish only one of these SPF policies, and preserve a deliberate existing -all ending when merging senders.
Enter your sending domain in the SPF checker below. Inspect the published policy and its lookup result after DNS caches refresh. For a subdomain used in MAIL FROM, check that subdomain directly; SPF records do not inherit automatically.

SPF checker

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

?/16tests passed
A valid SPF record confirms that the DNS policy can be evaluated. It does not prove that a particular email used Mail.ru's servers or that its return-path domain matches the visible From domain.
I check smtp.mailfrom in the receiving server's Authentication-Results header. Mail.ru custom-domain mail supports return-path alignment, but each sending route still needs testing. A display name or Reply-To change does not change the SMTP envelope sender.
Your domain in MAIL FROM
SPF can satisfy DMARC when it passes and the envelope domain matches the visible From domain under the published alignment mode. Configure SPF for that envelope domain.
A provider domain in MAIL FROM
If a route uses mail.ru in MAIL FROM and your domain in From, expect SPF alignment to fail. Editing your root SPF does not fix this. Passing DKIM with your domain can still satisfy DMARC.

Set up DKIM

Copy the DKIM record generated for your domain by Mail.ru business mail. Mail.ru holds the matching private key. I do not substitute a separately generated public key, because it will not verify signatures made with Mail.ru's key.
  1. Open DKIM settings: Select your domain, then open Mail > Server status ('Почта' > 'Состояние сервера'). Locate the DKIM DNS instructions for that domain.
  2. Copy both fields: Copy the hostname and complete TXT value. The usual selector is mailru, giving mailru._domainkey.example.com. Use the hostname shown in your account if it differs.
  3. Publish the key: Create TXT at mailru._domainkey if your DNS editor appends example.com. Paste the complete value beginning v=DKIM1, including the entire p= public key, as one logical TXT record.
  4. Recheck and send: Return to Server status and run its record check. Send a new message from your custom-domain mailbox and confirm dkim=pass with header.d matching your From domain.
Long DKIM values are sometimes stored as several quoted character strings inside one TXT record. That is valid when DNS returns them as one concatenated value. Avoid extra spaces inside the key and multiple competing key records at the same selector.
Use the account's DKIM data field as the source of the key. The illustration masks that value because every domain needs its own generated record. There is no shared Mail.ru DKIM key to copy into every domain.
Illustrated Mail.ru business Server status page with the DKIM hostname and key field.
Illustrated Mail.ru business Server status page with the DKIM hostname and key field.
Check the received message's DKIM-Signature for d= and s=. The receiver looks up s._domainkey.d, using those actual values. A passing signature for mail.ru alone does not authenticate example.com for DMARC.

Set up DMARC

Publish DMARC at _dmarc under the domain in your visible From address. Start with p=none if you have no enforcement policy. Keep an existing p=quarantine or p=reject policy in place. DMARC passes when SPF or DKIM passes with the required domain match.
  1. Check for a record: Look up TXT at _dmarc.example.com. Edit the existing DMARC record if present; do not create a second policy at that name.
  2. Generate the value: Use our DMARC record generator to prepare the policy. Choose a real reporting destination and retain any intentional existing settings.
  3. Publish reporting: For a new deployment, add TXT at _dmarc using the value below. Replace the example reporting address with a mailbox or report processor that accepts aggregate XML reports.
  4. Keep default matching: Leave aspf and adkim at their default relaxed mode unless your policy requires exact domain matches. Under relaxed mode, subdomains sharing the same organizational domain qualify.
Initial monitoring policy: TXT at _dmarc.example.comtext
v=DMARC1; p=none; rua=mailto:dmarc@example.com
The record above is the starting template, not a working report destination for your business. Replace dmarc@example.com with your actual destination. An external reporting domain needs authorization in that destination's DNS; follow its instructions.
Run the DMARC checker for the visible From domain after saving DNS. Confirm that it finds one policy at the correct hostname and recognizes the reporting address. A TXT record at the domain root does not replace the _dmarc record.

DMARC checker

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

?/7tests passed
A successful lookup confirms the published configuration. To confirm message authentication, send a new email and inspect the receiver's result. Existing messages are not reauthenticated when you change DNS.
Aggregate reports usually arrive on a daily cycle. I keep reporting enabled through each policy change so I can compare legitimate Mail.ru traffic before and after enforcement.
Monitoring does not enforce rejection
p=none requests reporting without DMARC-based quarantine or rejection. Receiving servers still apply their own spam filters. Do not weaken an existing enforcement policy just to collect reports.

Verify and troubleshoot

I verify a real message after checking DNS. Test the same custom-domain mailbox and sending route used in production. A webmail test does not validate an application that bypasses Mail.ru and sends through a different server.
  1. Send externally: Send a fresh message to a separate receiving mailbox. Repeat for webmail and each SMTP application you use.
  2. Open the headers: In Mail.ru's desktop web interface, open the received email, click the three-dot menu, and select Service headers ('Служебные заголовки'). Downloading the .eml file also preserves these headers.
  3. Read trusted results: Find Authentication-Results added by the receiving server. Check spf, smtp.mailfrom, dkim, header.d, and dmarc. Ignore authentication claims inserted by an untrusted sender.
  4. Resolve the failure: For SPF errors, check duplicate policies and lookup limits. For DKIM errors, check the actual selector and complete key. For DMARC failure despite a pass, compare the authenticated domain with the visible From domain.
Check published records with digbash
dig +short TXT example.com dig +short TXT mailru._domainkey.example.com dig +short TXT _dmarc.example.com
Mail.ru's public header-checking instructions use this three-dot menu. Inspect the received copy rather than the Sent folder, because the receiving server adds its authentication results during delivery.
The illustration shows where to open the message source. Read the domain values alongside pass or fail; two passing checks for unrelated domains still leave your From domain without a DMARC pass.
Illustrated Mail.ru message menu showing the Service headers action.
Illustrated Mail.ru message menu showing the Service headers action.
For a quicker message check, use our email tester. It gives you an address to send to, then diagnoses the received message's authentication and other delivery checks. Send directly through Mail.ru instead of forwarding an old email.
Use the exact From address and SMTP route that need verification. A useful result has dmarc=pass and at least one passing, matching authentication path. For direct custom-domain Mail.ru mail, aim for passing SPF and DKIM together.

Email tester

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

?/43tests passed
The test diagnoses one message at the time it is sent. Retest after DNS changes or a mailbox migration. Check aggregate reports separately to cover senders and traffic that the test message does not exercise.
If a record remains missing, query an authoritative nameserver and compare it with the recursive resolver result. Incorrect record names, edits at an inactive DNS provider, and cached negative answers are common causes.

Check

Target

Domain identity

SPF
pass
MAIL FROM
DKIM
pass
Signing domain
DMARC
pass
Visible From
Read the domain identity together with each authentication result.

Get alerted when it breaks

Authentication needs ongoing checks after the initial setup. Suped, our DMARC platform, turns aggregate reports into source-specific issues and fix steps, so Mail.ru failures are easier to investigate alongside your other senders.
  1. Enable issue emails: With reports flowing, enable Suped's Issues detected notifications and confirm who receives them. Keep a responsible mailbox administrator on the recipient list.
  2. Review new sources: Enable Sending sources need verification notifications. Confirm Mail.ru against your actual usage before marking it as verified; an rDNS suffix alone is insufficient.
  3. Investigate the route: Filter failures by source and date. Inspect SPF and DKIM domain identities, then follow the detected issue's fix steps. Compare DNS history when failures follow a record change.
  4. Verify the repair: Send another test email immediately after the fix. Then check subsequent aggregate reports and use DMARC summary emails to track whether legitimate failures persist.
Our DMARC monitoring connects these checks in one workflow: identify a failing Mail.ru source, inspect the authentication result, correct the configuration, and confirm the next reports.
Account for reporting delays
DMARC aggregate alerts depend on reports received from participating receivers, usually on a daily cycle. Use the message tester for immediate checks after a change; use Suped notifications for continued monitoring.

Secure your domain with p=reject

Move to p=reject when every legitimate sending route has been identified and passes DMARC. I judge readiness using legitimate-source results over a complete sending cycle, including infrequent mail, rather than a single overall pass rate.
  1. Inventory the domain: Review Mail.ru mailboxes and every other sender using your From domain, including website forms and billing systems. Check aliases and sending subdomains separately.
  2. Clear legitimate failures: Use Suped's verified sources and record diagnostics to identify broken authentication. Fix the actual sending route instead of authorizing unknown IP addresses.
  3. Stage enforcement: After representative traffic passes, change p=none to p=quarantine. Review subsequent reports and recipient feedback before changing to p=reject.
  4. Check indirect mail: Test forwarding and mailing-list workflows. SPF often fails after forwarding, so verify that a matching DKIM signature survives. Modified messages need separate investigation.
  5. Keep watching: Preserve rua and continue Suped issue notifications after enforcement. Check subdomain policy inheritance and any explicit child-domain DMARC policies before rollout.
Enforcement template: TXT at _dmarc.example.comtext
v=DMARC1; p=reject; rua=mailto:dmarc@example.com
Replace the example reporting address and preserve required existing tags. p=reject requests rejection of messages that fail DMARC; receivers apply their own handling rules. It does not prevent abuse through a compromised authenticated mailbox.
For teams managing policy changes alongside Mail.ru, our Hosted DMARC lets administrators manage the policy through Suped after the initial DNS delegation. Use its policy controls with source verification and issue diagnostics to review each enforcement step against actual reports.
Promote on evidence
Proceed when legitimate Mail.ru messages and your other authorized routes consistently pass DMARC. Keep the reporting address active and retest whenever a new sending application or domain alias is introduced.

Frequency asked questions

No. Mail.ru controls DNS and authentication for its personal mailbox domains. Send through Mail.ru's webmail or authenticated SMTP service. These custom-domain DNS steps apply only to domains you own and administer.

Use the redirect-only SPF policy shown above when Mail.ru is the only sender. If other services also send, use include:_spf.mail.ru inside one combined SPF record with those senders and a final all mechanism. Never publish both alternatives as separate SPF records.

Mail.ru business mail commonly uses mailru, so the DNS hostname is mailru._domainkey.your-domain. Copy the exact hostname and domain-specific key from your account. Confirm the actual selector in the s= tag of a received DKIM-Signature.

SPF authenticates the envelope sender domain. DMARC requires that domain to match the visible From domain under its alignment mode, or that a passing DKIM signature has a matching signing domain. A pass for mail.ru does not establish a match for your custom domain.

These suffixes are associated with Mail.ru infrastructure, including its business mail service. Treat the suffix as an investigation clue. Check the connecting IP's PTR and forward DNS, the trusted Received header, and SPF or DKIM results before attributing a message or authorizing a source.

Check authoritative DNS after saving, then allow previously cached records to expire according to their TTL. Negative DNS answers also have a cache lifetime. Send a new email once the correct records resolve. Aggregate DMARC reports usually arrive later on a daily cycle, so they do not provide an immediate post-change result.
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