1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Manage DMARC records
This guide explains how to implement a DMARC policy for your email hosted by Infomaniak, an essential element to prevent potential delivery issues.
Preamble
- DMARC (Domain-based Message Authentication, Reporting, and Conformance) is an essential tool for enhancing email security and protecting your domain against fraud by verifying the authenticity of outgoing emails (through authentication mechanisms such as SPF and DKIM) and allowing you to define policies for handling unauthenticated emails.
- DMARC is used to specify to other mail providers what they should do when they reject an email due to incorrect or missing SPF or DKIM.
- To do this, domain owners can define DMARC policies, such as "reject", "quarantine" or "none", to specify how these "suspicious" emails should be handled. Example:
- An email is sent from anna@domain.xyz to victor@yahoogle.abc.
- The Mail Service of domain.xyz contains a DMARC configuration of type reject at 100%.
- The Mail Service of yahoogle.abc is well secured and proceeds with the SPF/DKIM/DMARC analysis of the mail arriving from domain.xyz.
- If this analysis results in a failure of the SPF or DKIM, then the Mail Service of yahoogle.abc will reject (and therefore delete) the message.
- It will send a report by email if a report address is specified in the DMARC of domain.xyz.
- These DMARC reports generated help you maintain and improve the security of your domain; you will thus be able to identify any authentication errors and phishing attempts using your domain.
DMARC policy and acceptance percentage
For the instructions that can be given to recipient servers when a suspicious message is detected, 3 policies (p
= policy) exist and can be refined with a percentage (pct
):
none
With "p=none
", no email is rejected or quarantined based on DMARC verification. However, the percentage of reception can be used to collect data on unauthenticated emails, indicating how many of these emails should be subject to the DMARC policy. For example, "p=none; pct=10
" means that 10% of unauthenticated emails will be subject to the DMARC policy, while the remaining 90% will be accepted.
quarantine
With "p=quarantine
", unauthenticated emails may be placed in quarantine, but the reception percentage determines the proportion actually subject to this policy. For example, "p=quarantine; pct=50
" means that 50% of unauthenticated emails will be placed in quarantine, while the remaining 50% will be accepted.
reject
With "p=reject
", unauthenticated emails are rejected. The reception percentage determines the proportion of unauthenticated emails that will be effectively rejected. For example "p=reject; pct=20
" means that 20% of unauthenticated emails will be rejected, while the remaining 80% will be accepted.
Create a DMARC record
There are 2 ways to manage DMARC.
If you have a Mail Service with Infomaniak, the easiest way is to go to the Global Security tool to manage your DMARC security policy and reports:
But since the DMARC record is a type of DNS record, typically of type TXT, you can also manage it from the DNS zone of the domain name:
- Click here to access the management of your product on the Infomaniak Manager (need help?).
- Click directly on the name assigned to the relevant product.
- Click on DNS Zone in the left sidebar.
- Click the button to add a record:
- Click on the radio button DMARC to add a record.
- Click on the Next button:
- Leave (or add if necessary) the value
_dmarc
in the Source field. The Target field must contain the parameters you wish to use, separated by
;
:Tag Name But Example v Protocol version v=DMARC1
pct Percentage of messages subjected to filtering pct=20
ruf Report URI for forensic reports ruf=mailto:authfail@domain.xyz
rua Aggregate report URI rua=mailto:aggrep@domain.xyz
p Policy for the organizational domain p=quarantine
sp Policy for the subdomains of the organizational domain sp=reject
adkim Alignment mode for DKIM adkim=s
aspf Alignment mode for SPF aspf=r
This can result in for example
v=DMARC1;p=reject;pct=100;rua=mailto:postmaster@dmarcdomain.com
(source)- Leave the default value for the TTL.
- Click on the Save: button
Any DNS addition or modification can take up to 48 hours to propagate.