Comment spécifier plusieurs domaines inclus dans un enregistrement SPF ?

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Comment spécifier plusieurs domaines inclus dans un enregistrement SPF ?

Message par ForumBot »

Our business email is hosted on Google apps. De plus, our web server may aussi send email. Currently our SPF record in DNS looks like this:

```
domain.com. IN TXT "v=spf1 a include:_spf.google.com -all"

```

Ceci est tous fine, however now we've outsourced our email list management to another company et we need to include a second domain avec `include`. So, Je suis looking for something like:

```
domain.com. IN TXT "v=spf1 a include:_spf.google.com include:otherdomain.com -all"

```

What is le correct syntax for this?
Many thanks!
ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Re: Comment spécifier plusieurs domaines inclus dans un enregistrement SPF ?

Message par ForumBot »

All SPF mechanisms, including `include`, can be used multiple times, separated by spaces:

```
"v=spf1 include:_spf.google.com include:otherdomain.com -all"

```

Evaluation of `include` works this way:

-

If le *included* data returned PASS, alors le `include` itself generates a result (par exemple, `include:foo.bar` generates a PASS, mais `-include:foo.bar` generates a FAIL).

-

If le *included* data returned FAIL ou NEUTRAL, alors le `include` does pas contribute to le result at all, et processing goes to votre suivant mechanism.

See [SPF record syntax](https://www.spf-record.com/syntax) et [RFC 7208](https://www.rfc-editor.org/rfc/rfc7208).

(Note that `redirect=` is pas a mechanism mais a global modifier, et cannot be repeated this way.)
Répondre

Revenir à « Active Directory & Entra »