How to Enable SPF for Sendgrid
To set up your SPF record with Sendgrid or edit your current SPF record to include Sendgrid, follow the steps below:
SendGrid uses an include mechanism during the set-up process. If you do not have an SPF record for your domain, you must create a TXT record with the following value:
v=spf1 include:sendgrid.net ~all
If you already have an SPF record for your domain, simply add the SendGrid include mechanism lookup into your existing record. For example:
v=spf1 include:_spf.google.com include:spf.protection.outlook.com include:sendgrid.net ~all
How to Enable DKIM for Sendgrid
To set up your DKIM record with Sendgrid or edit your current DKIM record to include Sendgrid, follow the steps below:
Whether you utilize a shared or dedicated IP, SendGrid automatically enables DKIM for all email to improve deliverability. To implement DKIM for the SendGrid platform, follow these steps:
- Publish two CNAME records for your custom domain at DNS host (Note: Sendgrid will provide these records to you).
-
Sendgrid records currently use the following format:
Host name: selector1._domainkey.<domain>
Points to address or value:selector1-<domainGUID>._domainkey.<initialDomain>
TTL: 3600
Host name: selector2._domainkey.<domain>
Points to address or value:selector2-<domainGUID>._domainkey.<initialDomain>
TTL: 3600
- Enable DKIM signing for your custom domain in SendGrid
An example of enabling DKIM signing for your custom domain is as follows: New-DkimSigningConfig -DomainName yourdomain.com -Enabled $true
Moreover, an example of a SendGrid DKIM record with automated security enabled looks like:
subdomain.yourdomain.com. | CNAME | uXXXXXXX.wlXXX.sendgrid.net
s1.domainkey.yourdomain.com. | CNAME | s1.domainkey.uXXX.wlXXX.sendgrid.net.
s2.domainkey.yourdomain.com. | CNAME | s2.domainkey.uXXX.wlXXX.sendgrid.net.
As a user of this outbound email provider, SendGrid customers are afforded DKIM signing because it supports this mechanism. By utilizing SendGrid’s self-service portal, you can manually set up DKIM at your convenience via CNAME records mentioned above. Although this SendGrid product does not allow custom DKIM records to be implemented, it provides other beneficial components (e.g., DKIM signing, self-service set up with CNAME records) that result in a streamlined process.