Description:
I am experiencing an issue with applying custom SMTP configurations using the tutor config save command in Tutor for managing Open edX platforms. Here’s a detailed description of the problem:
Issue: When I set custom SMTP configuration settings in the config.yml file as follows:
EMAIL_BACKEND: django.core.mail.backends.smtp.EmailBackend
EMAIL_HOST: smtp.gmail.com
EMAIL_HOST_PASSWORD: nhwy wnek zswo ftfz
EMAIL_HOST_USER: smtp.iovision@gmail.com
EMAIL_PORT: 587
EMAIL_USE_SSL: false
EMAIL_USE_TLS: true
and then run tutor config save, the custom SMTP settings are not applied in the generated environment configuration files (lms.env.yml and cms.env.yml). Instead, the files contain the following default settings:
EMAIL_BACKEND: "django.core.mail.backends.smtp.EmailBackend"
EMAIL_HOST: "smtp"
EMAIL_PORT: 8025
EMAIL_USE_TLS: false
EMAIL_HOST_USER: ""
EMAIL_HOST_PASSWORD: ""
Additional Information:
- The custom configuration is properly applied for other parameters like
PLATFORM_NAME. - Manual changes to the
env/folder configurations are overwritten by the settings inconfig.yml.
Steps Taken:
- Edited the
config.ymlfile with custom SMTP settings. - Ran
tutor config save. - Verified the settings in
lms.env.ymlandcms.env.ymlfiles.
Expected Behavior: The custom SMTP configuration set in config.yml should be applied and reflected in lms.env.yml and cms.env.yml files after running tutor config save.
Request: Could someone from the community please provide guidance on how to ensure that custom SMTP settings in config.yml are correctly applied to the environment configuration files? Is there a known issue or workaround for this problem?
Thank you for your assistance!