[midPoint] Configuration of Email Notification
Мамаева Сауле Сериковна
s.mamayeva at ktg.kz
Wed Oct 5 13:16:54 CEST 2016
Hi, Gustav!
Thanks. Now It works.
Best regards,
Saule Mamayeva
BI analyst
s.mamayeva at ktg.kz<mailto:s.mamayeva at ktg.kz>
Mobile KZ: +7 777 526 57 59
Skype: m_saule_s
From: midPoint [mailto:midpoint-bounces at lists.evolveum.com] On Behalf Of Palos Gustav
Sent: Wednesday, October 05, 2016 4:57 PM
To: midPoint General Discussion
Subject: Re: [midPoint] Configuration of Email Notification
Hi Saule,
please delete <redirectToFile> section, if you have it, all e-mails are redirected to file...
Best Regards,
Gustav
2016-10-05 12:40 GMT+02:00 Мамаева Сауле Сериковна <s.mamayeva at ktg.kz<mailto:s.mamayeva at ktg.kz>>:
Hello,
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?
This is a record from log file:
Message{to='[s.mamayeva at ktg.kz<mailto:s.mamayeva at ktg.kz>]', subject='[IDM] SUCCESS: User MODIFY operation succeeded for test', contentType='null', body='Notification about user-related operation (status: SUCCESS)
User: (test, oid 9f9c2f39-9230-46eb-8ff1-c0b2c6f7d74a)
Notification created on: Wed Oct 05 11:23:14 ALMT 2016
The user record was modified. Modified attributes are:
- Assignment:
- ADD:
- Target: End user (role)
Requester: midPoint Administrator (administrator)
Channel: http://midpoint.evolveum.com/xml/ns/public/gui/channels-3#user
'}
This is my configuration setup part:
<notificationConfiguration>
<handler>
<simpleUserNotifier>
<recipientExpression>
<value>s.mamayeva at ktg.kz<mailto:s.mamayeva at ktg.kz></value>
</recipientExpression>
<subjectExpression>
<script>
<code>
if (event.isSuccess())
tmpText = "[IDM] SUCCESS: User " + event.getChangeType() + " operation succeeded for "
else if (event.isFailure())
tmpText = "[IDM] ERROR: User " + event.getChangeType() + " operation failed for "
else tmpText = "[IDM] IN PROGRESS: User " + event.getChangeType() + " operation in progress for "
tmpText + requestee?.getName()?.getOrig()
</code>
</script>
</subjectExpression>
<transport>mail</transport>
</simpleUserNotifier>
</handler>
<handler>
<simpleFocalObjectNotifier>
<name>Notify system administrator for role change</name>
<focusType>RoleType</focusType>
<recipientExpression>
<value> s.mamayeva at ktg.kz<mailto:s.mamayeva at ktg.kz> </value>
</recipientExpression>
<subjectExpression>
<script>
<code>
tmpObject = 'Role '
if (event.isSuccess())
tmpText = "[IDM] SUCCESS: " + tmpObject + event?.getChangeType() + " operation succeeded"
else if (event.isFailure())
tmpText = "[IDM] ERROR: " + tmpObject + event?.getChangeType() + " operation failed"
else tmpText = "[IDM] IN PROGRESS: " + tmpObject + event?.getChangeType() + " operation in progress"
return tmpText
</code>
</script>
</subjectExpression>
<transport>mail</transport>
</simpleFocalObjectNotifier>
</handler>
<mail>
<server>
<host>mail.ktg.kz<http://mail.ktg.kz></host>
<port>25</port>
<username>username at ktg.kz<mailto:username at ktg.kz></username>
<password>
<t:encryptedData>
<t:encryptionMethod>
<t:algorithm>http://www.w3.org/2001/04/xmlenc#aes128-cbc</t:algorithm>
</t:encryptionMethod>
<t:keyInfo>
<t:keyName>W13relKBKIJ7RbjVlHc67B2n4hj0=</t:keyName>
</t:keyInfo>
<t:cipherData>
<t:cipherValue>eu3gXghhxcaTal0Ok6cL+Bggk354SWLenpr2Mw70vjg=</t:cipherValue>
</t:cipherData>
</t:encryptedData>
</password>
<transportSecurity>none</transportSecurity>
</server>
<defaultFrom>Midpoint test</defaultFrom>
<debug>true</debug>
<redirectToFile>mail-notifications.log</redirectToFile>
</mail>
</notificationConfiguration>
Best regards,
Saule
s.mamayeva at ktg.kz<mailto:s.mamayeva at ktg.kz>
_______________________________________________
midPoint mailing list
midPoint at lists.evolveum.com<mailto:midPoint at lists.evolveum.com>
http://lists.evolveum.com/mailman/listinfo/midpoint
--
Gustáv Pálos
Identity Engineer
evolveum.com<http://evolveum.com/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20161005/5b3cd922/attachment.htm>
More information about the midPoint
mailing list