Could you not just set the from email differently and filter based on that?
On 12 October 2016 at 14:17, Nikolay Petrovski <to.petrovski(a)gmail.com>
wrote:
Adding keycloak-dev
On Wed, Oct 12, 2016 at 3:13 PM, Nikolay Petrovski <to.petrovski(a)gmail.com
> wrote:
> Well, the use-case I reached is based on the fact that I rule 2 different
> Keycloak environments (lets call them "prod" and "test") from the
same
> subnet + 1 Mail server on top.
>
> All emails are received from one and the same IP address, and in the Mail
> Server I have to figure out which Keycloak has sent the email so a specific
> rule will be applied (quarantine the emails from the "test" server for
> instance).
>
> Any idea how to distinguish emails sent from different Keycloak instances
> without using a custom email headers?
>
>
>
> On Wed, Oct 12, 2016 at 2:46 PM, Stian Thorgersen <sthorger(a)redhat.com>
> wrote:
>
>> I'm not convinced this is needed. What's the actual use-case?
>>
>> You could also just extend the built-in email sender and add the headers
>> there.
>>
>> On 12 October 2016 at 09:51, Nikolay Petrovski <to.petrovski(a)gmail.com>
>> wrote:
>>
>>> Hello, I would like to start working on
>>>
https://issues.jboss.org/browse/KEYCLOAK-3605 - implementing custom
>>> X-headers for the outbound emails that Keycloak is sending.
>>> _______________________________________________
>>> keycloak-dev mailing list
>>> keycloak-dev(a)lists.jboss.org
>>>
https://lists.jboss.org/mailman/listinfo/keycloak-dev
>>>
>>
>>
>