Bug 885436

Summary: event notification not sent for MAIL_SERVER smtp.
Product: Red Hat Enterprise Virtualization Manager Reporter: Ilanit Stein <istein>
Component: ovirt-engine-notification-serviceAssignee: Noam Slomianko <nslomian>
Status: CLOSED CURRENTRELEASE QA Contact: Ilanit Stein <istein>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.1.0CC: bazulay, dfediuck, dyasny, iheim, nslomian, pstehlik, Rhev-m-bugs, sgrinber, ykaul
Target Milestone: ---   
Target Release: 3.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: sf9 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:
Bug Depends On:    
Bug Blocks: 917401    

Description Ilanit Stein 2012-12-09 13:53:14 UTC
Description of problem:

Event notification not sent when using the USER_MAIL & MAIL_SERVER=localhost\ smtp.corp.redhat.com. 
port used = 25 (default). SSL also didn't work.

- Need to ensure both secure and non secure work OK.
- It might be that for the smtp server, it is required to define the gateway,
in notifier.conf maybe or else (as I understand from rliber each floor has it's own gateway)

Comment 1 Doron Fediuck 2013-01-03 15:56:40 UTC
Ilanit, 
we need some more info;
- Did you check basic connectivity? ie- is it a firewall issue? etc.
- Were you able to send an email in the same setup with a different client such as 'mail / mutt'?

Comment 2 Ilanit Stein 2013-01-03 16:34:06 UTC
I succedded to have the notification email sent, only when I defined  MAIL_SERVER=localhost, and USER_MAIL parameter was commented. Did using USER_MAIL worked for you in some kind of form?

Comment 3 Noam Slomianko 2013-01-08 13:42:18 UTC
When I used an arbitrary user: USER_MAIL=noam it was not sent, it failed with exception:
com.sun.mail.smtp.SMTPSenderFailedException: 553 5.5.4 <noam>... Domain name required for sender address noam

When I used a real USER_MAIL=nslomian it was sent as expected.

so it isn't a bug as described, but we still may want to add better logging.

any input on the subject?

Comment 4 Doron Fediuck 2013-01-15 15:33:17 UTC
Since no response so far, the solution we'll implement is better error handling,
which will make sure connectivity issues (including credentials) will be outputted to the log file.

Comment 5 Ilanit Stein 2013-02-03 12:49:40 UTC
Can you please chack using MAIL_SERVER as well? with and without SSL? Is indeed additional info of gateway is required in the conf file?

Thank you.

Comment 6 Noam Slomianko 2013-04-08 12:56:42 UTC
After talking to Ilanit today I've checked with and without ssl and it all works out to be OK.

Mail server config works fine.
The ssl failure stems from the fact that smtp.corp.redhat.com refuses connections over ssl port (465)

To test ssl I used gmail dummy mailbox, use these configurations to reproduce:
MAIL_SERVER=smtp.gmail.com
MAIL_PORT=465
MAIL_USER=lolzmclolzz
MAIL_PASSWORD=shimadon
MAIL_ENABLE_SSL=true


Lets please close this as it's getting dragged on why to long

Comment 7 Ilanit Stein 2013-04-08 13:53:09 UTC
Verified on sf-13.

MAIL_SERVER = smtp.corp.redhat.com
a. non SSL worked fine
b. SSL didn't work
Sent email to IT (rliber) to check MAIL_SERVER  smtp.corp.redhat.com SSL massages listen problem.
used another MAIL_SERVER, smtp.gmail.com, as in comment 6, worked fine.

Comment 8 Itamar Heim 2013-06-11 09:00:10 UTC
3.2 has been released

Comment 9 Itamar Heim 2013-06-11 09:00:11 UTC
3.2 has been released

Comment 10 Itamar Heim 2013-06-11 09:00:12 UTC
3.2 has been released

Comment 11 Itamar Heim 2013-06-11 09:01:33 UTC
3.2 has been released

Comment 12 Itamar Heim 2013-06-11 09:30:55 UTC
3.2 has been released