Hello Everyone, When i invite member to signoz, th...
# support
p
Hello Everyone, When i invite member to signoz, then why mail has not been sent to them?
p
Hi @Parth prajapati 👋 When inviting users in self-hosted SigNoz, you will need to manually copy and share the invitation URL. For the invitation email to be sent automatically, you will need to configure SMTP by setting the following environment variables in
query-service
.
Copy code
SMTP_ENABLED: "true"
SMTP_PORT: "587"
SMTP_USERNAME: user
SMTP_FROM: <mailto:signoz@domain.com|signoz@domain.com>
SMTP_PASSWORD: pwd
SMTP_HOST: <http://smtp.domain.com|smtp.domain.com>
p
Hello @Prashant Shahi, i have added this in env in statefulset of "query-service", like this, and restarted my statefulset, but still it cannot able to send a mail. - name: SMTP_ENABLED value: "true" - name: SMTP_PORT value: "587" - name: SMTP_USERNAME value: user - name: SMTP_FROM value: signoz@domain.com - name: SMTP_PASSWORD value: pwd - name: SMTP_HOST value: smtp.domain.com
p
Two things here: • The shared values are example ones - you need to set your SMTP configuration - you can get it from your mailing tool/server • it is advised to not modify the statefulset directly. Do include the environment variables using the following in your Helm override values:
Copy code
queryService:
  additionalEnvs:
    SMTP_ENABLED: "true"
    SMTP_PORT: "587"
    SMTP_USERNAME: user
    SMTP_FROM: <mailto:signoz@domain.com|signoz@domain.com>
    SMTP_PASSWORD: pwd
    SMTP_HOST: <http://smtp.domain.com|smtp.domain.com>
p
ok
e
@Prashant Shahi @Vishal Sharma still not able to inlcude this. What do you mean by queryService/addtionalEnvs? getting errors when I add this. Here is what i tried in /signoz/deploy/docker/clickhouse-setup/docker-compose.yaml:
p
The above shared instructions was for Kubernetes
For docker, it is container environment section in docker-compose YAML. In the shared image, I see that you have used
:
instead of
=
e
thank you for clearing that up @Prashant Shahi I updated it but still getting this error. I also tried with and without “”
@Prashant Shahi Am I missing something here?
p
The one configured is only for email invitation for new users
For Alert Email channel to work, you will need to see Alertmanager SMTP envs.
e
I have tried both of these methods. I don’t get an invite email nor does the test work
p
is the port
465
correct here? Try using
587
instead.
e
@Prashant Shahi we’ve used port 465 for all other applications, switching to 587 in Signoz solved our problem on the alert manager as well as the invitation email. Thank you!