Redash deployed with docker email does not work


[root@htnalqappdsh01 redash]# docker exec -it 86dfc1bc91d4 bash
redash@86dfc1bc91d4:/app$ ./ send_test_mail
[2018-11-07 20:33:51,291][PID:50][INFO][root] Generating grammar tables from /usr/lib/python2.7/lib2to3/Grammar.txt
[2018-11-07 20:33:51,327][PID:50][INFO][root] Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
[2018-11-07 20:33:52,314][PID:50][INFO][root] Latest version: 5.0.2 (newer: True)
Traceback (most recent call last):
File “./”, line 9, in
File “/usr/local/lib/python2.7/dist-packages/click/”, line 716, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/flask/”, line 345, in main
return AppGroup.main(self, *args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/”, line 696, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/”, line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/”, line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/”, line 534, in invoke
return callback(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/”, line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/flask/”, line 229, in decorator
return __ctx.invoke(f, *args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/”, line 534, in invoke
return callback(*args, **kwargs)
File “/app/redash/cli/”, line 70, in send_test_mail
body=“Test message.”))
File “/usr/local/lib/python2.7/dist-packages/”, line 491, in send
with self.connect() as connection:
File “/usr/local/lib/python2.7/dist-packages/”, line 144, in enter = self.configure_host()
File “/usr/local/lib/python2.7/dist-packages/”, line 158, in configure_host
host = smtplib.SMTP(self.mail.server, self.mail.port)
File “/usr/lib/python2.7/”, line 256, in init
(code, msg) = self.connect(host, port)
File “/usr/lib/python2.7/”, line 316, in connect
self.sock = self._get_socket(host, port, self.timeout)
File “/usr/lib/python2.7/”, line 291, in _get_socket
return socket.create_connection((host, port), timeout)
File “/usr/lib/python2.7/”, line 575, in create_connection
raise err
socket.error: [Errno 97] Address family not supported by protocol