Documentation
Feedback
Guides
API Reference

Guides
Message Center
Setting up the SPF
Setting up the SPF

The SPF (Sender Policy Framework) is a standard that specifies how to prevent unauthorized servers from sending emails on behalf of your domain. This framework implements rules that verify if the server has a particular policy set up by the domain’s admin.

Editing the SPF

To understand SPF syntax, we recommend reading SPF Record Syntax.

VTEX uses include:amazonses.com, Amazon's transactional email sending service, used in the default sender of Message Center.

Here is an example of an SPF on VTEX:


_10
v=spf1 include:server.com include:amazonses.com ~all

All include mechanisms should be set up to add a new SPF. See the example below to understand how to add include:amazonses.com if there is already another include mechanism:

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

The domain should only have one SPF entry including all the necessary rules, such as include mechanisms and others in SPF Record Syntax.

Verifying the SPF

To verify the SPF entries on your domain, we recommend using the DIG tool. Follow the steps below:

  1. On the DIG tool website, fill your root domain (e.g. vtex.com) in Hostnames or IP addresses.
  2. Select TXT as Type.
  3. Click on Dig.

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

Below, check 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
3
Photo of the contributor
Photo of the contributor
Photo of the contributor
+ 3 contributors
Was this helpful?
Yes
No
Suggest Edits (GitHub)
Contributors
3
Photo of the contributor
Photo of the contributor
Photo of the contributor
+ 3 contributors
On this page