To create an SPF record, you need to access your domainâs DNS settings. Add a new TXT record with the following format: v=spf1 include:_spf.yourdomain.com ~all Make sure to replace yourdomain.com with your actual domain name. This will authorize the mail servers listed in your SPF record to send emails on behalf of your domain.