getredash / redash

Make Your Company Data Driven. Connect to any data source, easily visualize, dashboard and share your data.
http://redash.io/
BSD 2-Clause "Simplified" License
25.92k stars 4.34k forks source link

Claims that mailserver is not configured, however test-mail works fine. #7129

Closed gr4ssi closed 1 week ago

gr4ssi commented 3 weeks ago

Issue Summary

Redash says, mailserver not configured, also test email works great and it is configured.

Steps to Reproduce

  1. Installed a fresh redash instance on Ubuntu 24 latest in our local network on 192.168.115.69.
  2. Set the /opt/redash/env to

REDASH_HOST=https://192.168.115.69 REDASH_MAIL_SERVER=192.168.115.254 REDASH_MAIL_PORT=25 REDASH_MAIL_USE_TLS=YES REDASH_MAIL_DEFAULT_SENDER=redash@our.maildomain.com

  1. Restartet the linux host and tested sending with docker compose run --rm server manage send_test_mail -> Mail arrives fine, meaning my mailserver works.

  2. Trying to invite a new user via email: Now, on user-invite, the website tells me that my mailserver is not set up. :-(

grafik

I consider this a bug since the test-mail works and the redash server thinks it doesn't.

Technical details:

gr4ssi commented 2 weeks ago

okay, this bug is super annoying, anything I can do to help find the cause or fix it? thanks!

gr4ssi commented 2 weeks ago

doing IP based passwordless relaying in our internal network, testmail going out via exim in the firewall, then getting delivered on MS 365 just fine

justinclift commented 2 weeks ago

Yeah, that sounds like a bug we should look into.

gr4ssi commented 1 week ago

@justinclift Seems I found out why it didn't work. I'm not familiar with docker and docker compose. The documentation still says, use "docker-compose up -d". That command should be exectuted without the "-" however on Ubuntu 24. So I thought, a server reboot would do the trick - but it didn't. After running docker compose up -d , it seems to work now. ^^ Sorry for the confusion. ^^

I'd kindly suggest to change "docker-compose" to "docker compose" in the documentation here: https://redash.io/help/open-source/setup/#Mail-Configuration.