Email authentication: what it is and how to set it up
Why Email Authentication is Needed
Advantage | What it Provides | Why It Matters |
---|---|---|
Fraud Protection | Fraudsters will not be able to send emails on your behalf | Reduces the risk of phishing and email forgery |
Improved Deliverability | Emails more frequently land in "Inbox" | Increases open rates and responses |
Enhancing Domain Reputation | Mail services start trusting your domain | Effectiveness of future campaigns grows |
Access to Analytics | Access to postmaster tools is opened | Delivery errors and spam complaints can be tracked |
Key Authentication Protocols: SPF, DKIM, DMARC
The essence of email authentication boils down to three main technologies, which are configured through DNS records of the domain. These are SPF, DKIM, and DMARC — standards that confirm that your domain indeed has the right to send emails. They also instruct mail services on how to handle emails that fail verification.
SPF (Sender Policy Framework)
When someone receives an email supposedly from your domain, the mail server checks the sender's IP address against this list. If the IP is not found, the message will be rejected or go to spam — the system will consider it suspicious.
v=spf1
, followed by a list of permitted servers. Example: primer.com TXT "v=spf1 include:spf.your_service.com -all"include:spf.your_service.com
connects to the list of servers from the mailing service you use. And -all
at the end indicates that any other servers — not on this list — are not authorized to send mail.
If you are using the platform Altcraft, it is recommended to add include:spf.aksend.net
— this is its own list of servers for mailing.include:
to the existing list. Do not create a separate record with v=spf1
.
Also pay attention to the format of the record: do not manually insert extra quotes — they are only needed for display, not for storage in DNS.
If your domain is protected by an SPF record, it will be harder for fraudsters to send emails on your behalf. Plus, SPF provides feedback: if an email is undelivered, you will receive a notification (if Return-Path is configured). This helps to react to problems more quickly.
However, it is important to understand that SPF is just one layer of protection. For example, if an email is forwarded through another server, SPF may fail. This is why it is always used in conjunction with DKIM and DMARC — together they provide comprehensive validation of the email's authenticity.
DKIM (DomainKeys Identified Mail)
When you send an email, the mailing service or your mail server signs it with a special cryptographic signature. This signature is created by the private key.
When the email arrives at the recipient's server, the system accesses the DNS records of the sender's domain to find the public key. Using this, it verifies whether the digital signature matches the data in the email and the specified domain. If the check is successful — the email is deemed trustworthy. Otherwise, it is marked as suspicious and sent to spam.
To make all of this work, you need to:
ak
is indeed the selector, which is the name of the key. It can be anything: mail
, default
, dkim1
, and so on. For example, Altcraft uses the selector ak
— it comes along with the other domain setup configurations.o=-
, which means: all emails must be signed).As soon as you add the DKIM record to DNS and it begins to work, the service will automatically sign emails, and mail systems will verify this signature upon receipt.
DKIM brings two significant advantages:
- Authenticity Confirmation. The recipient (and their mail service) see that the email genuinely came from your domain. No one can forge the signature without access to your private key — meaning the email is authentic.
- Integrity Guarantee. Even if an email is intercepted along the way, its content cannot be changed — any small alteration, even a single letter, will break the signature, and the email will fail verification.
For email marketing, this is very important. Recipients see that emails are signed by your brand, leading them to trust you more. Moreover, email services (Google, Yandex, Mail.ru, and others) take the DKIM signature into account when assessing your reputation as a sender. The more frequently you send signed and valid emails — the better your domain's reputation.
DMARC (Domain-based Message Authentication, Reporting and Conformance)
If everything is in order — the email is deemed authentic. If not — the policy you specified is applied:
none
— do nothing, just send reports.quarantine
— send suspicious emails to spam.reject
— outright reject such emails.
What's important here:
p=none
— we are just observing (monitoring), not blocking emails.rua=mailto:
— the email address where reports will be sent (usually once a day, in the form of XML files).
none
to gather data and understand who and how sends emails on your behalf. Once you’re sure that all your legitimate services pass checks, you can strengthen the policy — first to quarantine
, and then to reject
.DMARC is the next level of protection that closes the "gaps" in SPF and DKIM. For example:
- Someone might use an authorized SPF server but change the "From" address.
- Or they might sign an email with a valid DKIM signature from a different domain.
In such cases, DMARC will notice that the From domain doesn’t match what passed the check — and it will apply your policy (for instance, rejecting the email).
Beginning in 2024, Google (Gmail) and Yahoo require that all domains sending more than five thousand emails a day must have DMARC configured. Otherwise, such emails may be automatically rejected. This means that without DMARC, it's currently impossible to seriously engage in large-scale email campaigns.
How Authentication Affects Email Deliverability
How Authentication Works in Altcraft
- SPF. Altcraft will ask you to add the line
include:spf.aksend.net
to your existing SPF record. This is necessary for the servers to have the right to send emails on your behalf. If SPF already exists — just append this part. The main thing is not to create a second record; there should only be one SPF. - DKIM. The platform will generate a unique DKIM key for you — this signature confirms that the email is indeed from you and has not been altered. You will receive two values:
ak._domainkey
)These records are also added to DNS.
- DMARC. This is the final layer of protection. It is recommended to immediately specify a strict policy
p=reject
, so that any suspicious emails sent on behalf of your domain are automatically blocked. Also specify the email to which reports will be sent.
Once all records are entered, emails from your domain begin to pass checks according to all the rules:
- not ending up in spam,
- being signed correctly,
- not being able to be forged by others.
Conclusion
Email authentication is now a standard without which professional mailing is hard to imagine. Today, emails without SPF, DKIM, and DMARC are seen as suspicious: mail services do not trust them, and users simply do not see them in their "Inbox."
But all this is not complicated to configure. Especially if you use platforms like Altcraft — they handle the technical part and provide clear instructions. As a result, you save time, avoid mistakes, and can be confident that emails are truly reaching their recipients.