Skip to content

Add SMTP configurations block to Staging and Production environments #627

Open
@decimalator

Description

@decimalator

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions