Seems like we're getting down to the nitty gritty, but please review the below report to ensure it reflects what you are looking for before I submit this to our developers.
Easy Switch to Google Apps
Background
By Google Apps, this request is referring to Google Apps for Domains. This is sometimes referred to in the forum thread as "Gmail" or "Google Mail." This is not in reference to @gmail.com or @googlemail.com addresses, but rather those who use Google Apps for Domains for their domains.
Summary
Add an icon to the cPanel interface where users can enter a screen to click a button to easily switch from using cPanel/WHM's mail services to using Google Apps. This icon should be available in Feature Manager since not all hosting providers desire to offer this functionality and some providers prefer to upsell customers to this functionality.
Multiple Domains
A user should be welcome to set one or more of their domains to use Google Apps and still use cPanel/WHM email functionality for other domains not setup to use Google Apps.
Google Apps XOR cPanel/WHM Mail Functionality
A single domain can be setup to use Google Apps or cPanel/WHM's email functionality. Once a domain is setup to use Google Apps, all cPanel/WHM-related mail functionality for that domain should be disabled/hidden.
What should this icon do to set an account to use Google Apps?
First, it must inform users that using this functionality requires a Google Apps account, which one can register at: Welcome to Google Apps
This icon should also handle the modification of the appropriate DNS entries automatically since many customers are unfamiliar with DNS editing and the cPanel interface is conducive to users not needing to be familiar with such technical details. Before applying these changes to MX records, a recipient verification callout should be performed to ensure mail is being handled properly, otherwise don't switch the account to Google Apps and inform the user why this failed. This editing of DNS entries includes the setting up of MX entires and the other non-MX entries required for Google Apps to function.
MX entries are as follows:
Code:
1 ASPMX.L.GOOGLE.COM
5 ALT1.ASPMX.L.GOOGLE.COM
5 ALT2.ASPMX.L.GOOGLE.COM
10 ASPMX2.GOOGLEMAIL.COM
10 ASPMX3.GOOGLEMAIL.COM
10 aspmx4.googlemail.com.
10 aspmx5.googlemail.com.
Be sure to include relevant SPF, DomainKeys etc. entries to reflect mail is being handled by Google Apps.
CName entries needed (assuming the domain in cPanel is example.com and the assigned CNAME assigned to the user is ghs.google.com) are as follows
Code:
mail.example.com. CNAME ghs.google.com.
webmail.example.com. CNAME ghs.google.com.
docs.example.com. CNAME ghs.google.com.
calendar.example.com. CNAME ghs.google.com.
This icon needs to also accept the CNAME the user is strongly encouraged to add for confirming ownership of the domain, supplied by Google. There is anecdotal evidence saying this step is not required if the MX entries are set, but this is not among the documented methods for confirming domain ownership: Verify domain ownership - Google Apps Help
[textbox to accept the jibberish from Google].[drop-down: domains on the cPanel account]. CNAME example.google.com.
Once the cPanel user switches to Google Apps, it is up to the cPanel user to manage all of their email via Google Apps.
Wishlist items
To completely eliminate confusion, when Google Apps is enabled, requests specifically to /webmail, example.com:2095 and example.com:2096 should redirect to webmail.example.com (which is setup to point to the Google Apps servers, per above proposal). These should all be restored to regular cPanel/WHM functionality once Google Apps is disabled.
Vendor Non-Exclusivity
While Google Apps is a start, it is preferred that we be forward-thinking with this functionality and be able to easily accommodate other similar services as they become popular. Perhaps a simple plugin architecture should be made available for others looking to integrate their own third party mail hosting offerings into cPanel.