# Sending e-mail to newly created users (Mender Open-Source Server)

**URL:** <https://hub.mender.io/t/sending-e-mail-to-newly-created-users-mender-open-source-server/5939>\
**Category:** General Discussions\
**Created:** [June 23, 2023, 9:33am UTC](https://hub.mender.io/t/sending-e-mail-to-newly-created-users-mender-open-source-server/5939 "2023-06-23T09:33:07Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![tamasfrei](https://avatars.discourse-cdn.com/v4/letter/t/3ab097/32.png) [@tamasfrei](https://hub.mender.io/u/tamasfrei)\
**Post date:** [June 23, 2023, 9:33am UTC](https://hub.mender.io/t/sending-e-mail-to-newly-created-users-mender-open-source-server/5939/1 "2023-06-23T09:33:07Z")

</div>

Hi all,  
[Mender Open-Source Server]

I have a question about the user management. New user creation requires adding an e-mail address to it’s account. When I create the new user, the user does not get the email containing the account credentials. Is it a bug or did I miss something during server configuration? Or the Open-Source Mender server does not support email sending? I search the documentation but I only find information about Account Role management.

Thank you.

Tom

---

<div class="post-metadata">

**Author:** ![robgio](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/robgio/32/1760_2.png) [@robgio](https://hub.mender.io/u/robgio)\
**Post date:** [June 23, 2023, 10:17am UTC](https://hub.mender.io/t/sending-e-mail-to-newly-created-users-mender-open-source-server/5939/2 "2023-06-23T10:17:03Z")

</div>

Hi @tamasfrei ,  
which Mender server configuration are you using? The Kubernetes setup?  
In that case, the Helm Chart came with default SMTP values like `localhost:25`, had you configured the values already?

> <https://github.com/mendersoftware/mender-helm/blob/master/README.md?plain=1#L165>

---

<div class="post-metadata">

**Author:** ![tamasfrei](https://avatars.discourse-cdn.com/v4/letter/t/3ab097/32.png) [@tamasfrei](https://hub.mender.io/u/tamasfrei)\
**Post date:** [June 23, 2023, 10:19am UTC](https://hub.mender.io/t/sending-e-mail-to-newly-created-users-mender-open-source-server/5939/3 "2023-06-23T10:19:26Z")

</div>

Thank you for the fast response.  
I used docker compose to set up the whole Mender Server.  
[https://docs.mender.io/3.4/server-installation/installation-with-docker-compose](https://docs.mender.io/3.4/server-installation/installation-with-docker-compose)

---

<div class="post-metadata">

**Author:** ![robgio](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/robgio/32/1760_2.png) [@robgio](https://hub.mender.io/u/robgio)\
**Post date:** [June 23, 2023, 12:26pm UTC](https://hub.mender.io/t/sending-e-mail-to-newly-created-users-mender-open-source-server/5939/4 "2023-06-23T12:26:47Z")

</div>

Hi @tamasfrei  
the `workflows-worker` service is the one that sends emails: it took SMTP conf from env variables.  
Here the basic env vars: [integration/docker-compose.yml at master · mendersoftware/integration · GitHub](https://github.com/mendersoftware/integration/blob/master/docker-compose.yml#L202)

If you need customization you can add environment variables as required. You can find the available env vars from the default [config](https://github.com/mendersoftware/workflows/blob/master/config.yaml#L87).

For example you can customize the docker-compose.yml with:

```auto
    mender-workflows-worker:
        image: mendersoftware/workflows-worker:mender-master
        command: worker --excluded-workflows generate_artifact,generate_delta_artifact
        environment:
            WORKFLOWS_MONGO_URL: mongodb://mender-mongo:27017
            DEVICECONNECT_ADDR: "mender-deviceconnect:8080"
            HAVE_DEVICECONNECT: 1
            HAVE_DEVICECONFIG: 1
            DEVICECONFIG_ADDR: "mender-deviceconfig:8080"
            WORKFLOWS_SMTP_HOST: smtp.gmail.com
            WORKFLOWS_SMTP_USERNAME: my-username
            ....

```

Please ensure you have a valid SMTP server in place.

---

<div class="post-metadata">

**Author:** ![oldev](https://avatars.discourse-cdn.com/v4/letter/o/3be4f8/32.png) [@oldev](https://hub.mender.io/u/oldev)\
**Post date:** [October 23, 2023, 8:49am UTC](https://hub.mender.io/t/sending-e-mail-to-newly-created-users-mender-open-source-server/5939/5 "2023-10-23T08:49:30Z")

</div>

Hi @robgio,

I ran into the same issue on a kubernetes based instance open-source server.

I configured smtp via the global.smtp values and did a pod restart of the workflows worker.

However, new users do not receive a password reset mail. Sadly there are no error logs in the workflows worker. Is there a way to troubleshoot this?

And would the reset link even work in the Open Source version? Considering this response:

> [Password reset feature is not available in the open source.](https://hub.mender.io/t/cannot-initiate-password-reset/5342/4)

---

<div class="post-metadata">

**Author:** ![oldev](https://avatars.discourse-cdn.com/v4/letter/o/3be4f8/32.png) [@oldev](https://hub.mender.io/u/oldev)\
**Post date:** [November 6, 2023, 2:05pm UTC](https://hub.mender.io/t/sending-e-mail-to-newly-created-users-mender-open-source-server/5939/6 "2023-11-06T14:05:15Z")

</div>

Hi @robgio and @kjaskiewiczz,

Can someone please clarify if the “password reset feature via mail” feature is supported in the open source version?

I’d like to know if this checkbox can be ignored:  
 ![2023-11-06 14_49_00-Mender](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/2X/e/e492f3340daa81402946f435f42b9aa9b35e0817.png)

Kind regards

---

<div class="post-metadata">

**Author:** ![kjaskiewiczz](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/kjaskiewiczz/32/807_2.png) [@kjaskiewiczz](https://hub.mender.io/u/kjaskiewiczz)\
**Post date:** [November 7, 2023, 1:44pm UTC](https://hub.mender.io/t/sending-e-mail-to-newly-created-users-mender-open-source-server/5939/7 "2023-11-07T13:44:07Z")

</div>

Hi,

Unfortunately, this functionality is not available in the opens source version of Mender backend.
