Bug 1008975

Summary: [ovirt-engine-notifier] - Mail - Cannot send mails with SSL ("Connection refused")
Product: Red Hat Enterprise Virtualization Manager Reporter: David Botzer <dbotzer>
Component: ovirt-engine-notification-serviceAssignee: Mooli Tayer <mtayer>
Status: CLOSED CURRENTRELEASE QA Contact: Tareq Alayan <talayan>
Severity: high Docs Contact:
Priority: high    
Version: 3.3.0CC: aberezin, acathrow, bazulay, iheim, michal.skrivanek, pstehlik, Rhev-m-bugs, yeylon, yzaslavs
Target Milestone: ---Keywords: Regression, Triaged
Target Release: 3.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: is18 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
notifier.log none

Description David Botzer 2013-09-17 12:30:20 UTC
Created attachment 798796 [details]
notifier.log

Description of problem:
[ovirt-engine-notifier] - Mail - Cannot SSL event notification (regression)

Version-Release number of selected component (if applicable):
3.3/is14

How reproducible:
always

Steps to Reproduce:
1.Configure ovirt-engine-notifier with SSL and gmail smtp server
2.use the gmail account info
3.create events - maintenance to host or restart engine

Actual results:
Mail is not sent, and error is sent on "Connection refused" 

Expected results:
Should send mail correctly

Additional info:
Tested and works ok on 3.2/sf20.1

Configured in notifier.log
-----------------------------
MAIL_SERVER=smtp.gmail.com
MAIL_USER=...
MAIL_PASSWORD=......
MAIL_ENABLE_SSL=true
MAIL_FROM=dbotzer

Closed & verified, Previously opened bug on 3.2
Bug 885436 - event notification not sent for MAIL_SERVER smtp
https://bugzilla.redhat.com/show_bug.cgi?id=885436

Comment 2 Mooli Tayer 2013-10-02 10:08:30 UTC
reproduces, log Shows MAIL_SERVER is ignored and set to localhost:
javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 465;

although MAIL_SERVER=smtp.gmail.com
Inspecting further.

Comment 3 Mooli Tayer 2013-10-02 13:49:42 UTC
Patch proposed on master.

Comment 4 Mooli Tayer 2013-10-03 07:25:51 UTC
Accepted on master, submitted on ovirt-engine-3.3.

Comment 5 Tareq Alayan 2013-10-14 13:22:06 UTC
verified.
tested on: rhevm-3.3.0-0.25.beta1.el6ev.noarch
a mail is sent using ssl=true.

Comment 7 Itamar Heim 2014-01-21 22:24:53 UTC
Closing - RHEV 3.3 Released

Comment 8 Itamar Heim 2014-01-21 22:25:40 UTC
Closing - RHEV 3.3 Released

Comment 9 Itamar Heim 2014-01-21 22:29:12 UTC
Closing - RHEV 3.3 Released