1-开启邮箱服务
2-系统邮件配置
修改seahub_settings.py
,参照如下(QQ邮箱),官网连接https://cloud.seafile.com/published/seafile-manual-cn/config/sending_email.md
:
EMAIL_USE_SSL = True
EMAIL_HOST = 'smtp.qq.com'
EMAIL_HOST_USER = '[email protected]'
EMAIL_HOST_PASSWORD = 'Auth_Code'
EMAIL_PORT = '465'
DEFAULT_FROM_EMAIL = EMAIL_HOST_USER
SERVER_EMAIL = EMAIL_HOST_USER
注意:QQ邮箱的配置示例中,'EMAIL_HOST_PASSWORD'并非是邮箱账号的登陆密码,而是一个16位的授权码.
3-重启生效
请重启 Seahub 以使更改生效.
./seahub.sh restart