What’s in this Guide? #
- Adding an SPF Includes for:
- G Suite
- Office 365
- Mailchimp
- SendGrid
- Adding an IP to an SPF Record
- Adding an SPF Include
Introduction #
If you’re using StackCP’s mail server but want to route emails via another provider, such as G Suite, Office 365, or Mailchimp, you may need to add a secondary sending server source to the SPF record. This guide will walk you through the process, ensuring your emails are correctly authenticated and delivered.
Adding an SPF Include #
To add a secondary sending server source to the SPF record, you need to specify multiple includes within the TXT record in Manage DNS. Each include is separated by a space, and if any one include should fail, the SPF mechanism will move on to the next one. Below are some common providers you may need to add to your SPF record.
StackCP’s Default SPF Record #
The default SPF record for StackCP is:
v=spf1 include:spf.stackmail.com a mx -all
To include a secondary include, you can edit the record as follows:
G Suite: #
v=spf1 include:_spf.google.com include:spf.stackmail.com a mx -all
Office 365 #
v=spf1 include:spf.protection.outlook.com include:spf.stackmail.com a mx -all
Mailchimp #
v=spf1 include:servers.mcsv.net include:spf.stackmail.com a mx -all
SendGrid #
v=spf1 include:sendgrid.net include:spf.stackmail.com a mx -all
Adding an IP Address to an SPF Record #
To add an IPv4 address to an SPF record, simply add ip4: followed by your IP address. For example:
v=spf1 ip4:167.XX.XXX.40 include:spf.stackmail.com a mx -all
To add more than one IP address, include ip4: twice with the respective IP addresses:
v=spf1 ip4:167.XX.XXX.40 ip4:123.XX.XXX.45 include:spf.stackmail.com a mx -all
Conclusion #
By following these simple steps, you can ensure that your emails are routed correctly and authenticated, regardless of which email service provider you are using. Whether it’s G Suite, Office 365, Mailchimp, or SendGrid, adding an SPF include or IP address to your StackCP SPF record is straightforward and essential for maintaining email deliverability.