為 Apigee BaaS SMTP 伺服器設定 SMTP

Edge for Private Cloud 4.18.01 版

Apigee BaaS 需要設定 SMTP 伺服器。安裝 Apigee BaaS API 後端堆疊時,您需要輸入 SMTP 資訊,包括 SMTP 使用者的密碼。系統會先將密碼加密,再儲存起來。

如果日後要變更 SMTP 資訊,請在所有 BaaS Stack 節點上編輯 /opt/apigee/customer/application/usergrid.properties。

如要加密新密碼,以便在 usergrid.properties 中設定,請使用 apigee-service 公用程式:

> /opt/apigee/apigee-service/bin/apigee-service baas-usergrid newPword

如要變更 SMTP 資訊,請按照下列步驟操作:

  1. 在編輯器中開啟 /opt/apigee/customer/application/usergrid.properties。如果這個檔案不存在,請加以建立。
  2. 視需要設定下列屬性:
    # SMTP Properties
    usergrid-deployment_mail.smtp.host=smtp.gmail.com
    usergrid-deployment_mail.smtp.port=465
    usergrid-deployment_mail.smtp.auth=true
    usergrid-deployment_mail.smtp.username=your@email.com
    usergrid-deployment_mail.smtp.password=SECURE:74c57edacd3242f0ba1b1413890e17c22a5
    usergrid-deployment_mail.smtp.quitwait=false

    # SMTPS Properties
    usergrid-deployment_mail.smtps.host=smtp.gmail.com
    usergrid-deployment_mail.smtps.port=465
    usergrid-deployment_mail.smtps.auth=true
    usergrid-deployment_mail.smtps.username=your@email.com
    usergrid-deployment_mail.smtps.password=SECURE:74c57edacd3242f0ba1b1413890e17c22a52
    usergrid-deployment_mail.smtps.quitwait=false
  3. 編輯這項資訊後,您必須使用下列指令重新啟動 API 後端堆疊:
    > /opt/apigee/apigee-service/bin/apigee-service baas-usergrid restart
  4. 在所有 API BaaS Stack 節點上重複執行。