メール設定の問題:ジョブ例外:Net::SMTPAuthenticationError

明らかに、これは私のメール設定に関係しています。現在Digital Oceanのドロップレットとして、独自のDiscourseインスタンスをセットアップする方法を学んでいます。インスタンスはセットアップ済みで、jordanviolet.devで利用可能です。

トラブルシューティングドキュメントを試しましたが、うまくいきませんでした。

メールプロバイダーとしてGoogle Workspace(Gmail)アカウントを使用したいと考えています。以下は私のSMTPメール設定です。

## TODO: List of comma delimited emails that will be made admin and developer
  ## on initial signup example 'user1@example.com,user2@example.com'
  DISCOURSE_DEVELOPER_EMAILS: 'jordan@violetfamily.com'

  ## TODO: The SMTP mail server used to validate new accounts and send notifications
  # SMTP ADDRESS, username, and password are required
  # WARNING the char '#' in SMTP password can cause problems!
  DIS="../../smtp-relay.gmail.com"
  DISCOURSE_SMTP_PORT: 587
  DISCOURSE_SMTP_USER_NAME: myemail@violetfamily.com
  DISCOURSE_SMTP_PASSWORD: "myemailpassword"
  #DISCOURSE_SMTP_ENABLE_START_TLS: true           # (optional, default true)
  DISCOURSE_SMTP_DOMAIN: violetfamily.com
  DISCOURSE_NOTIFICATION_EMAIL: jordan@violetfamily.com

  ## If you added the Lets Encrypt template, uncomment below to get a free SSL certificate
  LETSENCRYPT_ACCOUNT_EMAIL: me@example.com

GoogleのSMTPリレーに関するドキュメントも正しく従ったと思います。

以下は、Workspace > Gmail > ルーティング設定からの私の設定です。


この問題に直面している方のために、解決策は、Google Workspace と、メールを送信したい個人のアカウントの両方で、セキュリティ保護が低いアプリを有効にすることでした。

このトピックのステップ #4:

「いいね!」 3

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.