Postfix Email Setup


#1

Is there a way to setup redash to use Postfix? I currently have postfix configured to send emails through my instance though for redash it doesn’t seem to work.

Here is what I get when attempting to send a test email using bin/run ./manage.py send_test_mail –
[2018-02-15 17:16:01,025: WARNING/MainProcess] celery@redash ready.
[2018-02-15 17:16:17,347: ERROR/Worker-2] redash.tasks.send_mail[71b4c4dd-c214-4bee-ba45-f0b6f9453fe2]: Failed sending message: Reset your password
Traceback (most recent call last):
File “/opt/redash/redash.2.0.0.b2990/redash/tasks/general.py”, line 57, in send_mail
mail.send(message)
File “/usr/local/lib/python2.7/dist-packages/flask_mail.py”, line 491, in send
with self.connect() as connection:
File “/usr/local/lib/python2.7/dist-packages/flask_mail.py”, line 144, in enter
self.host = self.configure_host()
File “/usr/local/lib/python2.7/dist-packages/flask_mail.py”, line 156, in configure_host
host = smtplib.SMTP_SSL(self.mail.server, self.mail.port)
File “/usr/lib/python2.7/smtplib.py”, line 801, in init
SMTP.init(self, host, port, local_hostname, timeout)
File “/usr/lib/python2.7/smtplib.py”, line 256, in init
(code, msg) = self.connect(host, port)
File “/usr/lib/python2.7/smtplib.py”, line 316, in connect
self.sock = self._get_socket(host, port, self.timeout)
File “/usr/lib/python2.7/smtplib.py”, line 806, in _get_socket
new_socket = socket.create_connection((host, port), timeout)
File “/usr/lib/python2.7/socket.py”, line 575, in create_connection
raise err
error: [Errno 111] Connection refused

I use a sasl db for the password so there is no password to reset. Thoughts or ideas?

BTW – I have setup the .env for email.