We have a CMS system in which multiple customers run their websites from a single virtual machine. Pages generated by the CMS allow forms to be filled in, which trigger emails to be sent. I am having trouble working out how to properly configure SPF record(s) so that emails will not be flagged as spam. From what I can work out, if we are hosting three customer domains:
customer1.com
customer2.info
customer3.co.uk
All on a machine called my-cms-uk.com
Then I need to add an SPF record for all three customer domains and also my-cms-uk.com, which all specify the IP of my-cms-uk.com as being allowed to send emails for that domain? I am not sure whether I need to add an SPF for the machine's FDQN as well.
I have tried Googling but cannot find a clear explanation of setting up SPF for multiple domains. The SPF records I am trying with specify the IP of the host, e.g.
"v=spf1 ip4:111.22.33.444 mx ~all"
Just to confuse me more, I looked at the SMTP setup of emails sent by people using mailgun and aweber and they do not seem to have the SPF setup I was expecting. For example Cal Newport (calnewport.com) has an email list that uses aweber but calnewport.com does not have an SPF record allowing aweber as an email sender?