Martin Peřina has uploaded a new change for review.

Change subject: tools: Throw error if STARTTLS not supported
......................................................................

tools: Throw error if STARTTLS not supported

Throw error if STARTTLS is not supported on SMTP server when notifier
is configured to send emails using TLS (by default it falls back to
plain text).

Change-Id: Id1355ef6ac04dade33f3fff0294886dfaf84f0d6
Bug-Url: https://bugzilla.redhat.com/1062646
Signed-off-by: Martin Perina <[email protected]>
---
M 
backend/manager/tools/src/main/java/org/ovirt/engine/core/notifier/utils/sender/mail/JavaMailSender.java
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/22/24422/1

diff --git 
a/backend/manager/tools/src/main/java/org/ovirt/engine/core/notifier/utils/sender/mail/JavaMailSender.java
 
b/backend/manager/tools/src/main/java/org/ovirt/engine/core/notifier/utils/sender/mail/JavaMailSender.java
index 295e9c2..d2e3e04 100644
--- 
a/backend/manager/tools/src/main/java/org/ovirt/engine/core/notifier/utils/sender/mail/JavaMailSender.java
+++ 
b/backend/manager/tools/src/main/java/org/ovirt/engine/core/notifier/utils/sender/mail/JavaMailSender.java
@@ -50,6 +50,7 @@
                 
aMailProps.getProperty(NotificationProperties.MAIL_SMTP_ENCRYPTION, true))) {
             mailSessionProps.put("mail.smtp.auth", "true");
             mailSessionProps.put("mail.smtp.starttls.enable", "true");
+            mailSessionProps.put("mail.smtp.starttls.required", "true");
         }
 
         String password = 
aMailProps.getProperty(NotificationProperties.MAIL_PASSWORD, true);


-- 
To view, visit http://gerrit.ovirt.org/24422
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id1355ef6ac04dade33f3fff0294886dfaf84f0d6
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: ovirt-engine-3.4
Gerrit-Owner: Martin Peřina <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to