First available in MDaemon 23.0.0, Webmail users can be configured to integrate access to Google Drive. Follow the steps below setup the integration.
- Create a Google account or login to an existing account.
- Go to the Google API Console using the link below.
- Click Create Project under Enabled APIs & services
- Create a name for the project.
- For example, MDaemon MD Webmail
- If you have an organization, fill in the Location field.
- Click Create
- Click + Enable APIs and Services
- In the search field, type Google Drive and select Google Drive API
- Click Enable on the Google Drive API page.
- Click Credentials in the API APIs & Services menu
- Click + Create Credentials and then API Key in the dropdown list.
- Copy the generated API Key
- Click OAuth consent screen in the API APIs & Services menu.
- 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.
- Click Create
- For the App information, use a unique name for the app.
- It can be the same as the name you chose for the Project.
- Select a User support email address from the drop down list.
- No logo is required, however feel free to use your company logo.
- In the App domain section, 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.
- Add MDaemon domains in the Authorized domains section.
- Enter at least one email address to the Developer contact information text box.
- Click Save and Continue
- Click Add or Remove Scopes
- Copy and paste the following scopes in Manually add scopes text area.
https://www.googleapis.com/auth/userinfo.email
https://www.googleapis.com/auth/drive.file
https://www.googleapis.com/auth/documents
https://www.googleapis.com/auth/drive
https://www.googleapis.com/auth/drive.readonly
https://www.googleapis.com/auth/drive.metadata
https://www.googleapis.com/auth/drive.photos.readonly
https://www.googleapis.com/auth/spreadsheets - click Add To Table
- Click Update
- Click Save and Continue
- Click Add Users
- Add the users you want to be able to use the feature. Must be gmail addresses.
- Click Save and Continue
- Click Credentials in API APIs & Services menu.
- Click + Create Credentials and then OAuth client ID in the drop down.
- Choose Web application from the Application type drop down.
- You can use the same name again.
- Under Authorized redirect URIs, Click +Add URI
- The URI looks like this: https://YOUR_FQDN/WorldClient.dll?View=OAuth&AuthRequest=GoogleDrive
- An example can also be found in MDaemon Remote Administration (MDRA) at Main | Webmail Settings | Google Drive
- Click Create
- Copy the Your Client ID and Your Client Secret values.
In MDaemon Remote Administration:
- Select Main
- Select Webmail Settings
- Select Google Drive
- Check the Enable Google Drive Integration option.
- Enter the API Key, Client ID, and Client Secret in their respective fields.
- (Optional) Add a privacy policy by clicking on Edit text of privacy policy.
- Click Save
When a valid user wants to integrate with Google Drive:
- Login to Webmail
- Click Settings
- Click Cloud Apps
- Click Setup Google Drive
- Review the information and click Connect to GoogleDrive.
- Choose the Google Account and choose what Webmail can Access.
- Click Continue
- When you see the window below, the setup process is complete.
To Disconnect Google Drive integration:
- Login to Webmail
- Click Settings
- Click Cloud Apps
- Click Disconnect Google Drive
To save an email attachment to Google Drive using a connected account (Pro theme):
- Login to Webmail
- Open a message with an attachment.
- Click on the Google Drive icon next to the attachment name.
- Click Yes to confirm saving the attachment to Google Drive.
- You'll see a pop-up notification in Webmail stating the attachment was saved.