Getting “Bad Gateway” when setting up Stalwart in Docker? This may solve it.

When Setting up Stalwart v0.16.x as a Docker container behind a reverse proxy, I ran head-first into one its security features, Autoban. Because every connection to Stalwart goes through Docker, everything seems to come from a single IP address, which at some point will trigger Autoban and add the Docker bridge to the blocklist and [ ]