ControlledVocabularyManager icon indicating copy to clipboard operation
ControlledVocabularyManager copied to clipboard

Add SMTP configurations block to Staging and Production environments

Open decimalator opened this issue 11 months ago • 0 comments

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:

  1. Go to https://opaquenamespace.org/users/password/new
  2. Enter an email address of an existing user
  3. Click on 'Send me reset password instructions'
  4. See error

Expected behavior There should be no error, and you should receive a password reset email.

decimalator avatar Feb 24 '25 21:02 decimalator