---
title: "Format rekordu SPF: kompletny przewodnik po konfiguracji DNS | AutoSPF"
description: "Poznaj format rekordu SPF - wersję, mechanizmy, kwalifikatory i modyfikatory. Dowiedz się, jak zbudować rekord SPF TXT dla prawidłowego uwierzytelniania e-maili."
image: "https://autospf.com/images/og-default.png"
canonical: "https://autospf.com/pl/format-rekordu-spf/"
---

Pełne kompendium 

# Format rekordu SPF

Kompletny przewodnik po formacie rekordu Sender Policy Framework - mechanizmy, kwalifikatory, modyfikatory oraz przykłady z życia, takie jak [przykładowy rekord SPF](/pl/przyklad-rekordu-spf/), który można skopiować.

Zgodny z RFC 7208 

Struktura rekordu 

## Budowa rekordu SPF

`v=spf1 ip4:192.0.2.1 include:_spf.google.com -all` 

v=spf1

Wersja

ip4:192.0.2.1

Mechanizm

include:...

Mechanizm

\-all

Kwalifikator + reguła zbiorcza

Elementy składowe 

## Mechanizmy

Mechanizmy określają, które serwery są autoryzowane do wysyłania e-maili w imieniu Pana/Pani domeny, i występują we wszystkich [typach rekordów SPF](/blog/complete-guide-to-spf-record-types-6-variations-explained-simply/). Każdy mechanizm liczy się do limitu 10 zapytań DNS (z wyjątkiem `ip4`, `ip6` oraz `all`).

| Mechanizm | Przykład                    | Opis                                                                        | Zapytanie DNS? |
| --------- | --------------------------- | --------------------------------------------------------------------------- | -------------- |
| ip4       | ip4:192.0.2.0/24            | Autoryzuje konkretny adres IPv4 lub zakres CIDR                             | Nie            |
| ip6       | ip6:2001:db8::/32           | Autoryzuje konkretny adres lub zakres IPv6                                  | Nie            |
| a         | a                           | Autoryzuje adresy IP z rekordu A domeny                                     | Tak            |
| mx        | mx                          | Autoryzuje serwery pocztowe z rekordu MX domeny                             | Tak            |
| include   | include:\_spf.google.com    | Odwołuje się do rekordu SPF innej domeny                                    | Tak            |
| all       | \-all                       | Mechanizm zbiorczy - obejmuje wszystko, co nie zostało wcześniej dopasowane | Nie            |
| exists    | exists:%{i}.spf.example.com | Sprawdza, czy istnieje rekord DNS A (używany w makrach SPF)                 | Tak            |
| ptr       | ptr                         | Odwrotne zapytanie DNS (przestarzałe - nie używać)                          | Tak            |

Rodzaje działań 

## Kwalifikatory

Kwalifikatory są poprzedzane przed mechanizmami i wskazują serwerowi odbiorczemu, jakie działanie podjąć w przypadku dopasowania - jest to podstawa tego, [jak SPF chroni domenę](/blog/what-spf-records-are-and-how-they-protect-email-domains/). Jeśli nie podano kwalifikatora, domyślnie stosowany jest `+` (Pass).

+

### Pass

Akceptuje e-mail. Nadawca jest autoryzowany.

\-

### Fail

Odrzuca e-mail. Nadawca nie jest autoryzowany.

\~

### Soft Fail

Akceptuje, ale oznacza jako podejrzany. Używać podczas testów.

?

### Neutral

Brak rozstrzygnięcia. Traktuj tak, jakby nie było polityki SPF.

Opcje zaawansowane 

## Modyfikatory

### redirect=

Kieruje przetwarzanie SPF do rekordu SPF innej domeny. Całkowicie zastępuje politykę bieżącej domeny.

`v=spf1 redirect=_spf.example.com` 

### exp=

Udostępnia niestandardowy komunikat wyjaśniający, gdy weryfikacja SPF się nie powiedzie. Przydatne w diagnostyce.

`v=spf1 ... -all exp=explain._spf.example.com` 

Przykłady z życia 

## Typowe przykłady rekordów SPF

### Podstawowy - jeden adres IP

`v=spf1 ip4:192.0.2.1 -all` 

### Google Workspace + Pana/Pani serwer

`v=spf1 ip4:192.0.2.1 include:_spf.google.com -all` 

### Google + Microsoft 365

`v=spf1 include:_spf.google.com include:spf.protection.outlook.com -all` 

### Rekordy A + MX z miękkim odrzuceniem

`v=spf1 a mx include:_spf.google.com ~all` 

Zalecane praktyki 

## Najlepsze praktyki

- Nigdy nie używaj `+all` \- autoryzuje każdy serwer w internecie
- Utrzymuj liczbę zapytań DNS poniżej 10 - w razie potrzeby zastosuj SPF flattening
- Regularnie przeglądaj i aktualizuj rekord SPF przy zmianie dostawców poczty
- Testuj rekord po każdej zmianie za pomocą narzędzia SPF checker
- Unikaj przestarzałego mechanizmu `ptr`
- Preferuj `-all` (twarde odrzucenie) zamiast `~all` po zweryfikowaniu wszystkich źródeł wysyłki

## Nie zarządzaj rekordami SPF ręcznie

AutoSPF automatycznie spłaszcza i optymalizuje format Pana/Pani rekordu SPF. Konfiguracja zajmuje 60 sekund.

[Rozpocznij bezpłatny okres próbny→](https://subscriptions.zoho.com/subscribe/31162770c20bc42aba9c86185ed6106a6a2bba0f6b053217ad482bf477cf719e/smb%5F1)[Zobacz plany i cennik](/pl/cennik/)

Rated 5/5 on G2 · Trusted since 2018 

##  What Our Customers Say 

### "AutoSPF Flattens SPF Records Seamlessly & Keeps Changes Logged - I am quite pleased with the product"

> It does what it promises to do, and does it very well. I appreciate that it keeps a log of changes made, which prevents many mistakes. A client's SPF record would have way too many lookups, but AutoSPF makes that problem go away. The length of the SPF record is typically not the issue; it's the amount of lookups in the record that are. AutoSPF "flattens" the record, automatically expanding the defined lookups to IP addresses or ranges. And it auto-updates the record when the un-flattened lookups change. 

 PJ 

Peter J.

 President · Small-Business (50 or fewer emp.) 

### "Helped us go beyond capacity"

> AutoSPF did exactly as described, it helped us get past our 10 lookup limit. Afterwards, we hit another limit regarding overall capacity and when contacted, they quickly provided us with a new solution to eliminate capacity issues entirely going forward, so now we can add as many SPF records as needed. They also provided us with a personalized support video explaining their new method in its entirety using our instance as the example. 

 VU 

Verified User

 Financial Services · Mid-Market (51-1000 emp.) 

[Read our reviews on G2 ](https://www.g2.com/products/autospf/reviews)

```json
{"@context":"https://schema.org","@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138897474","name":"AutoSPF","url":"https://autospf.com","logo":{"@type":"ImageObject","url":"https://autospf.com/images/autospf-logo.png"},"description":"Automatic SPF flattening and email authentication management. Resolve SPF lookup limits, flatten SPF records, and maintain email deliverability across all your domains.","parentOrganization":{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138883901","name":"DuoCircle LLC","url":"https://www.duocircle.com","sameAs":["https://www.wikidata.org/wiki/Q138883901","https://www.crunchbase.com/organization/duocircle-llc","https://www.linkedin.com/company/duocircle","https://github.com/duocircle"],"subOrganization":[{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138898167","name":"DMARC Report","url":"https://dmarcreport.com"},{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138897474","name":"AutoSPF","url":"https://autospf.com"},{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138897912","name":"Phish Protection","url":"https://www.phishprotection.com"}]},"sameAs":["https://www.wikidata.org/wiki/Q138897474","https://www.linkedin.com/company/autospf","https://x.com/autospf01","https://www.facebook.com/autospf","https://github.com/duocircle","https://www.g2.com/products/autospf/reviews"],"aggregateRating":{"@type":"AggregateRating","ratingValue":"5.0","reviewCount":"21","bestRating":"5","worstRating":"1","url":"https://www.g2.com/products/autospf/reviews"},"contactPoint":{"@type":"ContactPoint","contactType":"customer support","url":"https://autospf.com/contact-us/"},"knowsAbout":["SPF Record Flattening","Sender Policy Framework","Email Authentication","DNS Management","DMARC","DKIM","Email Deliverability","SPF Lookup Limits"]}
```

```json
{"@context":"https://schema.org","@type":"WebSite","name":"AutoSPF","url":"https://autospf.com","description":"Automatic SPF flattening and email authentication management. Resolve SPF lookup limits, flatten SPF records, and maintain email deliverability across all your domains.","publisher":{"@type":"Organization","name":"AutoSPF","url":"https://autospf.com","logo":{"@type":"ImageObject","url":"https://autospf.com/images/autospf-logo.png"},"description":"Automatic SPF flattening and email authentication management. Resolve SPF lookup limits, flatten SPF records, and maintain email deliverability across all your domains.","parentOrganization":{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138883901","name":"DuoCircle LLC","url":"https://www.duocircle.com","sameAs":["https://www.wikidata.org/wiki/Q138883901","https://www.crunchbase.com/organization/duocircle-llc","https://www.linkedin.com/company/duocircle","https://github.com/duocircle"],"subOrganization":[{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138898167","name":"DMARC Report","url":"https://dmarcreport.com"},{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138897474","name":"AutoSPF","url":"https://autospf.com"},{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138897912","name":"Phish Protection","url":"https://www.phishprotection.com"}]}}}
```

```json
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://autospf.com/"},{"@type":"ListItem","position":2,"name":"Format rekordu SPF","item":"https://autospf.com/pl/format-rekordu-spf/"}]}
```

```json
{"@context":"https://schema.org","@type":"Product","name":"AutoSPF","url":"https://autospf.com","aggregateRating":{"@type":"AggregateRating","ratingValue":5,"reviewCount":21,"bestRating":5,"worstRating":1},"review":[{"@type":"Review","reviewRating":{"@type":"Rating","ratingValue":5,"bestRating":5},"author":{"@type":"Person","name":"Peter J.","jobTitle":"President"},"datePublished":"2026-03-10","reviewBody":"It does what it promises to do, and does it very well. I appreciate that it keeps a log of changes made, which prevents many mistakes. A client's SPF record would have way too many lookups, but AutoSPF makes that problem go away. The length of the SPF record is typically not the issue; it's the amount of lookups in the record that are. AutoSPF \"flattens\" the record, automatically expanding the defined lookups to IP addresses or ranges. And it auto-updates the record when the un-flattened lookups change.","name":"AutoSPF Flattens SPF Records Seamlessly & Keeps Changes Logged - I am quite pleased with the product","publisher":{"@type":"Organization","name":"G2","url":"https://www.g2.com"}},{"@type":"Review","reviewRating":{"@type":"Rating","ratingValue":5,"bestRating":5},"author":{"@type":"Person","name":"Verified User","jobTitle":"Financial Services"},"datePublished":"2025-07-31","reviewBody":"AutoSPF did exactly as described, it helped us get past our 10 lookup limit. Afterwards, we hit another limit regarding overall capacity and when contacted, they quickly provided us with a new solution to eliminate capacity issues entirely going forward, so now we can add as many SPF records as needed. They also provided us with a personalized support video explaining their new method in its entirety using our instance as the example.","name":"Helped us go beyond capacity","publisher":{"@type":"Organization","name":"G2","url":"https://www.g2.com"}}]}
```
