1. Knowledge Base
  2. MDaemon® Email Server

How to integrate Google Drive access in MDaemon Webmail

Available in MDaemon 23.0.0 can be configured to integrate access to Google Drive. Follow the steps below setup the integration.

  1. Create a Google account or login to an existing account.
  2. Go to the Google API Console using the link below.
    • https://console.cloud.google.com/projectselector2/apis/dashboard
  3. Click Create Project under  Enabled APIs & services
  4. Create a name for the project.
    • For example, MDaemon MD Webmail
  5. If you have an organization, fill in the Location field.
  6. Click Create
  7. Click + Enable APIs and Services
  8. In the search field, type Google Drive and select Google Drive API
  9. Click Enable on the Google Drive API page.
  10. Click Credentials in the API APIs & Services menu
  11. Click + Create Credentials and then API Key in the dropdown list.
  12. Copy the generated API Key
  13. Click OAuth consent screen in the API APIs & Services menu.
  14. Under User Type, choose External.
    • You will need to add each user that wants to make use of the Google Drive integration in Webmail.
    • In the case that you do have an organization, choosing Internal is the better option.
  15. For the App information, use a unique name for the app.
    • It can be the same as the name you chose for the Project.
  16. No logo is required, however feel free to use your company logo.
  17. Use your terms of service link from MDRA (if configured) and you can create a Privacy Policy in MDRA and get a link to it from there as well.
  18. Add authorized FQDN domains.
  19. Click Save and Continue
  20. Click Add or Remove Scopes
  21. Copy and paste the following scopes in Manually add scopes text area.

  22. click Add To Table
  23. Click Update
  24. Click Save and Continue
  25. Click Add Users
    • Add the users you want to be able to use the feature. Must be gmail addresses.
  26. Click Save and Continue
  27. Click Credentials in API APIs & Services menu.
  28. Click + Create Credentials and then OAuth client ID in the drop down.
  29. Choose Web application from the Application type drop down.
  30. You can use the same name again.
  31. Under Authorized redirect URIs, Click +Add URI
    1. The URI looks like this: https://YOUR_FQDN/WorldClient.dll?View=OAuth&AuthRequest=GoogleDrive
    2. An example can also be found in MDaemon Remote Administration (MDRA) at Main | Webmail Settings | Google Drive
  32. Click Create
  33. Copy the Your Client ID and Your Client Secret values.

In MDaemon Remote Administration:

  1. Select Main
  2. Select Webmail Settings
  3. Select Google Drive
  4. Check the Enable Google Drive Integration option.
  5. Enter the API Key, Client ID, and Client Secret in their respective fields.
  6. Click Save
  7. Be sure to add a privacy policy by clicking on Edit text of privacy policy.

When a valid user wants to integrate with Google Drive:

  1. Login to Webmail
  2. Click Settings
  3. Click Cloud Apps to connect to the Google Account.