Andro encountered issues sending emails via Amazon SES while running Discourse behind an nginx reverse proxy, despite logs indicating successful delivery. After extensive troubleshooting and realizing their setup deviated from Discourse’s recommended standard install, they resolved the problem by purging corrupted Docker images and reinstalling Discourse from scratch. codinghorror had earlier suggested hiring an expert like @pfaffman for complex setups. Andro confirmed the fix and noted the benefit of running nginx and Discourse on the same server to serve static pages (like landing or donation pages) directly via the web server, as Discourse’s static page plugins appeared underdeveloped. The issue was not caused by nginx itself, but by Docker misconfiguration and setup complexity.
Using nginx to reverse proxy Discourse, I have followed half a dozen instructional posts, and the Discourse setup looks fine and everything works, and the logs show email sent with no errors indicated but they never get to Amazion SES. The setup is identical to my production system with the exception that I now want reverse proxy capability.
Is there any reason why nginx reverse proxy would stop emails, or in this case seemimgly make them disappear into thin air? [I know this sounds weird, but I do not know how to continue to debug these when there are no errors logged anywhere, only correct delivery messages.]
I am certain my Amazon SES is set up correctly as I use it for a lot of production systems.
Have you considered hiring someone like @pfaffman to assist? Based on post history, these setups you describe are rather complex, and substantially deviate from our simple recommended install.
Thank you for an excellent suggestion. But I have solved all the issues.
Indeed it was only this morning I came to the late realisation from reading that this discourse is for the standard recommended install only, which I must say is clearly a really good policy. So I am actually outside and down the back paddock.
It turns out that all my woes were due to a) added complexity, b) a complete mess of mussed up docker images due to being a docker newbie. Purging all the docker images totally, reinstallaing from scratch, now all works fine.
It’s a nice combination, having nginx and Discourse on the one server. I can have all the landing page, donations page, and so on on the web server. Discourse is superb forum software but I think static pages associated with it are best served by a web server, or so I read. The static page plugins I tried seemed very undeveloped.