Google Apps split delivery to mail server that is cPanel & WHM

mrdigitalau

Member
Mar 2, 2015
5
3
53
cPanel Access Level
Root Administrator
Hi,

I am currently running CLOUDLINUX 6.6 x86_64 standard – mrdigitalhost WHM 11.48.1 (build 2)

I am currently hosting a client's website/emails on our server that requires split delivery of mail from Google Apps.

For example, my client wants 7 email addresses set up.

  • 2 E-mails to be routed to Google Apps
  • 5 to be on the server mail system using POP3

Firstly, I set up the MX records of the domain, let's call it bbb.com to point to Google Apps mail servers.
That's fine and works perfectly, the 2 e-mails I've set work perfectly.

I then set up E-mail Routing on Google apps to point to the mail server, lets call aaa.com, so essentially any email account that receives an email that doesn't have a Google Apps account, will be re-routed to aaa.com for delivery.

Now, I need to set up 5 email accounts on the server via CPANEL, which I easily set up.

Once this is done, I send an e-mail to an account set up on the CPANEL server but get this error:


Delivery to the following recipient failed permanently:

[email protected]

Technical details of permanent failure:
Google tried to deliver your message, but it was rejected by the server for the recipient domain mail.aaa.com by mail.aaa.com [103.13.XXX.XX].

Code:
The error that the other server returned was:
550-Please turn on SMTP Authentication in your mail client.
550-mail-ie0-f181.google.com [209.85.223.181]:40540 is not permitted to relay
550 through this server without authentication.

I called Google and they advised that once I install some SPF records, that shouldn't happen anymore. Well, I did that on both aaa.com and bbb.com and the problem still occurs, the same SMTP authentication error.

What I did as a test to ensure that after fixing this, it will work - is whitelist the google ip address to see what happens. Once I whitelisted the addresses, the below bounceback came up instead:

Code:
Delivery to the following recipient failed permanently:

     [email protected]

Technical details of permanent failure:
A delivery loop was detected which causes this email to be undeliverable.

I would love if someone could help me fix this issue. I have a few clients that want to migrate to Google Apps but do not want all of their accounts to go over.

I appreciate any assistance you can provide

Thanks
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello :)

There's no support for per-email-account MX records, so you would need to handle email activity (including email account creation) on the server where your email is hosted. You may want to submit a feature request for this via:

Submit A Feature Request

Thank you.
 

ropfer

Registered
Oct 22, 2015
2
0
1
Colorado
cPanel Access Level
Website Owner
Is this still not a supported feature? I also need to route unregistered google app emails (cPanel emails) to my host. Why can't cPanel be configured to accept relayed email from google? @mrdigitalau did you find any work around?

I want the benefits off Google Apps for my account, but don't want to pay $5/mo. for other email accounts.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
I also need to route unregistered google app emails (cPanel emails) to my host. Why can't cPanel be configured to accept relayed email from google?
It seems like this might be a different scenario compared to what the original poster reported. Could you provide a specific example of what you need configured?

Thank you.
 

Camilo Cifuentes

Registered
Oct 20, 2016
1
0
1
Colombia
cPanel Access Level
Root Administrator
Hello,

I have the same problem, basically the problem is configure the split delivery for Google Apps, some accounts in Google Apps and others in webmail (cpanel).

I have configured Google Apps based in the following guide: support.google.com/a/answer/173534?hl=en

Google MX added to Cpanel

I have talked with Google Apps Support team and they says that my Google Apps configuration is OK and send me this message:

Google Support Start ///////////

Please allow Google servers to rely on your server my.server.com

We have a split delivery in which emails sent to user that not exist in Google servers are routed to your server my.server.com; However, your server is bouncing our emails saying that we need to turn on authentication. We are compliant with SPF and DKIM already. Please, allow us to relay in your server, or let us know what we need to be able to relay on you.

Thanks.

Google Support End ///////////
When I send a mail from (webmail) to (Google apps), it’s OK

When I send a mail from (google apps) to (webmail), don’t work

This is the error message in WHM>> Mail Delivery Reports:

Code:
Please turn on SMTP Authentication in your mail client. mail-it0-f71.google.com [209.85.214.71]:36127 is not permitted to relay through this server without authentication.
Thanks for your help
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463