Skip to content

Commit

Permalink
Explicitly turn off enable_starttls for SMTP
Browse files Browse the repository at this point in the history
In testing with the rails console, @kayiwa found that we need `enable_starttls: false` in order to send mail via the new lib-ponyexpr-prod.  We may decide to use TLS for this connection in the future.

Using the rails console, I confirmed that I can still send mail through the old lib-ponyexpr with an explicit `enable_starttls: false`.
  • Loading branch information
sandbergja committed May 30, 2024
1 parent 317685d commit b6af7df
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
config.action_mailer.smtp_settings = {
address: "#{ENV['SMTP_HOST'] || 'lib-ponyexpr-prod.princeton.edu' }",
port: (ENV['SMTP_PORT'] || 25).to_i,
enable_starttls: false,
open_timeout: 10,
read_timeout: 10
}
Expand Down

0 comments on commit b6af7df

Please sign in to comment.