The guide
Understanding email
An email passes through several stages before it appears in an inbox. Follow its journey to understand who sends it, how it is checked and what can delay its arrival.
Looking for a particular answer? Use the contents to jump to a topic. Open “A closer look” for the technical details.
The journey of an email
Camille sends Alex an appointment confirmation. Clicking Send hands the message to her email service, which finds the receiving servers for Alex’s domain and contacts one of them.
The DNS acts as a directory. MX records identify a domain’s incoming mail servers. Servers exchange messages using SMTP, the email transport protocol.
The receiving service checks the message and decides how to handle it. Alex then reads it in webmail or an email application. Sending, acceptance by a server and reading are separate events.
- Camille Writes and sends
- Sending service Finds the destination
- Receiving server Checks and receives
- Alex Reads the message
An SMTP conversation: client and server
Here Camille sends to alex-exemple-guide@yopmail.com. Her outgoing server acts as the SMTP client; smtp.yopmail.com receives the message for YOPmail.
This conversation is illustrative. Commands and replies show a successful receipt; no message is sent. Replies can vary with the connection and checks.
-
The server welcomes the connection
Code 220 says the server is ready to talk.
-
The client introduces itself
EHLO gives the client name. The reply lists supported features. The 250- lines continue; the last starts with 250 followed by a space.
-
The connection switches to TLS
The client requests STARTTLS. After the 220 reply, the servers negotiate encryption for this connection.
The binary TLS negotiation is not shown. Once encryption is established, the client sends EHLO again.
-
The client supplies the return address
MAIL FROM starts the envelope. This address is used for failure notices and may differ from the displayed From address.
-
It specifies the recipient
RCPT TO identifies the delivery address. Code 250 accepts that recipient for the next steps.
-
It asks to transfer the message
The 354 reply invites the client to send the headers and body.
-
It sends the content, ending with a lone dot
A blank line separates headers from the body. A dot on a line of its own marks the end of the message transfer.
-
The servers end the conversation
QUIT requests session closure. The server replies 221 and closes the connection.
The 250 after the final dot confirms that the server accepted responsibility for the message. Earlier 250 replies accepted envelope steps. This is not proof that Alex has read the mail.
A closer look
An email application generally submits outgoing messages through an authenticated SMTP service. It may use IMAP to access the inbox; webmail provides an interface in a browser.
In SMTP, EHLO introduces the client, MAIL FROM supplies the envelope return address, RCPT TO identifies recipients and DATA transfers the message. The envelope and the message headers are different things.
A domain may have several MX records with different priorities. An MX record directs incoming mail; it does not by itself list the servers allowed to send for the domain.
Who is sending the message?
Alex sees “Camille” and camille@atelier.example. These come from the From field. A display name can be chosen freely and is not enough to identify a person.
The transport envelope also carries a return address, used in particular for failure notices. Return-Path usually records it at final delivery. It may differ from the address shown to the reader.
Reply-To suggests an address for replies. A different address can be legitimate, for example for a support team, but it is worth understanding before you reply.
- Displayed sender · From
- Camille <camille@atelier.example>
- Return address · envelope
- suivi@rebonds.atelier.example
- Reply address · Reply-To
- accueil@atelier.example
A closer look
Sender, when present, identifies the agent responsible for transmitting the message. To and Cc belong to the message; SMTP envelope recipients can differ, particularly for blind copies.
SPF normally checks the MAIL FROM domain. DMARC starts with the visible From domain. Keeping them separate helps explain the difference between permission to send and authentication of the displayed domain.
SPF, DKIM and DMARC
These mechanisms check different aspects of a message. SPF checks permission to send, DKIM checks a signature, and DMARC relates those results to the displayed sender’s domain.
SPF: is this server allowed to send?
A domain owner publishes a DNS policy identifying servers allowed to use the domain for sending. The receiver compares the connecting server’s IP address with that policy.
In our example, the envelope domain is rebonds.atelier.example. Its SPF policy is used even though Alex sees camille@atelier.example.
SPF does not sign the message content. It checks permission for the server and domain being examined. DMARC then considers the relationship to the displayed domain.
- Server IP address
- Envelope domain’s DNS policy
- SPF authorization
An example explained
v=spf1 ip4:192.0.2.10 -allThis illustrative policy authorizes 192.0.2.10. -all indicates failure for other addresses. A real policy must account for every service that sends for the domain.
Understanding the result
pass- The IP is authorized for the checked domain.
fail- The policy says this IP is not authorized.
softfail- The policy suggests that the IP is probably unauthorized, with a less definite statement than fail.
neutral / none- The domain expresses no opinion, or no SPF policy was found. Neither result is a pass.
temperror / permerror- A temporary problem prevents the check, or the policy has a persistent problem such as invalid syntax or a DNS lookup limit.
A closer look
SPF is published as a TXT record. ip4 and ip6 identify addresses or networks; include evaluates another domain’s policy. Multiple separate SPF policies at the same name cause an error.
The limit of ten concerns mechanisms and modifiers that cause certain DNS lookups, including nested evaluations. It is not a limit of ten authorized IP addresses.
With an empty return address, as used for some failure notices, SPF uses the HELO/EHLO identity according to the protocol. Forwarding can change the connecting IP and cause SPF failure: see forwarding.
DKIM: is the message signature valid?
A sending service can add a digital signature. The receiver retrieves the corresponding public key from DNS and checks the signature.
A valid signature associates the message with a signing domain and verifies the parts it covers. In our example, that domain could be atelier.example.
The signing domain can differ from the displayed sender’s domain. A provider may sign with its own domain; DMARC then checks their relationship.
- Signed message
- Public key in DNS
- DKIM verification
Finding the important fields
DKIM-Signature: v=1; a=rsa-sha256;
d=atelier.example; s=courrier2026; …d= is the signing domain. s= is the selector, used to look up courrier2026._domainkey.atelier.example. This signature is deliberately shortened.
Understanding the result
pass- The examined signature is valid for the elements it covers.
fail- The signature could not be validated. Signed content may have changed, or the signature may be incorrect.
none- No DKIM signature was found.
- Verification error
- A missing key or a DNS problem may prevent verification. The technical details help distinguish the causes.
Tools may use different labels. “Pending” means the check has not finished.
A closer look
The signature includes a body hash (bh=), the signed header list (h=) and the cryptographic signature (b=). Canonicalization specifies how some formatting differences are normalized before calculation.
DKIM does not necessarily cover every header or, in all cases, the entire body. A pass does not prove that every byte is unchanged. DKIM does not encrypt the content.
A message can have several signatures, for example from an organization and its provider. One invalid signature does not automatically cancel another valid, DMARC-aligned signature.
DMARC: do the results match the displayed domain?
DMARC starts with the domain in the visible From address. It looks for a successful SPF or DKIM check whose domain has the required relationship to that domain. This is called alignment.
At least one of those two paths must pass and be aligned. A positive SPF or DKIM result for an unrelated domain is not enough.
The owner can also publish a policy for handling failures and request reports. The receiving service considers this alongside its own rules.
- From domain
- SPF passes and aligns OR DKIM passes and aligns
- DMARC result
Alignment in our message
The displayed domain is atelier.example. A valid DKIM signature with d=atelier.example aligns; one with d=prestataire.example does not. With relaxed alignment, rebonds.atelier.example can align with atelier.example. Strict alignment requires identical domains.
Understanding the result
pass- At least one SPF or DKIM path passed with the required alignment.
fail- Neither path supplied the aligned pass required.
- No policy / error
- No usable policy and an unfinished verification must be distinguished from a pass or fail.
YOPmail may show an internal assessment when no DMARC policy is published. This is the service’s assessment, not a policy set by the domain owner.
A closer look
The policy is published as TXT under _dmarc. p=none requests monitoring; p=quarantine expresses a preference for setting failures aside; p=reject expresses a preference for rejection. Receivers need not make identical decisions.
aspf and adkim set SPF and DKIM alignment: r for relaxed, s for strict. rua identifies destinations for aggregate reports, subject to report authorization rules.
RFC 9989 renewed the DMARC specification in 2026. Some deployed tools still follow RFC 7489. DNS discovery and some parameters differ; implementations do not all apply the same version yet.
Try a few situations
Choose an illustrative scenario to follow the DMARC decision. No real message or domain is analyzed.
Direct delivery
SPF passes and aligns. DKIM also passes for atelier.example. Both paths work, so DMARC passes.
Forwarded, signature preserved
Forwarding causes SPF to fail in this scenario. DKIM remains valid and aligned, which is enough for DMARC to pass.
Another domain’s signature
SPF fails. DKIM passes for prestataire.example, without alignment to atelier.example. Neither path works, so DMARC fails.
Modified message, SPF fails
SPF fails and a change to signed parts invalidates DKIM. No aligned path passes, so DMARC fails. This alone does not establish fraud.
Delivery, delays and forwarding
A message can wait before a server accepts it. Outages, a busy server, rate limits or temporary checks may delay delivery. First look for any notice from your sending service.
SMTP 4xx replies indicate temporary failure; the sender may retry according to its policy. 5xx replies indicate permanent failure for that attempt; a correction is usually needed before resending.
Success after the message transfer means that the server accepted responsibility. It proves neither reading nor placement in the primary inbox. Authentication alone does not guarantee delivery.
- An attemptThe sending server contacts the destination.
- A possible waitA temporary reply may lead to another attempt.
- An outcomeAcceptance, rejection, or abandonment after the configured retries.
A closer look
A three-digit SMTP code often comes with text and an enhanced code such as 5.1.1. Read them together: one general code can cover several situations.
Filtering may consider IP and domain reputation, complaints, content, volume and sending patterns. Reverse DNS (PTR) associates an IP with a name; it is connection information, not proof of a person’s identity.
Provider requirements change. Consult the provider’s current guidance and check its date and scope.
What forwarding changes
Forwarding adds an intermediary. The final receiver sees its IP, which can break SPF for the original domain. DKIM may survive if the signed elements are preserved.
A mailing list may add a footer or change the subject. Depending on the signature and the modification, DKIM may fail even for a legitimate message.
ARC lets intermediaries attach authentication results in a sealed chain. Receivers can use them according to their trust in those intermediaries. ARC does not repair DKIM signatures or guarantee acceptance.
A look inside the message
An email has headers and a body. Headers describe addresses, dates, subject and transport information. MIME lets the body contain several parts.
The same letter may be offered as plain text and HTML. HTML provides formatting; plain text provides another representation. Attachments and embedded images can accompany the letter.
- Letter · multipart/alternative
- Plain-text version · text/plain
- Formatted version · text/html
- Attachment · appointment.pdf
Reading a few headers
- Received
- Servers add transit records, usually read from bottom to top to follow the route. Records before the service’s trust boundary may be fabricated.
- Authentication-Results
- A system records its checks here. Identify which system added them: a line in the source is not automatically trustworthy.
- Message-ID
- A message identifier, useful for linking replies. Its presence does not prove the sender’s identity.
- Date
- The author’s declared date. It can differ from arrival time because of time zones or clocks.
A closer look
Content-Type identifies each part. A boundary separates multipart sections. Content-Disposition can suggest inline display or an attachment.
Base64 and quoted-printable are transport encodings, not encryption. Remote images require a request to another server; an image referenced with cid: may be included in the message.
In YOPmail, HTML, Text, Headers and Source show different representations. The SMTP conversation describes receipt; MIME headers belong to the message itself.
Authentication and security
Successful authentication tells you about domain use. An attacker-controlled domain can also publish SPF, sign with DKIM and pass DMARC. Still examine the content, links and requests.
Check the full address and the domain in a link before acting on an unusual request. If unsure, reach the service through a known route or contact the person another way.
Authenticate
SPF, DKIM and DMARC provide evidence about domains and sending.
Protect a connection
TLS encrypts a connection, which does not describe protection across the whole route.
Encrypt the message
End-to-end encryption, with compatible tools such as OpenPGP or S/MIME, protects content for its recipients.
A closer look
Signing and encryption serve different purposes. DKIM does not hide content. TLS does not make a public inbox private or establish that the author is well-intentioned.
MTA-STS and DANE can strengthen transport between compatible servers. They concern transport; SPF, DKIM and DMARC concern domain authentication.
For sensitive content, the email service and key management matter. YOPmail inboxes are public: anyone who knows the inbox name can read its messages.
Encrypted transport: MTA-STS and DANE
STARTTLS lets servers encrypt their SMTP connection. MTA-STS and DANE help verify the destination and prevent some downgrades. Their application depends on the sender and the information published by the receiving domain.
These examples use the fictional domain destination.example. They explain the mechanisms, not the current configuration of any service.
MTA-STS: publish a receiving policy
A receiving domain publishes the servers allowed to receive its mail and the expected TLS conditions. A compatible sender retrieves this policy over HTTPS and caches it for the stated period.
In enforce mode, a sender applying the policy defers delivery when the conditions are not met, rather than proceeding with weaker protection. Persistent problems can eventually cause delivery failure.
- Policy notice in DNS
- Policy retrieved over HTTPS
- Verified SMTP connection
What does a policy look like?
The domain publishes a TXT record at _mta-sts.destination.example:
v=STSv1; id=20261130;
The policy file is served at this HTTPS address:
https://mta-sts.destination.example/.well-known/mta-sts.txt
version: STSv1
mode: enforce
mx: mx.destination.example
max_age: 86400
A closer look
mx identifies an allowed receiving server. max_age is the cache period in seconds. The TLS certificate must be valid and match the server name.
testing observes problems without enforcing the policy’s failures; none signals withdrawal. A cached policy may still apply until updated or expired.
Initial discovery is a limitation: an attacker who hides the DNS announcement before a policy is known may prevent discovery. A valid cached policy protects later exchanges while it remains valid.
DANE: publish a server association in DNS
SMTP DANE uses DNSSEC and TLSA records. DNSSEC authenticates DNS information and protects its integrity; it does not encrypt DNS queries.
The sender validates the DNSSEC chain used to find the destination, then the TLSA information associating the service with a certificate or key. It compares that information with the TLS connection.
A usable, DNSSEC-validated DANE association requires a compatible sender to enforce the expected protection. Validation failure is not equivalent to absence of DANE and must not simply authorize a weaker fallback.
- Destination validated with DNSSEC
- Validated TLSA association
- Matching certificate or key
Reading a TLSA record
For MX host mx.destination.example receiving SMTP on port 25, the record name is _25._tcp.mx.destination.example. Here is an illustrative value:
3 1 1 0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef
Here 3 selects a server certificate association, the first 1 selects its public key and the second 1 selects SHA-256. This fingerprint is fictional; a real record must match the expected key.
A closer look
TLSA records use the MX server’s service name, not automatically the domain after @. The discovery information needs an authenticated DNSSEC chain.
Publishing TLSA without DNSSEC validation is not enough for DANE protection. Authenticated absence and failed DNSSEC validation are different situations.
Coordinate TLSA records and cache lifetimes when changing certificates or keys. Depending on association type, DANE may trust the published key without requiring the same certification-authority chain as MTA-STS.
What these protections change
MTA-STS uses an HTTPS policy and conventional certificate authorities; DANE uses DNSSEC and TLSA. Both protect transport between compatible servers. They replace neither SPF, DKIM and DMARC nor end-to-end content encryption.
A protected connection does not guarantee a harmless message, primary-inbox placement or privacy after storage. Check configuration and support along each route.
TLS-RPT: understand transport problems
A domain can publish a TLS-RPT reporting destination. Compatible senders may report connection problems, including MTA-STS or DANE failures. Reports help identify certificate or policy mistakes; they do not enable encryption by themselves.
Sources: MTA-STS · RFC 8461, DANE SMTP · RFC 7672, TLSA · RFC 6698, TLS-RPT · RFC 8460.
Back to contentsCommon questions
Must SPF and DKIM both pass?
For DMARC, one aligned pass is enough. A provider can impose additional requirements on some senders.
Why can DKIM pass while DMARC fails?
The signature may belong to an unaligned domain. Check the SPF path too.
Does a red result mean fraud?
It identifies a problem with a check. Configuration mistakes, forwarding or legitimate changes can also explain it. Read the context and detail.
Can email delivery be guaranteed?
Authentication and good configuration improve sending conditions, but receiving services apply their own rules and failures remain possible.
Is a DNS test enough to verify a message?
It shows records published at that time. Message verification also needs reception context and, for DKIM, the signed message elements.
Useful terms
- DNS
- The distributed directory publishing domain information.
- Domain
- The part after @ in an email address, such as atelier.example.
- MX
- A DNS record identifying an incoming mail server.
- SMTP
- The protocol used to transmit email between systems.
- Envelope
- SMTP transport information, separate from message content.
- Alignment
- The relationship DMARC requires between the displayed domain and the domain authenticated by SPF or DKIM.
- DKIM selector
- The name used to locate a signer’s public key in DNS.
- Deliverability
- The ability of mail to reach its recipients under the expected conditions.
- MIME
- The format organizing content types and message parts.
- Phishing
- Deception intended to obtain something such as a password or payment.
Sources and updates
This guide uses original explanations and examples. These official documents provide the protocol details. Last checked: 30 November 2026.
- SMTP · RFC 5321
- IMF · RFC 5322
- SPF · RFC 7208
- DKIM · RFC 6376
- DKIM · RFC 8301
- DKIM · RFC 8463
- DMARC (2026) · RFC 9989
- DMARC (2015) · RFC 7489
- ARC · RFC 8617
- MIME · RFC 2045
- MIME · RFC 2046
- Authentication-Results · RFC 8601
- OpenPGP / S/MIME · RFC 9787
- MTA-STS · RFC 8461
- DANE SMTP · RFC 7672
- TLSA · RFC 6698
- TLS-RPT · RFC 8460