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

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

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?

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

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

If you need customization you can add environment variables as required. You can find the available env vars from the default config.

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

    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.

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.

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

Kind regards

Hi,

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