Identifier alignment forces the domains authenticated by SPF and DKIM to have a relationship to the “header From” domain. Email end users check the from the field in their email clients to tell where an email comes from, SPF doesn’t authenticate the field, neither does DKIM. This means “what you see might not be what’s been authenticated”. That’s why the identifier alignment mechanism is introduced in DMARC.
The header from the domain and mail from the domain are two different terms. At first, it seems to be the same thing but in reality, they are not. To know how DMARC alignment work, you should know the difference between these two terms. The difference in these terms could help the mail being rejected or allowed.
The header from the domain is an address contained in the From field of an email, which is visible to all email users. If the IP address which is sending email on the behalf of “envelope from” domain is not listed in that SPF record, then the message will fail SPF authentication.
Mail from domain address is also referred to as the Return-Path address, Envelope-Sender address, and the bounce address. which is not visible to the end-user and SPF check the domain in the Mail From address, not the header From address domain. Both addresses found at different location.
DMARC has two alignment modes: