配置LMS/Studio SMTP:
用到的文件如下:以下设置采用的root用户进行
/edx/app/edxapp/lms.env.json #|env文件 里包含一些功能开关 /edx/app/edxapp/cms.env.json #| /edx/app/edxapp/lms.auth.json#|auth 文件包含一些密码 权限相关 /edx/app/edxapp/cms.auth.json#|
编辑lms.env.json
"DEFAULT_FROM_EMAIL":"your email", #设置成你的smtp邮箱 "EMAIL_BACKEND":"django.core.mail.backends.smtp.EmailBackend", "EMAIL_HOST":"smtp.office365.com", #内容修改成你的smtp主机 "EMAIL_PORT": 587, #端口 "EMAIL_USE_TLS":false, "LMS_BASE":"x.edustack.org", #你的平台域名,可填ip "PREVIEW_LMS_BASE":"x.edustack.org", "CMS_BASE":"studio.edustack.org", "PLATFORM_NAME":"eduStack-X", #内容修改成你的edX平台名字 "SITE_NAME":"localhost", #域名或ip,激活邮箱时调用
编辑 cms.env.json:
"BULK_EMAIL_DEFAULT_FROM_EMAIL":"your email", #设置成你的smtp邮箱 "DEFAULT_FROM_EMAIL":"your email", #设置成你的smtp邮箱 "EMAIL_BACKEND":"django.core.mail.backends.smtp.EmailBackend", "EMAIL_HOST":"smtp.office365.com", #内容修改成你的smtp主机 "EMAIL_PORT": 587, #端口号 "EMAIL_USE_TLS":false, "LMS_BASE":"x.edustack.org", #你的平台域名,可填ip "PREVIEW_LMS_BASE":"x.edustack.org", "CMS_BASE":"studio.edustack.org", "SITE_NAME":"localhost", #域名或ip,激活邮箱时调用
编辑 lms.auth.json:
"EMAIL_HOST_PASSWORD":"password", #smtp邮箱密码 "EMAIL_HOST_USER":"email", #邮箱
编辑 cms.auth.json:
"EMAIL_HOST_PASSWORD":"password", #smtp邮箱密码 "EMAIL_HOST_USER":"email", #邮箱
重启edxapp生效
/edx/bin/supervisorctl restart edxapp: