hmLoadTopic({
hmKeywords:"Documents,Google Drive,OAuth 2.0",
hmTitle:"Google Drive",
hmDescription:"This page is only available in the MDaemon Remote Administration (MDRA) web-interface.",
hmPrevLink:"wc--dropbox.html",
hmNextLink:"onedrive.html",
hmParentLink:"index.html",
hmBreadCrumbs:"Setup Menu &gt; Web &amp; IM Services &gt; Webmail",
hmTitlePath:"Setup Menu > Web & IM Services > Webmail > Google Drive",
hmHeader:"<h1 class=\"p_Heading1\" style=\"page-break-after: avoid;\"><span class=\"f_Heading1\">Google Drive<\/span><\/h1>\n\r",
hmBody:"<div style=\"text-align: left; text-indent: 0; padding: 0 0 0 0; margin: 0 3.0625rem 0.8750rem 3.0000rem;\"><table style=\"background-color:#ffffe6; border:solid thin #000000; border-spacing:0;\">\n\r<tr>\n\r<td style=\"vertical-align:top; width:3.1250rem; height:3.1250rem; padding:0.3125rem; border:none\"><p class=\"p_NoFormat\"><img style=\"margin:0;width:3.1250rem;height:3.1250rem;border:none\" src=\".\/images\/lightbulb_on_50_yback.gif\"\/><\/p>\n\r<\/td>\n\r<td style=\"vertical-align:top; width:64.3125rem; padding:0.3125rem; border:none\"><p class=\"p_Notes\"><span class=\"f_Notes\">This page is only available in the <a href=\"webadmin_web-config.html\" class=\"topiclink\">MDaemon Remote Administration<\/a> (MDRA) web-interface.<\/span><\/p>\n\r<\/td>\n\r<\/tr>\n\r<\/table>\n\r<\/div>\n\r<h2 class=\"p_Heading2\" style=\"page-break-after: avoid;\"><span class=\"f_Heading2\">Google Drive Integration<\/span><\/h2>\n\r<p class=\"p_BodyText\"><span class=\"f_BodyText\">MDaemon Webmail can present users with options to save message attachments directly to their Google Drive account, and to edit and work with documents stored there. In order to enable this, an <\/span><span class=\"f_BodyText\" style=\"font-weight: bold;\">API Key<\/span><span class=\"f_BodyText\">, <\/span><span class=\"f_BodyText\" style=\"font-weight: bold;\">Client ID<\/span><span class=\"f_BodyText\">, and <\/span><span class=\"f_BodyText\" style=\"font-weight: bold;\">Client Secret<\/span><span class=\"f_BodyText\"> are required. All are obtained directly from Google by creating an App using the Google API Console and registering your MDaemon with their service. An OAuth 2.0 authentication component is part of this app, which allows your Webmail users to sign-in to Webmail and then authorize access to their Google Drive account through MDaemon. Once authorized, users can view their folders and files that are in Google Drive. Further, they can upload, download, move, copy, rename, and delete files, as well as copy\/move files to and from the local document folders. If the user wants to edit a document, clicking the option to view the file in Google Drive will allow the user to make edits to it in accordance with their permissions set in Google Drive. The Google Drive setup process is similar to MDaemon\'s <a href=\"wc--dropbox.html\" class=\"topiclink\">Dropbox Integration<\/a> and <a href=\"multipop.html\" class=\"topiclink\">MultiPOP OAuth Integration<\/a> features.<\/span><\/p>\n\r<p class=\"p_ControlHeading\" style=\"page-break-after: avoid;\"><span class=\"f_ControlHeading\">Enable Google Drive Integration<\/span><\/p>\n\r<p class=\"p_ControlIndent\"><span class=\"f_ControlIndent\">Click this checkbox to enable Google Drive Integration. See:<\/span><span class=\"f_ControlIndent\"> <\/span><span class=\"f_ControlIndent\" style=\"font-weight: bold;\"><a href=\"google-drive.html#oauth-app-instructions\" class=\"topiclink\">Creating and Linking Your Google Drive App<\/a><\/span><span class=\"f_ControlIndent\"> below.<\/span><\/p>\n\r<p class=\"p_ControlHeading\" style=\"page-break-after: avoid;\"><span class=\"f_ControlHeading\">Google Drive API Key:<\/span><\/p>\n\r<p class=\"p_ControlIndent\"><span class=\"f_ControlIndent\">This is your unique API key that will be generated for you in the Google Drive API console while you are creating your app. copy and paste the key here.<\/span><\/p>\n\r<p class=\"p_ControlHeading\" style=\"page-break-after: avoid;\"><span class=\"f_ControlHeading\">Google Drive Client ID<\/span><\/p>\n\r<p class=\"p_ControlIndent\"><span class=\"f_ControlIndent\">This is the unique Client ID assigned to your Google Drive app when you create it in the Google API Console. After you create your app, copy its Client ID and paste it here.<\/span><\/p>\n\r<p class=\"p_ControlHeading\" style=\"page-break-after: avoid;\"><span class=\"f_ControlHeading\">Google Drive Client Secret<\/span><\/p>\n\r<p class=\"p_ControlIndent\"><span class=\"f_ControlIndent\">This is the unique Client Secret assigned to your Google Drive app when you create it in the Google API Console. After you create your app, copy its Client Secret and paste it here.<\/span><\/p>\n\r<p class=\"p_ControlHeading\" style=\"page-break-after: avoid;\"><span class=\"f_ControlHeading\">Redirect URI<\/span><\/p>\n\r<p class=\"p_ControlIndent\"><span class=\"f_ControlIndent\">You must specify one or more Redirect URIs when creating your Google Drive app. The sample Redirect URI is built from your <a href=\"domain-manager.html\" class=\"topiclink\">Default Domain\'s<\/a> <a href=\"domain-manager_host_name_ip.html\" class=\"topiclink\">SMTP host name<\/a>, which should work for that domain\'s users when signing in to Webmail. You should add additional Redirect URIs to your app for any additional MDaemon domains your users go to when signing in to Webmail. For example, &quot;<\/span><span class=\"f_PlainText\">https:\/\/mail.example.com\/WorldClient.dll?View=OAuth&amp;AuthRequest=GoogleDrive<\/span><span class=\"f_ControlIndent\">&quot; would work for any of your users who go to <\/span><span class=\"f_PlainText\">mail.example.com<\/span><span class=\"f_ControlIndent\"> when signing in to Webmail. See: <\/span><span class=\"f_ControlIndent\" style=\"font-weight: bold;\">Creating and Linking Your Google Drive App<\/span><span class=\"f_ControlIndent\"> below for more information.<\/span><\/p>\n\r<p class=\"p_ControlHeading\" style=\"page-break-after: avoid;\"><span class=\"f_ControlHeading\">Edit text of privacy policy<\/span><\/p>\n\r<p class=\"p_ControlIndent\"><span class=\"f_ControlIndent\">Google Drive integration requires that you periodically present a link to your users to an approved privacy policy. Click this button to edit your privacy policy.<\/span><\/p>\n\r<h2 class=\"p_Heading2\" style=\"page-break-after: avoid;\"><a id=\"oauth-app-instructions\" class=\"hmanchor\"><\/a><img id=\"toggle0186a1_ICON\" class=\"dropdown-toggle-icon\" alt=\"Creating and Linking Your Google Drive App\" title=\"Creating and Linking Your Google Drive App\" style=\"margin:0;width:0.5625rem;height:0.5625rem;border:none\" src=\".\/images\/hmtoggle_plus0.gif\"\/><span class=\"f_Heading2\"> <a id=\"toggle0186a1_LINK\" class=\"dropdown-toggle\" title=\"Creating and Linking Your Google Drive App\" href=\"javascript:void(0)\" data-type=\"dropdown\" data-state=\"0\" data-icon=\"toggle0186a1_ICON\" data-src0=\".\/images\/hmtoggle_plus0.gif\" data-src1=\".\/images\/hmtoggle_plus1.gif\">Creating and Linking Your Google Drive App<\/a><\/span><\/h2>\n\r<p class=\"p_BodyText\"><span class=\"f_BodyText\">Step-by-step instructions for creating your Google Drive app.<\/span><\/p>\n\r<div id=\"toggle0186a1\" class=\"dropdown-toggle-body\" style=\"text-align: left; text-indent: 0; line-height: 1.0; padding: 0 0 0 0; margin: 0 0 0 0;display:none\"><table style=\"border:none; border-spacing:0;\">\n\r<tr>\n\r<td style=\"vertical-align:top; padding:0.1250rem; border:none\"><p class=\"p_List1\"><span class=\"f_List1\">Follow the steps below to create a Google application to allow users to access their Google Drive within Webmail on the <\/span><span class=\"f_List1\" style=\"font-weight: bold;\">Documents<\/span><span class=\"f_List1\"> page.<\/span><\/p>\n\r<p class=\"p_List1\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">1.<\/span><span class=\"f_List1\">Sign in to <a href=\"webadmin_web-config.html\" class=\"topiclink\">MDaemon Remote Administration<\/a> and go to the Google Drive page (located under Main » Webmail Settings), and turn on the <\/span><span class=\"f_List1\" style=\"font-weight: bold;\">Enable Google Drive Integration<\/span><span class=\"f_List1\"> option.<\/span><\/p>\n\r<p class=\"p_List1\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">2.<\/span><span class=\"f_List1\">In a separate browser tab, sign in to your Google Account and go to the <a href=\"https:\/\/console.developers.google.com\/\" target=\"_blank\" class=\"weblink\" title=\"Google API console\">Google API console<\/a>.<\/span><\/p>\n\r<p class=\"p_List1\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">3.<\/span><span class=\"f_List1\">If on the Project List, click <\/span><span class=\"f_List1\" style=\"font-weight: bold;\">NEW PROJECT<\/span><span class=\"f_List1\">, or if on the <a href=\"https:\/\/console.cloud.google.com\/cloud-resource-manager\" target=\"_blank\" class=\"weblink\" title=\"Manage Resources page\">Manage Resources page<\/a>, click <\/span><span class=\"f_List1\" style=\"font-weight: bold;\">(+) CREATE PROJECT<\/span><span class=\"f_List1\">.<\/span><\/p>\n\r<p class=\"p_List1\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">4.<\/span><span class=\"f_List1\">Type a <\/span><span class=\"f_List1\" style=\"font-weight: bold;\">Project name,<\/span><span class=\"f_List1\"> such as &quot;Google Drive for MDaemon,&quot; then click <\/span><span class=\"f_List1\" style=\"font-weight: bold;\">Edit<\/span><span class=\"f_List1\"> if you wish to edit the Project ID, or leave it set to the default value. <\/span><span class=\"f_List1\" style=\"font-weight: bold;\">Note:<\/span><span class=\"f_List1\"> the Project ID cannot be changed after the project is created.<\/span><\/p>\n\r<p class=\"p_List1\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">5.<\/span><span class=\"f_List1\">If you have an <a href=\"https:\/\/cloud.google.com\/resource-manager\/docs\/creating-managing-organization\" target=\"_blank\" class=\"weblink\" title=\"Organization Resource\">Organization Resource<\/a>, choose it in <\/span><span class=\"f_List1\" style=\"font-weight: bold;\">Location<\/span><span class=\"f_List1\">. Otherwise, leave it set to &quot;No organization.&quot;<\/span><\/p>\n\r<p class=\"p_List1\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">6.<\/span><span class=\"f_List1\">Once loaded, click <\/span><span class=\"f_List1\" style=\"font-weight: bold;\">+ ENABLE APIS AND SERVICES<\/span><span class=\"f_List1\">. <\/span><\/p>\n\r<p class=\"p_List1\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">7.<\/span><span class=\"f_List1\">In the search field, type &quot;Google Drive&quot;, select <\/span><span class=\"f_List1\" style=\"font-weight: bold;\">Google Drive API<\/span><span class=\"f_List1\">, and click <\/span><span class=\"f_List1\" style=\"font-weight: bold;\">Enable<\/span><span class=\"f_List1\">.<\/span><\/p>\n\r<p class=\"p_List1\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">8.<\/span><span class=\"f_List1\">In the left pane, under <\/span><span class=\"f_List1\" style=\"font-weight: bold;\">APIs &amp; Services<\/span><span class=\"f_List1\">, click <\/span><span class=\"f_List1\" style=\"font-weight: bold;\">Credentials<\/span><span class=\"f_List1\">.<\/span><\/p>\n\r<p class=\"p_List1\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">9.<\/span><span class=\"f_List1\">Click <\/span><span class=\"f_List1\" style=\"font-weight: bold;\">+ Create Credentials<\/span><span class=\"f_List1\"> at the top of the page, and select <\/span><span class=\"f_List1\" style=\"font-weight: bold;\">API Key<\/span><span class=\"f_List1\"> in the drop-down menu.<\/span><\/p>\n\r<p class=\"p_List1\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">10.<\/span><span class=\"f_List1\">Copy <\/span><span class=\"f_List1\" style=\"font-weight: bold;\">Your API key<\/span><span class=\"f_List1\"> (there is a Copy to Clipboard icon beside it).<\/span><\/p>\n\r<p class=\"p_List1\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">11.<\/span><span class=\"f_List1\">Switch to your browser\'s MDaemon tab and paste it into the <\/span><span class=\"f_List1\" style=\"font-weight: bold;\">Google Drive API Key<\/span><span class=\"f_List1\"> field on the Google Drive page in MDaemon (or save it somewhere else if you wish to do that later).<\/span><\/p>\n\r<p class=\"p_List1\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">12.<\/span><span class=\"f_List1\">In the left pane, under <\/span><span class=\"f_List1\" style=\"font-weight: bold;\">APIs &amp; Services,<\/span><span class=\"f_List1\"> click <\/span><span class=\"f_List1\" style=\"font-weight: bold;\">OAuth consent screen<\/span><span class=\"f_List1\">.<\/span><\/p>\n\r<p class=\"p_List1\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">13.<\/span><span class=\"f_List1\">Under User Type, select <\/span><span class=\"f_List1\" style=\"font-weight: bold;\">External<\/span><span class=\"f_List1\">, and click <\/span><span class=\"f_List1\" style=\"font-weight: bold;\">Create<\/span><span class=\"f_List1\">. <\/span><span class=\"f_List1\" style=\"font-weight: bold;\">Note:<\/span><span class=\"f_List1\"> if you have an <a href=\"https:\/\/cloud.google.com\/resource-manager\/docs\/creating-managing-organization\" target=\"_blank\" class=\"weblink\" title=\"Organization Resource\">Organization Resource<\/a>, or depending on your app\'s Publishing Status, choosing Internal might be a better choice. See the <a href=\"google-drive.html#publishing-status\" class=\"topiclink\">Publishing Status<\/a> note below for more information.<\/span><\/p>\n\r<p class=\"p_List1\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">14.<\/span><span class=\"f_List1\">Enter the <\/span><span class=\"f_List1\" style=\"font-weight: bold;\">App name<\/span><span class=\"f_List1\"> (e.g. Google Drive for Webmail), a <\/span><span class=\"f_List1\" style=\"font-weight: bold;\">Support email address<\/span><span class=\"f_List1\"> for users to contact, and a <\/span><span class=\"f_List1\" style=\"font-weight: bold;\">Developer email address<\/span><span class=\"f_List1\"> for Google to contact about changes to your project. That is all that\'s required on this page for setup, but depending on your particular organization or verification requirements, you can also enter your company logo and links to your <a href=\"terms_of_use.html\" class=\"topiclink\">Terms of Service<\/a> and Privacy Policy (see above). The <\/span><span class=\"f_List1\" style=\"font-weight: bold;\">Authorized domains<\/span><span class=\"f_List1\"> fields will be filled in for you automatically when you add the <\/span><span class=\"f_List1\" style=\"font-style: italic;\">Redirect URIs<\/span><span class=\"f_List1\"> in a later step below. <\/span><span class=\"f_List1\" style=\"font-weight: bold;\">Note:<\/span><span class=\"f_List1\"> This info is used for the Consent screen that will be presented to users for authorizing Webmail to access the user\'s Google Drive.<\/span><\/p>\n\r<p class=\"p_List1\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">15.<\/span><span class=\"f_List1\">Click <\/span><span class=\"f_List1\" style=\"font-weight: bold;\">Save and Continue<\/span><span class=\"f_List1\">.<\/span><\/p>\n\r<p class=\"p_List1\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">16.<\/span><span class=\"f_List1\">Click <\/span><span class=\"f_List1\" style=\"font-weight: bold;\">ADD OR REMOVE SCOPES<\/span><span class=\"f_List1\">, and copy\/paste the URIs below (you can copy\/paste them all at once) into the box under &quot;Manually add scopes.&quot; Then click <\/span><span class=\"f_List1\" style=\"font-weight: bold;\">ADD TO TABLE<\/span><span class=\"f_List1\">.<\/span><br \/>\n\r<span class=\"f_List1\">&nbsp;<\/span><br \/>\n\r<span class=\"f_PlainText\">https:\/\/www.googleapis.com\/auth\/userinfo.email<\/span><br \/>\n\r<span class=\"f_PlainText\">https:\/\/www.googleapis.com\/auth\/drive.file<\/span><br \/>\n\r<span class=\"f_PlainText\">https:\/\/www.googleapis.com\/auth\/documents<\/span><br \/>\n\r<span class=\"f_PlainText\">https:\/\/www.googleapis.com\/auth\/drive<\/span><br \/>\n\r<span class=\"f_PlainText\">https:\/\/www.googleapis.com\/auth\/drive.readonly<\/span><br \/>\n\r<span class=\"f_PlainText\">https:\/\/www.googleapis.com\/auth\/drive.metadata<\/span><br \/>\n\r<span class=\"f_PlainText\">https:\/\/www.googleapis.com\/auth\/drive.photos.readonly<\/span><br \/>\n\r<span class=\"f_PlainText\">https:\/\/www.googleapis.com\/auth\/drive.activity.readonly<\/span><br \/>\n\r<span class=\"f_PlainText\">https:\/\/www.googleapis.com\/auth\/spreadsheets<\/span><\/p>\n\r<p class=\"p_List1\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">17.<\/span><span class=\"f_List1\">Click <\/span><span class=\"f_List1\" style=\"font-weight: bold;\">Save and Continue<\/span><span class=\"f_List1\">.<\/span><\/p>\n\r<p class=\"p_List1\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">18.<\/span><span class=\"f_List1\">Under Test Users, click <\/span><span class=\"f_List1\" style=\"font-weight: bold;\">ADD USERS<\/span><span class=\"f_List1\">, enter each Google account whose Google Drive MDaemon will be accessing through this app, and click <\/span><span class=\"f_List1\" style=\"font-weight: bold;\">ADD<\/span><span class=\"f_List1\"> (see the note below about your app\'s <a href=\"google-drive.html#publishing-status\" class=\"topiclink\">Publishing Status<\/a>).<\/span><\/p>\n\r<p class=\"p_List1\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">19.<\/span><span class=\"f_List1\">Click <\/span><span class=\"f_List1\" style=\"font-weight: bold;\">Save and Continue<\/span><span class=\"f_List1\">.<\/span><\/p>\n\r<p class=\"p_List1\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">20.<\/span><span class=\"f_List1\">On Summary, click <\/span><span class=\"f_List1\" style=\"font-weight: bold;\">BACK TO DASHBOARD<\/span><span class=\"f_List1\"> at the bottom of the page.<\/span><\/p>\n\r<p class=\"p_List1\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">21.<\/span><span class=\"f_List1\">Click <\/span><span class=\"f_List1\" style=\"font-weight: bold;\">Credentials<\/span><span class=\"f_List1\"> in the left pane, click <\/span><span class=\"f_List1\" style=\"font-weight: bold;\">(+) Create Credentials<\/span><span class=\"f_List1\">, and select <\/span><span class=\"f_List1\" style=\"font-weight: bold;\">OAuth client ID<\/span><span class=\"f_List1\">.<\/span><\/p>\n\r<p class=\"p_List1\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">22.<\/span><span class=\"f_List1\">In the &quot;Application type&quot; drop-down box, select <\/span><span class=\"f_List1\" style=\"font-weight: bold;\">Web application<\/span><span class=\"f_List1\">, and under &quot;Authorized redirect URIs&quot;, click <\/span><span class=\"f_List1\" style=\"font-weight: bold;\">+ ADD URIs<\/span><span class=\"f_List1\">. Enter the Redirect URI. The Redirect URI displayed on the Google Drive page in MDaemon is an example built from your <a href=\"domain-manager.html\" class=\"topiclink\">Default Domain\'s<\/a> <a href=\"domain-manager_host_name_ip.html\" class=\"topiclink\">SMTP host name<\/a>, which should work for that domain\'s users when signing in to Webmail. You should add additional Redirect URIs to your app for any additional MDaemon domains your users go to when signing in to Webmail. For example, &quot;<\/span><span class=\"f_PlainText\">https:\/\/mail.example.com\/WorldClient.dll?View=OAuth&amp;AuthRequest=GoogleDrive<\/span><span class=\"f_List1\">&quot; would work for any of your users who go to <\/span><span class=\"f_PlainText\">mail.example.com<\/span><span class=\"f_List1\"> when signing in to Webmail. If you also host a domain called, &quot;<\/span><span class=\"f_PlainText\">mail.company.test<\/span><span class=\"f_List1\">&quot;, then you would also need to enter a Redirect URI for that domain, i.e. &quot;<\/span><span class=\"f_PlainText\">https:\/\/mail.company.test\/WorldClient.dll?View=OAuth&amp;AuthRequest=GoogleDrive&quot;.<\/span><span class=\"f_List1\"> <\/span><\/p>\n\r<p class=\"p_List1\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">23.<\/span><span class=\"f_List1\">Click <\/span><span class=\"f_List1\" style=\"font-weight: bold;\">CREATE<\/span><span class=\"f_List1\">.<\/span><\/p>\n\r<p class=\"p_List1_LastItem\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">24.<\/span><span class=\"f_List1_LastItem\">Copy the values in <\/span><span class=\"f_List1_LastItem\" style=\"font-weight: bold;\">Your Client ID<\/span><span class=\"f_List1_LastItem\"> and <\/span><span class=\"f_List1_LastItem\" style=\"font-weight: bold;\">Your Client Secret<\/span><span class=\"f_List1_LastItem\"> to the <\/span><span class=\"f_List1_LastItem\" style=\"font-style: italic;\">Google Drive Client ID<\/span><span class=\"f_List1_LastItem\"> and <\/span><span class=\"f_List1_LastItem\" style=\"font-style: italic;\">Google Drive Client Secret<\/span><span class=\"f_List1_LastItem\"> boxes on the Google Drive page in MDaemon. You can also enter your Google Drive API Key if you didn\'t do that earlier.<\/span><\/p>\n\r<p style=\"margin: 0 3.0625rem 0.8750rem 3.0000rem;\"><a id=\"publishing-status\" class=\"hmanchor\"><\/a><\/p>\n\r<div style=\"text-align: left; text-indent: 0; padding: 0 0 0 0; margin: 0 3.0625rem 0.8750rem 3.0000rem;\"><table style=\"background-color:#ffffe6; border:solid thin #000000; border-spacing:0;\">\n\r<tr>\n\r<td style=\"vertical-align:top; width:3.1250rem; height:3.1250rem; padding:0.3125rem; border:none\"><p class=\"p_NoFormat\"><img style=\"margin:0;width:3.1250rem;height:3.1250rem;border:none\" src=\".\/images\/lightbulb_on_50_yback.gif\"\/><\/p>\n\r<\/td>\n\r<td style=\"vertical-align:top; width:64.3125rem; padding:0.3125rem; border:none\"><p class=\"p_Notes\"><span class=\"f_Notes\" style=\"font-weight: bold;\">Publishing Status<\/span><span class=\"f_Notes\"> — These instructions are for creating a Google app with the <a href=\"https:\/\/support.google.com\/cloud\/answer\/10311615#publishing-status\" target=\"_blank\" class=\"weblink\" title=\"More on Publishing Status at google.com\">Publishing Status<\/a> set to &quot;<\/span><span class=\"f_Notes\" style=\"font-weight: bold;\">Testing<\/span><span class=\"f_Notes\">&quot;. This requires you to add each specific Google account that will be using the app to access their Google Drive, and it is limited to 100 users. Further, in Webmail when your users are asked to authorize MDaemon to access Google, a warning message will be displayed &quot;to confirm the user has test access to your project but should consider the risks associated with granting access to their data to an unverified app.&quot; Also, authorization expires after seven days, therefore each user would be required to reauthorize Google access every week.<\/span><\/p>\n\r<p class=\"p_Notes\"><span class=\"f_Notes\">If you wish to remove these requirements and limitations then you must change your status to &quot;<\/span><span class=\"f_Notes\" style=\"font-weight: bold;\">In Production<\/span><span class=\"f_Notes\">&quot;, which may or may not require you change your User Type from external to internal, to go through an app verification process, or both. For more information on app verification and publishing status, see the following Google articles: <a href=\"https:\/\/support.google.com\/cloud\/answer\/10311615\" target=\"_blank\" class=\"weblink\" title=\"Google article - Setting up your OAuth consent screen\">Setting up your OAuth consent screen<\/a> and <a href=\"https:\/\/support.google.com\/cloud\/answer\/9110914\" target=\"_blank\" class=\"weblink\" title=\"Google article - OAuth API verification FAQs\">OAuth API verification FAQs<\/a>.<\/span><\/p>\n\r<\/td>\n\r<\/tr>\n\r<\/table>\n\r<\/div>\n\r<p class=\"p_DialogSectionHeading\" style=\"page-break-after: avoid;\"><span class=\"f_DialogSectionHeading\">Authorizing Google Drive in Webmail<\/span><\/p>\n\r<p class=\"p_BodyText2\"><span class=\"f_BodyText2\">Once you have created your Google Drive app and configured MDaemon\'s Google Drive page according to the instructions above, each user who wishes to access their Google Drive in Webmail must first authorize access to do so. To do this, each user should:<\/span><\/p>\n\r<p class=\"p_List1\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">1.<\/span><span class=\"f_List1\">Sign in to Webmail.<\/span><\/p>\n\r<p class=\"p_List1\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">2.<\/span><span class=\"f_List1\">Click the <\/span><span class=\"f_List1\" style=\"font-weight: bold;\">Options icon<\/span><span class=\"f_List1\"> in the top right corner, and click <\/span><span class=\"f_List1\" style=\"font-weight: bold;\">Cloud Apps<\/span><span class=\"f_List1\">.<\/span><\/p>\n\r<p class=\"p_List1\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">3.<\/span><span class=\"f_List1\">Click <\/span><span class=\"f_List1\" style=\"font-weight: bold;\">Setup Google Drive<\/span><span class=\"f_List1\"> (this will open an <\/span><span class=\"f_List1\" style=\"font-weight: bold;\">OAuth 2.0<\/span><span class=\"f_List1\"> page).<\/span><\/p>\n\r<p class=\"p_List1\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">4.<\/span><span class=\"f_List1\">Click <\/span><span class=\"f_List1\" style=\"font-weight: bold;\">Connect to Google Drive<\/span><span class=\"f_List1\">.<\/span><\/p>\n\r<p class=\"p_List1\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">5.<\/span><span class=\"f_List1\">If not signed in, Google Drive will ask them for sign-in information or to choose an account.<\/span><\/p>\n\r<p class=\"p_List1\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">6.<\/span><span class=\"f_List1\">They may be presented with a warning message that says, &quot;Google hasn’t verified this app. You’ve been given access to an app that’s currently being tested. You should only continue if you know the developer that invited you.&quot; Click <\/span><span class=\"f_List1\" style=\"font-weight: bold;\">Continue<\/span><span class=\"f_List1\">.<\/span><\/p>\n\r<p class=\"p_List1\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">7.<\/span><span class=\"f_List1\">Select which Google Drive features Webmail will be able to access, click <\/span><span class=\"f_List1\" style=\"font-weight: bold;\">Continue<\/span><span class=\"f_List1\">.<\/span><\/p>\n\r<p class=\"p_List1\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">8.<\/span><span class=\"f_List1\">A final page will display stating that MDaemon is now connected to Google Drive. They can then close this window.<\/span><\/p>\n\r<p class=\"p_List1_LastItem\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">9.<\/span><span class=\"f_List1_LastItem\">They can then access Google Drive from their <\/span><span class=\"f_List1_LastItem\" style=\"font-weight: bold;\">Documents<\/span><span class=\"f_List1_LastItem\"> page in Webmail.<\/span><\/p><\/td>\n\r<\/tr>\n\r<\/table>\n\r<\/div>\n\r<p class=\"p_SeeAlso\" style=\"page-break-after: avoid; border-right: none; border-bottom: none; border-left: none;\"><span class=\"f_SeeAlso\">See:<\/span><\/p>\n\r<p class=\"p_SeeAlsoLinks\" style=\"page-break-after: avoid;\"><span class=\"f_SeeAlsoLinks\"><a href=\"multipop.html\" class=\"topiclink\">MultiPOP OAuth<\/a><\/span><\/p>\n\r<p class=\"p_SeeAlsoLinks\" style=\"page-break-after: avoid;\"><span class=\"f_SeeAlsoLinks\"><a href=\"wc--dropbox.html\" class=\"topiclink\">Dropbox Integration<\/a><\/span><\/p>\n\r<p class=\"p_ControlHeading\" style=\"page-break-after: avoid;\"><span class=\"f_ControlHeading\">&nbsp;<\/span><\/p>\n\r"
})
