Documentation
Feedback
Guides
API Reference

Guides
Message Center
Setting up the SPF

The SPF (Sender Policy Framework) is a system used to avoid not allowed servers to send emails on behalf of your domain. This system implements rules that verify if the server has a particular policy set up by the domain’s admin.

Check for more information on the Sender Policy Framework Introduction.

Editing the SPF

All includes should be set up to add a new SPF. Here is an example of an SPF on VTEX:


_10
v=spf1 a mx ip4:192.0.2.32/27 include:server.com include:amazonses.com -all

See the example below to understand the change:

Before


_10
v=spf1 include:websitewelcome.com include:_spf.google.com ~all

After


_10
v=spf1 include:websitewelcome.com include:_spf.google.com include:amazonses.com ~all

It should not exist duplicated entries, or even mixed with other values, to avoid possible validation errors.

Verifying the SPF

To verify the SPF entries on your domain, we recommend using the DIG tool. You can check the online version on the Dig web interface.

To consult the verification, you need to:

  1. Fill your domain in hostnames or IP addresses.
  2. Select TXT as Type.
  3. Click on Dig.

️ The modifications are impacted by the domain propagation time. This can take between 24 or 48 hours to reflect the changes.

Here is a consult example using the VTEX domain:

{"base64":"  ","img":{"width":1003,"height":345,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":123656,"url":"https://cdn.jsdelivr.net/gh/vtexdocs/dev-portal-content@main/images/setting-up-the-spf-0.png"}}

Contributors
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
Was this helpful?
Yes
No
Suggest edits (Github)
Contributors
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
On this page