MX Mail Routing Issue when sending emails Locally

dotcomtim

Member
Jan 20, 2010
11
0
51
I am having an issue with setting up Google APPs on the my server. I require that Google handles some emails while the server handles the rest. Based on what I read, I have all MX Records pointing to Google and over at Google route the emails that do not exist back to the server.

These settings work perfectly if I have the server set up as Local Mail Exchanger, if I set it up as Remote Mail Exchanger the emails being routed back by Google to be handled by the server no longer work.

So what is the issue? When in Local Mail Exchanger mode the server then does not recognize the email accounts set up over at Google - which means the emails are not being delivered when sent locally. If I change it to Remote the local emails work but the returned routing does not.

It looks like I got myself into a catch 22 which I can not get out of. Is there another setting I am missing?
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
43
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
cPanel will not support this type of setup with Google apps as far as I'm aware. You would have to use some type of router to detect whether the email account is on the machine or not, then route to Google when it is not locally for that domain's email. I would suggest posting on exim.org site mailing list to ask how this might be handled.
 

dotcomtim

Member
Jan 20, 2010
11
0
51
If I am the only person on the server - meaning one domain to manage and there are only 3 emails that the server would access to send emails locally - there is no work around?

Can you send email SMTP through PHP rather than using the mail function? or is that just the same scenario as above?
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
43
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
The only ones who will know a possible workaround would be on exim.org's mailing list. Please let us know the results after this has been discussed there. They are the experts on non-standard setups such as this one. Anytime someone here isn't able to assist due to the complexity of the request, exim.org responders on their mailing list almost always come up with a viable solution.
 

dotcomtim

Member
Jan 20, 2010
11
0
51
Thanks for the information - I have posted an email to the group and how to come up with a solution. Will post if there is one.