Self Hosted Redash Email Configuration

Hi Team,

I am using self-hosted Redash with the docker Images,

Now when I try to send the invitation the Mail goes to Maildev which is one of the docker images, But I have my own outgoing email services, I have to configure that in self-hosted redash configuration,

How I can configure the outgoing services in Self-Hosted server?

Thanks in Advance.

This is described in the setup https://redash.io/help/open-source/setup/

Thanks Ahjem,

I have read the link that you shared. Still not able to resolve the problem.

I have installed redash on CentOS 7 in VMware using a docker container. Could not find the file mentioned in the setup link i.e. /opt/redash/env so created a new one and set the configuration variables as mentioned.

Email still not working. Can someone help?

So you are running a base OS (unknown) + VM Ware (Centos) + Docker (Redash)?

We are using
Hosted on VM ware in that,
OS – Linux with distro CentOS 7

And Docker image for the redash.

With Docker you won’t modify /opt/redash/env directly. If you created this file yourself Redash won’t even see it. You modify the environment variables with docker-compose.yml

Thank you so much!

We have set Env variables at the time of running the docker containers,
Example: sudo REDASH_MAIL_SERVER=“xxxxxx.com” REDASH_MAIL_PORT=“123” REDASH_MAIL_USE_TLS=“true” REDASH_MAIL_USE_SSL=“true” REDASH_MAIL_USERNAME="abc@xyz.com" REDASH_MAIL_PASSWORD=“12345” REDASH_MAIL_DEFAULT_SENDER="abc@xyz.com" docker-compose up -d

Is there any other way to set the Environment of the configuration File in the docker?

From my previous reply:

Yes we have tried the same.
But not work for us.

Also, in the Logs not showing any error.

Can you let me know that how we can set the Environment Variable in the Docker?

We have set the variable in docker-compose.yml like this in the Email section

email:
image: djfarrelly/maildev
environment:
REDASH_MAIL_SERVER: “xxxx.xxxxxx.com
REDASH_MAIL_PORT: “123”
REDASH_MAIL_USE_TLS: “true”
REDASH_MAIL_USE_SSL: “true”
REDASH_MAIL_USERNAME: “abc@xyz.com
REDASH_MAIL_PASSWORD: “***************”
REDASH_MAIL_DEFAULT_SENDER: “abc@xyz.com

Is this is the correct way ?

seems like we have the same issue as well.

maybe there’s a bug in email configuration for self hosted in this version? @arikfr

Probably not. It works as expected for thousands and thousands of users :stuck_out_tongue:

Have you restarted the containers to that these changes take effect?

Yes, I have restarted the containers after the changes I have made.

Any another way to find what was setup we did it wrong ?

Hey !
This is my mail configuration under Redash V10.0.1 (self-hosted / docker installation).

#docker.compose.yml
REDASH_MAIL_SERVER: "mail.gnous.fr" #or smtp.gmail.com
REDASH_MAIL_USE_SSL: "true"
REDASH_MAIL_PORT: "465"
REDASH_MAIL_USERNAME: "example@domain.com"
REDASH_MAIL_PASSWORD: "..."
REDASH_MAIL_DEFAULT_SENDER: "example@domain.com"
REDASH_ENFORCE_CSRF: "true"
SERVER_NAME: ""
REDASH_HOST: "https://domain.com" #or ip_adress:port xxx.xxx.xx.xx:5000

See you :slight_smile:

1 Like