ddvk / rmfakecloud

host your own cloud for the remarkable
GNU Affero General Public License v3.0
705 stars 57 forks source link

Reccomendation setting up email with gmail #232

Closed giovi321 closed 8 months ago

giovi321 commented 1 year ago

Don't forget to activate less secure apps on gmail, if you want to send documents by email: https://support.google.com/accounts/answer/6010255

spillner commented 11 months ago

Note that Google has now disabled the "less secure apps" setting except for Workspace and Cloud Identity customers. The workaround is described at https://stackoverflow.com/questions/71756052/how-to-fix-less-secure-app-access-problem-in-gmail :

  1. Enable two-factor authentication in the Google account you want to use (can't use app passwords without 2FA)
  2. Visit https://myaccount.google.com/u/0/apppasswords
  3. Set up an app password for GMail
  4. Enter that app password on the RM_SMTP_PASSWORD= line of your rmfakecloud.conf
  5. Restart the rmfakecloud service

There's an "app password should work OK" note in the email section of https://ddvk.github.io/rmfakecloud/install/configuration, but the example configuration scripts at https://ddvk.github.io/rmfakecloud/install/source (which show GMail as the default SMTP backend) ought to be updated to direct users to set up and enter the app password, instead of the account password (which is an unnecessary security risk, and won't work anyway unless they're Workplace/Cloud Identity subscribers).