# Email for password update called from inside a container

**URL:** <https://forum.keycloak.org/t/email-for-password-update-called-from-inside-a-container/21289>\
**Category:** Configuring the server\
**Created:** [April 4, 2023, 1:42pm UTC](https://forum.keycloak.org/t/email-for-password-update-called-from-inside-a-container/21289 "2023-04-04T13:42:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![asilva](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/asilva/32/8170_2.png) [@asilva](https://forum.keycloak.org/u/asilva)\
**Post date:** [April 4, 2023, 1:42pm UTC](https://forum.keycloak.org/t/email-for-password-update-called-from-inside-a-container/21289/1 "2023-04-04T13:42:27Z")

</div>

Hi all,

We have a setup with Kubernetes where Keycloak is running in one pod. And we have a service running in another pod which is responsible for creating the users. The problem is that when we call the request from that service for user perform an action to update his password, the email is sent out from Keycloak with a link pointing to its local address (local for the k8s cluster), since that was the url used by that service. Then the user can’t reach that address. Is there a way to make that link to use the fqdn setup for the keycloak instead?

BR,  
Alvaro Silva

---

<div class="post-metadata">

**Author:** ![dasniko](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/dasniko/32/2969_2.png) [@dasniko](https://forum.keycloak.org/u/dasniko)\
**Post date:** [April 4, 2023, 2:04pm UTC](https://forum.keycloak.org/t/email-for-password-update-called-from-inside-a-container/21289/2 "2023-04-04T14:04:34Z")

</div>

Use proper hostname configuration:

> **[Configuring the hostname - Keycloak](https://www.keycloak.org/server/hostname)**
>
> Keycloak is an open source identity and access management solution
