Suped

What is the DMARC 'aspf' tag for?

When you're setting up DMARC, you’ll encounter several different tags that make up your policy record. One of the most important, yet sometimes misunderstood, is the aspf tag. This tag plays a critical role in how receiving mail servers validate your emails using SPF (Sender Policy Framework).

At its core, DMARC relies on a concept called "identifier alignment". It isn't enough for an email to just pass SPF or DKIM authentication. For an email to be DMARC compliant, the domain used in the SPF or DKIM check must align with the domain seen by the user in the 'From:' address. The aspf tag specifically controls the alignment rules for SPF.

knowledge.progist.net logo
Progist Knowlegde Base says:
Visit website
ASPF stands for “Alignment SPF” ( Sender Policy Framework). This mechanism was introduced in DMARC to validate the Email authentication based on ...
Suped DMARC monitor
Free forever, no credit card required
Get started for free
Trusted by teams securing millions of inboxes
Company logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logo

Understanding the 'aspf' alignment modes

The aspf tag is optional, but if you include it in your DMARC record, you can set it to one of two values: r for relaxed or s for strict. If you don't specify the tag at all, the default value is relaxed. As SiteGround points out, these tags define the alignment mode, and understanding the difference is key to a successful DMARC implementation.

Strict alignment (aspf=s)

When you set your policy to strict, you are telling receivers that the domain in the From: header must exactly match the domain used for the SPF check. The domain used for SPF authentication comes from the 'Return-Path' address (also known as the envelope from or MAIL FROM).

For example, if an email has a From: address of support@suped.com, the 'Return-Path' domain must also be suped.com. If the 'Return-Path' was something like bounces.suped.com, it would fail strict alignment because the domains are not an exact match.

blog.101domain.com logo
The 101domain Blog says:
Visit website
DMARC offers two modes for SPF alignment: strict ( aspf=s ) which requires an exact domain match, and relaxed ( aspf=r ) which allows a parent/...

Relaxed alignment (aspf=r)

Relaxed alignment, the default setting, is more flexible. It only requires that the domains share the same organizational domain. This means subdomains are permitted.

Using the same example, if the From: address is support@suped.com, the 'Return-Path' could be bounces.suped.com and it would still pass alignment. This is because both domains share the same root, or organizational, domain: suped.com.

www.getvero.com logo
Vero says:
Visit website
aspf=r; – The aspf tag indicates the SPF identifier alignment portion of your DMARC policy. SPF identifier alignment basically means that an email's “From” and...

Which 'aspf' setting should you choose?

For the vast majority of senders, relaxed alignment (aspf=r) is the correct choice. Many legitimate third-party email services (like marketing platforms, help desks, and transactional email providers) send emails on your behalf using a subdomain for their 'Return-Path' address to process bounces. If you use a strict policy, emails from these services might fail DMARC alignment and could be rejected.

Here is a quick summary:

  • Use Relaxed Alignment (aspf=r): This is the default and recommended setting. It provides strong protection while remaining compatible with third-party senders who use subdomains.
  • Use Strict Alignment (aspf=s): This offers the highest level of security but should only be used if you are certain that all your sending services use your exact domain in the 'Return-Path'. This requires careful auditing of all your email streams.

In short, the aspf tag is a powerful tool for tightening your domain's email security. By understanding the difference between strict and relaxed alignment, you can configure your DMARC policy effectively, ensuring your legitimate emails are delivered while blocking fraudulent ones. Always start with relaxed alignment and only move to strict if you have a specific need and have verified it will not break your legitimate email flows.

Start improving your email deliverability today

Get started