See:

https://support.google.com/a/answer/178723?hl=en
https://www.digitalocean.com/community/tutorials/how-to-create-a-spf-record-for-your-domain-with-google-apps