为 Apigee BaaS SMTP 服务器配置 SMTP

Edge for Private Cloud v. 4.17.09

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 节点上重复上述步骤。