'Mailcow dockerized nginx reverse proxy, can't connect

So basically i tried setting up the mailcow dockerized, I can send and receive mail via the web UI but when trying to connect other applications to it, it doesn't connect. Not sure where I'm going wrong honestly, so any help is more than appreciated.

Nginx server block: Nginx server block

Here are the results from netstat -tulpn on those ports

❯ sudo netstat -tulpn | grep 143
tcp        0      0 0.0.0.0:143             0.0.0.0:*               LISTEN      23180/docker-proxy
tcp6       0      0 :::143                  :::*                    LISTEN      23191/docker-proxy
❯ sudo netstat -tulpn | grep 587
tcp        0      0 0.0.0.0:587             0.0.0.0:*               LISTEN      23007/docker-proxy
tcp6       0      0 :::587                  :::*                    LISTEN      23013/docker-proxy

Mail not connecting



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source