Bug 967038 - SMTP settings needed in console.conf
Summary: SMTP settings needed in console.conf
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Website
Version: 2.x
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Clayton Coleman
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-05-24 14:44 UTC by Russell Harrison
Modified: 2017-11-08 22:14 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-06-11 04:11:19 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Russell Harrison 2013-05-24 14:44:08 UTC
Description of problem:
Emails were failing to be sent because of invalid SSL cert verification.  To work around the issue we had to add the following line to the site production.rb file.

  # Don't verify the certs used for SMTP+TLS.
  config.action_mailer.smtp_settings = { :openssl_verify_mode => 'none' }

rpm -qf /var/www/openshift/site/config/environments/production.rb
rhc-site-1.8.10-2.el6oso.noarch

We need configuration options to be added to console.conf so we can make those settings there.

Also an item needs to be added to the release ticket to remind the ops team to remove production.rb from Puppet management again once the setting is in place.

Comment 1 Clayton Coleman 2013-05-24 18:34:55 UTC
Implemented and in the release ticket

Comment 2 Yujie Zhang 2013-05-27 06:21:50 UTC
Tested on devenv_3277, registered new account with promocode, the email can be sent successfully, so verify this bug, see log as following:

2013-05-27 02:19:34.940 [DEBUG] Confirmation URL: https://ec2-54-226-58-225.compute-1.amazonaws.com/app/email_confirm (pid:30323)
2013-05-27 02:19:34.941 [DEBUG] Mailing promotional code to yujzhang+devtestjjj (pid:30323)
2013-05-27 02:19:34.948 [INFO ] Rendered promo_code_mailer/promo_code_email.html.erb (0.1ms) (pid:30323)
2013-05-27 02:19:34.958 [INFO ] Sent mail to snathan (8ms) (pid:30323)
2013-05-27 02:19:34.958 [DEBUG] Date: Mon, 27 May 2013 02:19:34 -0400
From: OpenShift <noreply.com>
To: Marketing Mailing List <snathan>
Message-ID: <51a2faf6e8d88_7673c318886954e>
Subject: User signed up with promo code
Mime-Version: 1.0
Content-Type: text/html;
 charset=UTF-8
Content-Transfer-Encoding: 7bit

<!DOCTYPE html>
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
  </head>
  <body>
    <h1>New user created</h1>
    <p>
	  A user with email yujzhang+devtestjjj has successfully signed up with promotional code aaa<br/>
    </p>
  </body>
</html> (pid:30323)
2013-05-27 02:19:34.959 [INFO ] [user_action] SUCCESS DATE=2013-05-27 TIME=02:19:34 ACTION=CREATE_USER USER_AGENT=Mozilla/5.0 (X11; Linux x86_64; rv:18.0) Gecko/20100101 Firefox/18.0 IP_ADDRESS=203.114.244.88 REQUEST_ID=dcb9b1ac1286c7a5d6eacea2061d3756 EMAIL=yujzhang+devtestjjj


Note You need to log in before you can comment on or make changes to this bug.