Configure SMTP for outbound emails
For the system to be able to send emails, set the mail server to use and the host name of your Re:dash server. Do this by adding the lines below in the /opt/bitnami/redash/.env file inside the Redash installation directory.
The example shown below uses Gmail for outbound email. Remember to update this with equivalent values for your SMTP host or, if using Gmail, replace the USERNAME and PASSWORD placeholders with correct values for your Gmail account.
export REDASH_MAIL_SERVER="smtp.gmail.com" # default: localhost export REDASH_MAIL_PORT="587" # default: 25 export REDASH_MAIL_USE_TLS="true" # default: False export REDASH_MAIL_USE_SSL="true" # default: False export REDASH_MAIL_USERNAME="USERNAME@gmail.com" # default: None export REDASH_MAIL_PASSWORD="PASSWORD" # default: None export REDASH_MAIL_DEFAULT_SENDER="USERNAME@gmail.com" # Email address to send from export REDASH_HOST="" # base address of your re:dash instance, for example: "https://demo.redash.io"
After making the changes, restart all servers:
$ sudo /opt/bitnami/ctlscript.sh restart
To configure the application to use the SMTP service provided by Amazon Simple Email Service (SES), refer to the guide on using Amazon SES.
NOTE: Amazon EC2 blocks SMTP port 25 by default on all Amazon EC2 instances, and you must manually request removal of this restriction to use this port.
To configure the application to use other third-party SMTP services for outgoing email, such as SendGrid, refer to the FAQ.