简单记一下安装 zulip配置邮箱的问题。

docker镜像: docker pull galexrt/zulip ,比较慢,有背景知识的同学可以自己改源和库地址。

docker-compose.yml 主要修改:

      SETTING_EXTERNAL_HOST: 'zulip.xy.in'
      SETTING_ZULIP_ADMINISTRATOR: '314509@qq.com'
      SETTING_EMAIL_HOST: 'smtp.qq.com'  # e.g. smtp.example.com
      SETTING_EMAIL_HOST_USER: '314509@qq.com'
      SETTING_EMAIL_PORT: '465'
      SETTING_ADD_TOKENS_TO_NOREPLY_ADDRESS: 'False'
      SETTING_NOREPLY_EMAIL_ADDRESS: '314509@qq.com'
      SECRETS_email_password: kocxpzbwbasp
      # It seems that the email server needs to use ssl or tls and can't be used without it
      SETTING_EMAIL_USE_SSL: 'True'
      SETTING_EMAIL_USE_TLS: 'False'

这里使用的是qq邮箱,记得去邮箱里开启smtp。试了163的邮箱没有成功,其中SETTING_NOREPLY_EMAIL_ADDRESS是官方没有说明的,不这样设置的话,他会以noreply发送一个邮件.

 

Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐