

I am using the cPanel DNS cluster and the client is using my nameservers and also email from my server. No external email like Google.
At Cloudflare I even have the txt record there for the hostname like
Home / Email / Email Deliverability shows “Valid” for DKIM, SPF and REVERSE DNS (PTR)
SPF is set like
v=spf1 +mx +a +ip4: +include:relay.mailchannels.net ~all
intodns.com shows no errors for the domain.
https://www.mail-tester.com/spf-dkim-check shows
SPF check
1 SPF record found for the domain :
“v=spf1 +a +mx +ip4:<snipped IP> ~all”
MailChannels replied
For MailChannel’s Outbound service, SPF is very important and mandatory, in order to deliver the mails successfully through our system. Here, you have to update the MailChannels SPF record as follows. (Replace example.com with your own domain name)
Location Type Value
example.com TXT v=spf1 a mx include:relay.mailchannels.net ?all
Refer : https://mailchannels.zendesk.com/hc/…up-SPF-Records .
So to resolve the issue I went into DNS zone editor and manually updated the txt record with
v=spf1 +mx +a +ip4: +include:relay.mailchannels.net ~all
I changed it back and then reset DNS zone to see if it would change it back to
v=spf1 +mx +a +ip4: +include:relay.mailchannels.net ~all
but it didn’t, but that’s fine because it’s the MailChannels plugin that adds include:relay.mailchannels.net when enabling the plugin for the first time or when you create new accounts. The account was created 5 months ago and guess include:relay.mailchannels.net was added back then. Not sure why include:relay.mailchannels.net removed itself.
Anyway, so I went back to DNS Zone Editor and readded
v=spf1 +mx +a +ip4: +include:relay.mailchannels.net ~all
and sent a test email from the email account and it was received at the test Gmail account fine.
The thing is, include:relay.mailchannels.net is on lots of accounts and works fine, but missing for some accounts. I shouldn’t have to manually readd it for different domains. The MailChannels plugin should do it automatically.
So I said to MailChannels support
I can go in and manually correct it for a domain that is missing include:mailchannels.net but I should not have to. As per the setting in the cPanel MailChannels plugin
Automatically update domain SPF records when MailChannels Outbound Filtering is enabled or disabled, or when new accounts are added
The account was created 5 months ago and the include:mailchannels.net should have been added then. For some reason, it is not there. Fine. But I can’t go into all domains and manually correct it.
Is there a command I can run so MailChannels adds include:mailchannels.net automatically to domains that do not currently have it?
I could disable the checkbox for Enable Outbound Filtering click ‘Update’, enable the checkbox and click ‘Update’ again which may add the missing include:mailchannels.net but I don’t want to risk it causing even more issues i.e deleting/removing custom SPF used for clients who use 3rd party email service like Google which uses
“v=spf1 include:_spf.google.com ~all”