I have a CentOS VPS with 1&1 which runs Postfix. I've got multiple domains on there, but for one of them I use Google Apps for mail management. However, when I send mail from PHP's mail() function, Postfix detects that the domain is local, and tries to handle the email locally rather than referring to the external DNS records.
I don't want to configure Postfix to connect to Google as an SMTP server, as other domains on the VPS should not use that Google Apps account.
I have reconfigured the DNS zone to use Google Apps DNS, but the mail still gets handled locally. Does anyone have any advice?
Thanks, Steve
Edit: I figured this out 15 minutes after I posted this. The solution was to go into Plesk, and change the mail settings on the domain. I simply unchecked "Activate mail service on domain". With that, plus changing the DNS settings on the server itself to match the domain's DNS (i.e. pointing to Google Apps), the mail came through perfectly.
Thanks for all good intentions you all had of helping. I appreciate it :)