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
robgio
June 23, 2023, 10:17am
2
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?
| `global.s3.AWS_SECRET_ACCESS_KEY` | AWS S3 / MinIO access key | `mysecretkey` |
| `global.s3.AWS_SERVICE_ACCOUNT_NAME` | Use K8s service account instead of `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` to access the bucket. | `""` |
| `global.s3.AWS_FORCE_PATH_STYLE` | Set the AWS S3 URI style to path | `true` |
| `global.s3.AWS_TAG_ARTIFACT` | Tag the artifact in the AWS S3 storage service with the tenant ID | `true` |
| `global.azure.AUTH_CONNECTION_STRING` | Azure Blob Storage connection string | `""` |
| `global.azure.AUTH_SHARED_KEY_ACCOUNT_NAME` | Azure Blob Storage shared key account name | `""` |
| `global.azure.AUTH_SHARED_KEY_ACCOUNT_KEY` | Azure Blob Storage shared key account key | `""` |
| `global.azure.AUTH_SHARED_KEY_URI` | Azure Blob Storage shared key URI | `""` |
| `global.azure.CONTAINER_NAME` | Azure Blob Storage container name | `mender-artifact-storage` |
| `global.smtp.EMAIL_SENDER` | SMTP email sender | `root@localhost` |
| `global.smtp.SMTP_HOST` | SMTP server address | `localhost:25` |
| `global.smtp.SMTP_AUTH_MECHANISM` | SMTP auth mechanism (Valid values: PLAIN, CRAM-MD5) | `PLAIN` |
| `global.smtp.SMTP_USERNAME` | SMTP server username | `null` |
| `global.smtp.SMTP_PASSWORD` | SMTP server password | `null` |
| `global.smtp.SMTP_SSL` | Enable the SSL connection to the SMTP server | `false` |
| `global.url` | Public URL of the Mender Server, replace with your domain | `https://mender-api-gateway` |
| `default.affinity` | Optional affinity values that applies to all the resources | `nil` |
| `default.toleration` | Optional toleration values that applies to all the resources | `nil` |
| `dbmigration.enable` | Helm Chart hook that trigger a DB Migration utility just before an Helm Chart install or upgrade | `true` |
| `dbmigration.annotations` | Annotations for the DB Migration utility | `nil` |
| `dbmigration.backoffLimit` | BackoffLimit for the DB Migration utility | `5` |
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
robgio
June 23, 2023, 12:26pm
4
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.
oldev
October 23, 2023, 8:49am
5
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.
oldev
November 6, 2023, 2:05pm
6
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:
Kind regards
Hi,
Unfortunately, this functionality is not available in the opens source version of Mender backend.