[keycloak-dev] Email custom header: KEYCLOAK-3605

Nikolay Petrovski to.petrovski at gmail.com
Wed Oct 12 09:01:35 EDT 2016


This is correct - I use slightly different realm settings with both
environments and I can pass different "from" addresses the same way I would
pass the custom headers. The constraint here is the Mail Server in front,
where I must use a specific From address, but I guess this case concerns
only me. If you believe having this feature (adding custom email headers)
is unnecessary for the product I will not spend time in developing it and
will close the ticket.


On Wed, Oct 12, 2016 at 3:45 PM, Stian Thorgersen <sthorger at redhat.com>
wrote:

> Would you not need different realm settings in either case? To set the
> different values for the email headers?
>
> On 12 October 2016 at 14:42, Nikolay Petrovski <to.petrovski at gmail.com>
> wrote:
>
>> Unfortunately the automated delivery process here does not allow me to
>> set-up a different "From" address. I can try to extend the default email
>> sender provider and add the custom headers there, although I believe having
>> and option to set-up X headers could be really handy for the product.
>>
>> On Wed, Oct 12, 2016 at 3:34 PM, Stian Thorgersen <sthorger at redhat.com>
>> wrote:
>>
>>> 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 at gmail.com>
>>> wrote:
>>>
>>>> Adding keycloak-dev
>>>>
>>>>
>>>> On Wed, Oct 12, 2016 at 3:13 PM, Nikolay Petrovski <
>>>> to.petrovski at 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 at 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 at 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 at lists.jboss.org
>>>>>>> https://lists.jboss.org/mailman/listinfo/keycloak-dev
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>


More information about the keycloak-dev mailing list