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 = 'username@domain.com'
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