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 :)

link|improve this question
There is a service (maybe amavis) which is running on port 10027/tcp. I guess it should process this mail and return it to Postfix for sending to final destination. Check logs of that services. Please see/post also content of master.conf to find out which services it is. – sw0x2A Jul 28 '11 at 15:49
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.