X509 mail notification

Hello,

I´ve installed the x509 module. My goal is to receive an email when a certificate is issued.
But only from the networks that are automatically scanned, so that we do not have to set up each individual server with a certificate query.
How do i do this? I have already a Postfix Server and the Icinga Director which can send already Mails.

Information:
It is a Centos 7.