-
EDIT: see my comment here too. Hi - I'm running the docker image on an Ubuntu 22.04 machine with Postfix, but Rallly can't send mail. I'm also running Discourse on the same machine, and Discourse is sending mail out successfully using SMTP from its container in a similar way to Rallly. The Rallly container can see the mail server (when I connect to it with
But when I try to connect from the container with:
If I try that from within the Discourse container, it connects and comes back with the relevant handshake. When I run
Does anyone have any tips on how to troubleshoot this? My Rallly config is:
My postfix listener on port 587 is configured as follows:
If I send a test mail from the host using Rallly's login, it works fine. Why can't Rallly send mail in the same way? Any help appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 2 replies
-
Hi, I have the same issue, did you solve it ? Nicolas |
Beta Was this translation helpful? Give feedback.
-
Hey I did it
…On Fri, Jun 21, 2024, 15:46 Jonathan ***@***.***> wrote:
Unfortunately not. My Discourse docker container happily sends out
hundreds of emails a day via its SMTP settings, while Rallly times out. So
I'm forced to assume it's something about Rallly. If anyone else has it
working, it would be great to see how they're doing it.
BTW when I changed the postfix entry for $mynetworks from 172.17.0.0/16
to 172.0.0.0/8 it let a spammer in. So maybe don't do that :-)
—
Reply to this email directly, view it on GitHub
<#1092 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANAXWUCDLZ6SMSHXECGKRO3ZIQVC3AVCNFSM6AAAAABHPD7UVOVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TQNBQGIZDK>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Any idea how?
|
Beta Was this translation helpful? Give feedback.
-
So, to make it work I added the variable SMTP_TLS_ENABLED to true and I disable the variable SMTP_SECURE (false). Hope this will help. |
Beta Was this translation helpful? Give feedback.
-
I think I've found a clue. Rallly's network config seems to be a custom, user-defined network: Is there something about the fact that Rallly's using its own network config and not a bridge configuration that's leading to this problem? It also may be relevant that my mail server is not listening on the same interface as the web server is (there are two IP addresses on the machine, and Rallly's web UI is working fine). Perhaps Rallly's not working with multi-homed systems? If I ping what the Docker container gives for the Gateway address, it resolves to the hostname of the web server, not the IP the mail server listens on. When I do that inside the Discourse container, it returns nothing (not sure what that means...) Rallly:
Discourse:
EDIT: I've just installed Rallly on a VM using the same config as I have on my production server and it works. So this does seem likely it's a multi-homing problem. |
Beta Was this translation helpful? Give feedback.
-
Opening up inbound port 587 on all interfaces cures the problem. This is I think because the docker compose file causes the container to create a new interface (called |
Beta Was this translation helpful? Give feedback.
Opening up inbound port 587 on all interfaces cures the problem. This is I think because the docker compose file causes the container to create a new interface (called
br-36bedc370406
, but I think that changes each time its started) which the firewall didn't know about. I had previously only had all traffic open ondocker0
.