SMTP settings don't save to env

Using these settings in config.yml, I notice that when I run tutor config save these settings do not get saved to /env/apps/openedx/config/

EMAIL_BACKEND: django.core.mail.backends.smtp.EmailBackend
EMAIL_HOST: email-smtp.us-east-1.amazonaws.com
EMAIL_HOST_PASSWORD: XXX
EMAIL_HOST_USER: XXX
EMAIL_PORT: 587
EMAIL_USE_TLS: true

When I save these values in the env files and deploy, it works - but I know that my settings will only get overwritten later. This is 11.0.5.

Use a YAML plugin to configure this. See https://docs.tutor.overhang.io/plugins/examples.html?highlight=email#examples-of-tutor-plugins

In this particular case, the recommended approach is not to build a custom plugin (for once :wink:) but to properly set the right configuration variables. See https://docs.tutor.overhang.io/configuration.html#smtp

(notice in particular how you should not define EMAIL_* but SMTP_* variables.)

1 Like

Hi @amraotkar! Please don’t hijack other people’s topics with your own issues. Instead, you should create a new topic where you describe your issue as precisely as possible. This includes the commands you ran, what incorrect behaviour you are observing, the error logs, etc.

Sure. Will delete the message and create a new thread.