Send Notification to more than one address

Hello @all!

I try to optimize my workflow to get missing certificates. The old way: The user tries to send an e-mail to a domain with the policy “mandatory”. If this is impossible because a certificate is missing, the system notifies him, that this process failed. Now the user has to notify me about this error and i have to get the certificate and add it to the cyphermail-gateway. So far, so good.

What i try: The notification about the failed encryption has to be send to the original user AND to my ticketsystem. In the template i have informed the user, that this notificachion was send to the administrator. If possible, i would send it to my ticketsystem as “Bcc:”, but if not, its ok.

I tried to customize my template for notification about failed encryption and putted the address to all possible fields, but no luck.

From: <${from!"postmaster"}>
<#if to??>
To: <#list to as recipient><${recipient}><#if recipient?has_next>, </#if>, ciphermail@mydomain.de</#list>
</#if>
<#if replyTo??>
Reply-To: <${replyTo}>
</#if>
Subject: Die E-Mail konnte...
From: <${from!"postmaster"}>
<#if to??>
To: <#list to as recipient><${recipient}><#if recipient?has_next>, </#if></#list>
</#if>
Cc: ciphermail@mydomain.de
<#if replyTo??>
Reply-To: <${replyTo}>
</#if>
Subject: Die E-Mail konnte...

The communication to all mailservers (inbound, outbound) is ok. When i try to send a testmail from MTA → actions → send e-mail, all mails arrive the recipients (multiple recipients in th “To:”-field too).

In users outlook i can see both recipients in the mailinformations, so the fields are correct filled. It seems, ciphermail sends the notification just as answer to the original sender and ignores the fields in the template.

Can i archive my goal with ciphermail or has i to inform my users, that they has to send me theyr error-notifications?

Greets

Steffen