root@mail:/opt/mailcow-dockerized# docker compose up -d –build
[+] Running 18/19
✔ Network mailcowdockerized_mailcow-network Created 0.1s
✔ Container mailcowdockerized-dockerapi-mailcow-1 Started 1.2s
✔ Container mailcowdockerized-sogo-mailcow-1 Started 1.5s
✔ Container mailcowdockerized-olefy-mailcow-1 Started 1.2s
✔ Container mailcowdockerized-unbound-mailcow-1 Healthy 31.7s
✔ Container mailcowdockerized-memcached-mailcow-1 Started 1.5s
✔ Container mailcowdockerized-netfilter-mailcow-1 Started 1.1s
✔ Container mailcowdockerized-redis-mailcow-1 Started 1.5s
✔ Container mailcowdockerized-mysql-mailcow-1 Started 1.6s
✔ Container mailcowdockerized-clamd-mailcow-1 Started 32.0s
✔ Container mailcowdockerized-php-fpm-mailcow-1 Started 1.8s
✔ Container mailcowdockerized-dovecot-mailcow-1 Started 2.3s
✔ Container mailcowdockerized-postfix-mailcow-1 Started 32.1s
✔ Container mailcowdockerized-rspamd-mailcow-1 Started 32.1s
✔ Container mailcowdockerized-ofelia-mailcow-1 Started 2.5s
⠴ Container mailcowdockerized-nginx-mailcow-1 Starting 32.4s
✔ Container mailcowdockerized-acme-mailcow-1 Created 0.1s
✔ Container mailcowdockerized-watchdog-mailcow-1 Created 0.1s
✔ Container mailcowdockerized-ipv6nat-mailcow-1 Created 0.0s
Error response from daemon: failed to set up container networking: driver failed programming external connectivity on endpoint mailcowdockerized-nginx-mailcow-1 (6a7af234c4ceed12b7d09959b26d0481ec7e3dfd1300cb243247778508939d1d): failed to bind host port for 0.0.0.0:80:172.22.1.10:80/tcp: address already in use

I am getting the above error:

I’m running a website on nginx on port 80, but when I try to run Mailcow on the same server (which is quite powerful), I’m getting the error: “failed to bind host port for 0.0.0.0:80:172.22.1.10:80/tcp: address already in use.”

docs.mailcow.email Icon Prepare your system - mailcow: dockerized documentation


“Please check if any of mailcow’s standard ports are open and not in use by other applications

You cannot run your nginx AND mailcow on port 80. Probably you need a reverse proxy, your existing nginx can do this:
docs.mailcow.email Icon Overview - mailcow: dockerized documentation


So basically mailcow needs to be bind on different ports, and your existing nginx needs to reverse proxy to those ports.
See also the sample nginx config for that in that link.

Have something to say?

Join the community by quickly registering to participate in this discussion. We'd like to see you joining our great moo-community!

Okay. Let me check that. Thank you.

It is solved. Thank you sir.

It is solved. Thank you @[deleted]

Hi @esackbauer

I have setup everything and email sent successfully. However, I am not able to receive the email. I have sent some emails from the other domain and it says the email sent successfully but not received in my SoGo client. Please be noted that I am able to send the emails but not receiving.

I have fixed the issue.

Thank you.

No one is typing