<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=koi8-r">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:2.0cm 42.5pt 2.0cm 3.0cm;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="RU" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hello,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I’m trying to receive emails from Midpoint about User Change. I have records in my mail-notifications.log file about Success operation on User, but I didn’t receive any emails in my mailbox from Midpoint. I also checked
connection between my smtp server and Midpoint server and it’s ok. What is wrong and how can I track sending emails from Midpoint to recipients?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">This is a record from log file:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Message{to='[s.mamayeva@ktg.kz]', subject='[IDM] SUCCESS: User MODIFY operation succeeded for test', contentType='null', body='Notification about user-related operation (status: SUCCESS)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">User: (test, oid 9f9c2f39-9230-46eb-8ff1-c0b2c6f7d74a)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Notification created on: Wed Oct 05 11:23:14 ALMT 2016<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">The user record was modified. Modified attributes are:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">- Assignment:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> - ADD: <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> - Target: End user (role)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Requester: midPoint Administrator (administrator)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Channel: http://midpoint.evolveum.com/xml/ns/public/gui/channels-3#user<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">'}<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">This is my configuration setup part:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><notificationConfiguration><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <handler><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <simpleUserNotifier><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <recipientExpression><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <value>s.mamayeva@ktg.kz</value><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> </recipientExpression><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <subjectExpression><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <script><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <code><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">if (event.isSuccess())<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> tmpText = "[IDM] SUCCESS: User " + event.getChangeType() + " operation succeeded for "<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">else if (event.isFailure())<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> tmpText = "[IDM] ERROR: User " + event.getChangeType() + " operation failed for "<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">else tmpText = "[IDM] IN PROGRESS: User " + event.getChangeType() + " operation in progress for "<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">tmpText + requestee?.getName()?.getOrig()<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"></code><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> </script><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> </subjectExpression><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <transport>mail</transport><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> </simpleUserNotifier><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> </handler><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <handler><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <simpleFocalObjectNotifier><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <name>Notify system administrator for role change</name><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <focusType>RoleType</focusType><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <recipientExpression><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <value> s.mamayeva@ktg.kz </value><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> </recipientExpression><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <subjectExpression><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <script><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <code><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">tmpObject = 'Role '<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">if (event.isSuccess())<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> tmpText = "[IDM] SUCCESS: " + tmpObject + event?.getChangeType() + " operation succeeded"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">else if (event.isFailure())<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> tmpText = "[IDM] ERROR: " + tmpObject + event?.getChangeType() + " operation failed"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">else tmpText = "[IDM] IN PROGRESS: " + tmpObject + event?.getChangeType() + " operation in progress"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">return tmpText<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"></code><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> </script><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> </subjectExpression><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <transport>mail</transport><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> </simpleFocalObjectNotifier><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> </handler><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <mail><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <server><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <host>mail.ktg.kz</host><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <port>25</port><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <username>username@ktg.kz</username><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <password><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <t:encryptedData><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <t:encryptionMethod><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <t:algorithm>http://www.w3.org/2001/04/xmlenc#aes128-cbc</t:algorithm><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> </t:encryptionMethod><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <t:keyInfo><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <t:keyName>W13relKBKIJ7RbjVlHc67B2n4hj0=</t:keyName><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> </t:keyInfo><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <t:cipherData><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <t:cipherValue>eu3gXghhxcaTal0Ok6cL+Bggk354SWLenpr2Mw70vjg=</t:cipherValue><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> </t:cipherData><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> </t:encryptedData><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> </password><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <transportSecurity>none</transportSecurity><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> </server><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <defaultFrom>Midpoint test</defaultFrom><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <debug>true</debug><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <redirectToFile>mail-notifications.log</redirectToFile><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> </mail><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> </notificationConfiguration><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:RU"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:RU"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:RU">Best regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:RU">Saule
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Times New Roman","serif";mso-fareast-language:RU"><a href="mailto:s.mamayeva@ktg.kz"><span style="color:#0563C1">s.mamayeva@ktg.kz</span></a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
</body>
</html>