---
title: "How to improve email security with a DMARC record"
description: "Find out how DMARC works, and how to set it up for your email service"
url: https://docs.ovhcloud.com/en/guides/web-cloud/domains/dns-zone-dmarc
lang: en
lastUpdated: 2026-02-10
---
# How to improve email security with a DMARC record

## Objective

The **D**omain-based **M**essage **A**uthentication, **R**eporting, and **C**ompliance (DMARC) record is an email security mechanism. It is based on the results of the [SPF](/en/guides/web-cloud/domains/dns-zone-spf.md) and [DKIM](/en/guides/web-cloud/domains/dns-zone-dkim.md) checks.

**Find out how DMARC works, and how to set it up for your email service.**

:::warning
OVHcloud provides services for which you are responsible, with regard to their configuration and management. It is therefore your responsibility to ensure that they function correctly.

This tutorial is designed to assist you in common tasks as much as possible. Nevertheless, we recommend contacting a [specialist service provider](https://partner.ovhcloud.com/en-gb/directory/) if you experience any issues. OVHcloud cannot provide you with technical support in this regard.
You can find more information in the [Go further](#gofurther) section of this tutorial.

:::

## Requirements

- One of the authentication mechanisms, [SPF](/en/guides/web-cloud/domains/dns-zone-spf.md) and/or [DKIM](/en/guides/web-cloud/domains/dns-zone-dkim.md) must be configured in the DNS zone of the email solution domain name.


***

### OVHcloud Control Panel Access

- **Direct link:** <ManagerLink to="/#/web/zone">DNS zones</ManagerLink>
- **Navigation path:** <code className="action">Web Cloud</code> > <code className="action">DNS zones</code> > Select your domain name

***


## Instructions

The DMARC record allows the domain name holder to manage the security of emails sent with their domain name. Its purpose is to:

- Declare to the recipient server actions to be carried out in the event of failure of the SPF and/or DKIM authentication mechanisms.
- Get a better handle on how your domain name is used, and detect spoofing attempts using reports sent if email authentication fails. It also improves security by linking SPF and DKIM protocols.

The DMARC record contains policy information for malicious emails that attempt to spoof your domain name.

DMARC queries authentication mechanisms [SPF](/en/guides/web-cloud/domains/dns-zone-spf.md)
 and [DKIM](/en/guides/web-cloud/domains/dns-zone-dkim.md)
 to verify incoming emails.

The result of these SPF and/or DKIM checks is translated by DMARC into "actions to take" when an email fails the checks. These measures can include quarantining or rejecting the emails concerned.
### How does DMARC work? [](#)
To understand how DMARC works, here is an example.

When the **[contact@mydomain.ovh](mailto:contact@mydomain.ovh)** address sends an email to the destination address **[recipient@otherdomain.ovh](mailto:recipient@otherdomain.ovh)**, the receiving server for the destination domain name **otherdomain.ovh** will query the DNS zone for the sending domain name **mydomain.ovh** to read the instructions in the DMARC record.

The DMARC record communicates the policy based on the SPF and DKIM test results. They can also enter one or more email addresses (represented in our example by the address **[report@mydomain.ovh](mailto:report@mydomain.ovh)**) used to receive reports of email failures sent from the domain name **mydomain.ovh**.

After reading the instructions of the **mydomain.ovh** domain name DMARC record by the **“otherdomain.ovh”** receiving server, emails will either be delivered to the address **[recipient@otherdomain.ovh](mailto:recipient@otherdomain.ovh)**, or marked as "SPAM" or rejected.

![dmarc](/images/assets/schemas/emails/dns-dmarc-diagram.png)
### Configure DMARC

You must first enable DMARC on the email service associated with your domain name.

There are two ways to configure the DMARC in your OVHcloud DNS zone:

- Via a [DMARC record](#dmarc-record). This registration allows a simplified configuration of the DMARC. Simply fill in the fields with the DMARC settings required for your configuration. This record is read as a TXT record by DNS servers.
- Via a [TXT record](#txt-record). This standard record can be used as part of the DMARC configuration from the OVHcloud Control Panel. You can use it to integrate all of the DMARC settings tags, including those that are missing via the OVHcloud DMARC record. However, you will need to follow the syntax rules of the DMARC protocol.

#### DMARC record [](#)
You can add the DMARC record to your DNS zone from the OVHcloud Control Panel. To do this, log in to the OVHcloud Control Panel
, and click the `Web Cloud
` tab. In the left-hand column, select the domain name in the `Domain names
` section, then click on the `DNS zone
` tab to access your DNS zone.
Click on the `Add an entry
` button, then click on "Mail records" in `DMARC
`.
- **Sub-domain**: this entry must **start** with `_dmarc`. If you are applying your DMARC to the entire domain, do not enter anything other than `_dmarc` in this box. If you are defining your DMARC to a subdomain of your primary domain, add your subdomain after `_dmarc`. For example, if you need to apply the DMARC to a subdomain _subdomain.mydomain.ovh_, you will need to enter `_dmarc.subdomain` in the “subdomain” box for the _mydomain.ovh_ domain name.

Below is a full description of the tags used for the OVHcloud **DMARC record**:

- **Version (v=)**: Mandatory field determining the version of the DMARC protocol.

- **Domain rule (p=)**: Policy to be adopted by the recipient at the request of the holder of the sending domain. The policy applies to the queried domain and subdomains unless the **sp=** subdomain tag specifies different instructions. Possible values are:
  - _none_: The domain holder does not request any specific action regarding message delivery.
  - _quarantine_: If the DMARC verification fails, the recipients must treat the emails as suspicious. Depending on the capabilities of the recipient server, this may mean "put in the spam folder" and/or "report as suspicious".
  - _reject_: Rejects emails that fail the DMARC verification.

:::warning
Configuring the `p=` parameter can have a significant impact on the deliverability of your domain name’s emails. It is recommended that you configure `p=none` and perform a failure report analysis for several weeks, in order to resolve any anomalies. Switching to `p=quarantine` or `p=reject` requires full control of the email security settings, concerning [SPF](/en/guides/web-cloud/domains/dns-zone-spf.md) and [DKIM](/en/guides/web-cloud/domains/dns-zone-dkim.md). The use of the `pct=` factor, shown below, allows for a gradual transition.

:::

- **Percentage of messages filtered (pct=)** (value between 0 and 100, default is 100): The percentage of the message flow to which the DMARC policy should be applied. The purpose of the "pct" tag is to enable domain name holders to adopt a slow implementation of the DMARC mechanism.

- **Global Reporting URI (rua=)**: Addresses to which reports should be sent (comma separated plain text list). Any valid URI can be specified. The "mailto:" comment must precede the email recipient (e.g. `mailto:address@example.com`).

- **Rule for sub-domains (sp=)**: The policy to be adopted by the recipient for all sub-domains. It only applies to the sub-domains of the domain being queried, and not to the domain itself. Its syntax is identical to that of the "p" tag defined above. If this tag is not present, the policy specified by the "p" tag is applied to the subdomains.

- **Alignment mode for SPF (aspf=)** (default is `r`): Specifies the SPF alignment mode. The values are as follows:
  - `r` for relaxed mode: Emails that fail SPF authentication are marked as "unwanted" by the recipient server.
  - `s` for strict mode: Emails that fail SPF authentication are rejected by the recipient server.

:::info
In the context of the SPF and DKIM authentication mechanisms, **alignment** refers to the correspondence between the domain name (and/or the domain signature) used when sending **and** the domain name registered in these mechanisms.

**Examples**

- **Aligned**: When the address _[john.smith@mydomain.ovh](mailto:john.smith@mydomain.ovh)_ transmits a message from the email service attached to the domain name _mydomain.ovh_ and the SPF and DKIM authentication mechanisms have been configured, an aligned result is obtained.
- **Partially aligned**: When the address _[john.smith@subdomain.mydomain.ovh](mailto:john.smith@subdomain.mydomain.ovh)_ transmits a message from the email service attached to the domain name _mydomain.ovh_, but the SPF and DKIM authentication mechanisms have been configured only on the primary domain (i.e. _mydomain.ovh_), a partially aligned result is obtained.
- **Authentication failed**: the sender attempts to send an email as _[john.smith@mydomain.ovh](mailto:john.smith@mydomain.ovh)_ via another address (such as _[robert@example.com](mailto:robert@example.com)_) or using an email service that is not listed in the SPF. In this case, the SPF and DKIM authentication mechanisms return a failure as a result.

:::

![dmarc](/images/assets/screens/control-panel/product-selection/web-cloud/domain-dns/dns-zone/dns-dmarc-01.png)
#### TXT record [](#)
You can add the TXT record to your DNS zone from the OVHcloud Control Panel
. Click the `Web Cloud
` tab, go to `Domain names
`, then choose the domain name concerned. Go to the `DNS zones
` tab.
Once you have viewed your DNS zone, click on the `Add a record
` button, then click on "Extended fields" in `TXT
`.
- **Sub-domain**: this entry must **start** `with _dmarc`. If you are applying your DMARC to the entire domain, do not enter anything other than `_dmarc` in this box. If you are defining your DMARC to a subdomain of your primary domain, add your subdomain after `_dmarc`. For example, if you need to apply the DMARC to a subdomain _subdomain.mydomain.ovh_, you will need to enter `_dmarc.subdomain` in the “subdomain” box for the _mydomain.ovh domain name_

The following is a list of tags used to create a **TXT record** with DMARC settings. This list is complementary to the tags mentioned in the previous [DMARC record](#dmarc-record) section.

- **adkim** (default is `r`): Specifies the DKIM alignment mode. The values are as follows:
  - `r` for relaxed mode: Emails that fail DKIM authentication are marked as "unwanted" by the recipient server.
  - `s` for strict mode: Emails that fail DKIM authentication are rejected by the recipient server.

- **ruf** (a comma-separated list in plain text): Addresses to which message-specific failure information should be reported. If this tag is present, the holder of the sending domain will ask recipients to send detailed failure reports about emails that specifically fail the DMARC assessment (see `fo` tag below). The format of the message to be generated must follow the format specified for the `rf` tag. The "mailto:" comment must precede the email recipient (e.g. `mailto:address@example.com`).

- **fo** (Plain text, default is `0`): Detailed failure report options. Report generators can choose to comply with the requested options. The contents of this tag should be ignored if a `ruf` tag (above) is not also specified. The value of this tag is a colon-separated (`:`) list of characters that indicate the following failure report options:
  - **0**: Generates a DMARC failure report if all authentication mechanisms (DKIM **AND** SPF) fail to produce an aligned pass result.
  - **1**: Generates a DMARC failure report if an authentication mechanism (DKIM **OR** SPF) produces something other than a aligned "success" result.
  - **d**: Generates a DKIM failure report if the DKIM authentication mechanism fails, regardless of its alignment.
  - **s**: Generates an SPF failure report if the SPF authentication mechanism fails, regardless of its alignment.

- **rf** (comma-separated plain text values, the default value is `afrf`): This tag indicates the type of format expected for reports that provide specific details about message authentication failures. Currently, only `afrf` (Auth Failure Reporting Format) is supported.

- **ri** (an unsigned 32-bit integer in plain text, the default is 86400): The required interval, in seconds, between aggregated reports. This tag specifies how often email recipients should generate aggregated reports on the DMARC assessment results for the domain.

![dmarc](/images/assets/screens/control-panel/product-selection/web-cloud/domain-dns/dns-zone/dns-dmarc-02.png)
#### Records examples[](#)
:::warning
In our two examples, the parameter `p=` is used in its restrictive form to illustrate the behaviour of an email service in this case.

Configuring the `p=` parameter can have a significant impact on the deliverability of your domain name’s emails. It is recommended that you configure `p=none` and perform a failure report analysis for several weeks, in order to resolve any anomalies. Switching to `p=quarantine` or `p=reject` requires full control of the email security settings, concerning [SPF](/en/guides/web-cloud/domains/dns-zone-spf.md) and [DKIM](/en/guides/web-cloud/domains/dns-zone-dkim.md). The use of the `pct=` factor, shown below, allows for a gradual transition.

:::

##### First example

To illustrate this first example, we used the [DMARC record](#dmarc-record) in the DNS zone and applied the following settings to it:

![dmarc](/images/assets/screens/control-panel/product-selection/web-cloud/domain-dns/dns-zone/dns-dmarc-03.png)
The result is:

```
"v=DMARC1;p=quarantine;pct=100;rua=mailto:report@mydomain.ovh;aspf=s;"
```

- All sent emails (**pct=100**) are processed by the SPF and/or DKIM authentication mechanisms.
- Emails that fail the SPF test are automatically rejected because "**aspf=s**" (SPF mechanism in strict mode).
- An error report on the SPF and/or DKIM authentication mechanisms failure is sent to the address `report@mydomain.ovh` (**rua=mailto:[report@mydomain.ovh](mailto:report@mydomain.ovh)**).

##### Second example

For this second example, we used a [TXT record](#txt-record) to use tags that are not available through the simplified [DMARC record](#dmarc-record).

![dmarc](/images/assets/screens/control-panel/product-selection/web-cloud/domain-dns/dns-zone/dns-dmarc-04.png)
The result is:

```
"v=DMARC1; p=quarantine; pct=100; ruf=mailto:report@mydomain.ovh; fo=0; adkim=r; aspf=s; adkim=r; ri=86400"
```

- **p=quarantine**: Emails that do not pass the DMARC tests are treated as “suspicious”.

- **pct=100**: The DMARC policy applies to 100% of the emails sent from the domain holder’s email stream.

- **ruf=mailto:[report@mydomain.ovh](mailto:report@mydomain.ovh)**: Email address to which detailed failure reports should be sent via the "mailto" argument.

- **fo=0**: Options for generating failure reports. A "0" value indicates that DMARC failure reports should be generated only if the SPF and DKIM authentication mechanisms fail to produce a pass-aligned result.

- **adkim=r**: The DKIM ID alignment mode required by the domain holder is "relaxed" (flexible mode). In this mode, DKIM must provide a valid signature and the identifier of the "From" header can be partially aligned.

- **aspf=s**: The SPF identifier alignment mode required is "strict". This means that the SPF identifier of the aligned domain must exactly match the sending IP address of the message.

- **adkim=r**: The DKIM ID alignment mode required by the domain holder is "relaxed". In this mode, DKIM must provide a valid signature and the "From" header identifier can be partially aligned.

- **ri=86400**: Sets the requested interval between aggregated reports, in seconds. In this case, an aggregated report must be generated at least once every 86400 seconds (i.e. once per day).

## Go further [](#)
For specialised services (SEO, development, etc.), contact [OVHcloud partners](https://partner.ovhcloud.com/en-gb/directory/).

If you would like assistance using and configuring your OVHcloud solutions, please refer to our [support offers](https://www.ovhcloud.com/en-gb/support-levels/).

Join our [community of users](https://community.ovhcloud.com/).
