Hi Michal,

the parameters given with the message definition are merged with the
ones from the default section, so if you add a static value for the "to"
parameter in the section of the message, it will override the pattern
from the default section and send the message to your admin address.

Have a look at the definition of "enroll_approval_pending" in the
smtp.yaml example.

To set the mail from the SAN items you must modify the workflow yaml to
pass the values from the SAN to the "notify" activity similar to the way
it now receives the requestor information. I think you need to fiddle
around here a bit with Template Toolkit to filter out the relevant SAN
items from "cert_subject_alt_name".

Oliver

Am 31.05.21 um 12:04 schrieb Michal Moravec:
> Hi there,
>
> I have working basic notifications for manually issued certificates
> within OpenXPKI.
>
> I wonder how to setup notifications for EST/SCEP/RPC enrollment workflow.
> Currently I get no notification when certificate is issued by
> enrollment workflow because there is not recipient defined.
>> Failed sending notification - no receipient
>
> 1. How could I configure static recipient for enrollment (f.e.EST)
> workflow? (Notify the administrator)
>
> 2. Could I use email address from SAN in case of client certificates
> as a recipient address? (Notify the user. I am not probably going to
> use this but it might be interesting to know how to do it.)
>
> here my default config for sending SMTP notification.
>
>> default:
>>     cc: [email protected] <mailto:[email protected]>
>>     from: [email protected] <mailto:[email protected]>
>>     images:
>>         banner: head.png
>>     prefix: PKI [% meta_wf_id %]
>>     reply: [email protected] <mailto:[email protected]>
>>     to: '[% cert_info.requestor_email %]'
>
>
> S přátelským pozdravem,
>
>
> Logicworks <https://logicworks.cz>    
>       
> Michal Moravec        Apple system administrator
>
> Logicworks, s.r.o. <https://logicworks.cz>
> Argentinská 1621/36, Praha 7
> <https://www.google.cz/maps/place/Etnetera+Logicworks,+s.r.o./@50.1078991,14.4517256,17z/data=!3m1!4b1!4m5!3m4!1s0x470b94b2b61cb52d:0x6c88178df7f3ff49!8m2!3d50.1078957!4d14.4539143>
>
> www.logicworks.cz <https://logicworks.cz>| 778745013 <tel:778745013>
>
>
>
>
> _______________________________________________
> OpenXPKI-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/openxpki-users


-- 
Protect your environment -  close windows and adopt a penguin! 

_______________________________________________
OpenXPKI-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openxpki-users

Reply via email to