Open
Description
Describe the bug
There is no initializer to configure SMTP settings for ONS. This causes the SMTP settings to default to using localhost:25
as the MTA for ONS. Since there is nothing listening on that port in the container, anything trying to use SMTP will throw exceptions and 500
errors.
Environment variables have already been added to the deployment, all that is needed is the initializer block to consume those to configure:
- config.action_mailer.delivery_method
- config.action_mailer.perform_caching
- config.action_mailer.smtp_settings
CVM_SMTP_ENABLED: 1
CVM_SMTP_HOST: smtp.library.oregonstate.edu
CVM_SMTP_PORT: 25
To Reproduce
Steps to reproduce the behavior:
- Go to https://opaquenamespace.org/users/password/new
- Enter an email address of an existing user
- Click on 'Send me reset password instructions'
- See error
Expected behavior
There should be no error, and you should receive a password reset email.