先说下限制:
1.谷歌邮箱默认1天只能100封邮件,而且必须开启2FA验证,如果社群大了,需要考虑收费的,比如sendgrid,或者mailgun之类的。
2.backbkaze存储作为存储后端,虽然能很便宜,但是不能自定义文件域名。
接下来说下谷歌邮箱配置:
The hostname like EMAIL_HOST = ‘smtp.mailgun.org’ in /etc/zulip/settings.py 这里谷歌填smtp.gmail.com
The username like EMAIL_HOST_USER = ‘username@example.com’ in /etc/zulip/settings.py. 这里填谷歌邮箱地址
The TLS setting as EMAIL_USE_TLS = True in /etc/zulip/settings.py, for most providers 默认
The port as EMAIL_PORT = 587 in /etc/zulip/settings.py, for most providers 默认
The password like email_password = abcd1234 in /etc/zulip/zulip-secrets.conf. 在对应位置复制过去,密码填谷歌应用专用密码
配置完su zulip -c ‘/home/zulip/deployments/current/manage.py send_test_email 你的邮箱地址’
做一个测试验证
然后说一下backblaze配置:
在s3的配置部分
LOCAL_UPLOADS_DIR = “/home/zulip/uploads” 这里前面加# 和空格
下面的#和空格全取消,顶格
S3_AUTH_UPLOADS_BUCKET = “bucket名”
S3_AVATAR_BUCKET = “bucket名”
S3_REGION = “s3endpoint 第二段”
S3_ENDPOINT_URL = “https://endpoint/bucket名”
S3_SKIP_PROXY = True
保存,
执行
crudini –set /etc/zulip/zulip.conf application_server no_serve_uploads true
/home/zulip/deployments/current/scripts/zulip-puppet-apply
和
su zulip -c ‘/home/zulip/deployments/current/scripts/restart-server’