I've been reading a little about this and have found something called "sender policy framework" which looks like it will help with identifying mail correctly. Will this increase the chances of my sent mail not being marked as spam? Or will it simply increase the chances of spam sent with my domain in the headers being marked as spam?
Where can I find good practices on sending mail from a server?
One thing that is important is that I will be setting up google apps so that my client can use mail.example.com to get/send email. How can my server work correctly with these settings so that both mail sent from google apps and mail sent from the server (php code) are identified as authentic?