3 June 2009
Google Apps for mail and using PHP mail()
We use Google Apps for our internal mail. Not sure why this never came up earlier, but with the server configuration we had, it was not allowing our server generated mail to be sent from PHP’s mail(). BKWLD is hosted by (MT) and their support provided this answer:
1. Turn mail off for the server from Plesk
2. Remove domain from your /var/qmail/control/rcpthosts file.
3. Remove domain from your /var/qmail/control/virtualdomains file. (This step wasn’t actually needed, but it is necessary if the domain exists in this file).
Hopefully will be of use to someone else, regardless of your host.
Update: Added the link Chris Parsons provided in the comments
Comments
Thanks a lot for this. Very helpful.
In Plesk 8.6, simply following step 1 was enough – Plesk processed steps 2 and 3 when turning of mail from the server.
http://kb.mediatemple.net/questions/904
Thank you! Veri helpful. But it’s was needed only 1st step in plesk 9.