3f1c49ca2c9032e5a01a72dcdcc9aa282b5e71b5
By:
maxgonpe

How can I run MAILU over nginx without port conflict ??

August 23, 2017 279 views
Nginx Ubuntu

I need if someone, already had the experience of using MAILU with NGINX and as solved???.

Help, I need to install a mail server on ubuntu 16.10 with python-django, I got "MAILU" for which I have to install "DOCKER" and "DOCKER-COMPOSE", but I have a port conflict and it did not make it work. In case of turning off the ngix, then if I run the MAILU boot with the command "docker-compose up -d". The conflict that throws me is:

Mailusmtp1 is up-to-date
Starting mailuhttp1 ...
Mailuwebdav1 is up-to-date
Starting mailuhttp1
Mailuredis1 is up-to-date
Mailuwebmail1 is up-to-date
Mailumilter1 is up-to-date
Mailuadmin1 is up-to-date
Mailuantispam1 is up-to-date
Mailuantivirus1 is up-to-date
Mailufetchmail1 is up-to-date
Starting mailuhttp1 ... error

ERROR: for mailuhttp1 Can not start service http: driver failed programming external connectivity on endpoint mailuhttp1 (4132534f58d2e8afc0482f0b24024674b0d8ae327a97bc902941e4806ef95ae4): Error starting userland proxy: listen tcp 127.0.0.1:80: bind: address already in use

ERROR: for http Can not start service http: driver failed programming external connectivity on endpoint mail: 4132534f58d2e8afc0482f0b24024674b0d8ae327a97bc902941e4806ef95ae4: Error starting userland proxy: listen tcp 127.0.0.1:80: bind: address already in use
ERROR: Encountered errors while bringing up the project.
Root @ max: / mailu #

Well, more than anything I need if someone, already had the experience of using MAILU with NGINX and as solved???.

Finally another way to configure a powerful mail server, ie something that is tested and works well. Thank you, Thank you.

2 Answers

@jtittle

I was seeing the issue of changing the listening port of nginx, I want to install a mail server, What seems to be a good "MAILU" option, to which I must install Docker and Docker-compose, after this I try to run the matter with the command docker-compose up -dy throws me this error:

ERROR: for mailuhttp1 Can not start service http: driver failed programming external connectivity on endpoint mailuhttp1 (4132534f58d2e8afc0482f0b24024674b0d8ae327a97bc902941e4806ef95ae4): Error starting userland proxy: listen tcp 127.0.0.1:80: bind: address already in use

ERROR: for http Can not start service http: driver failed programming external connectivity on endpoint mail: 4132534f58d2e8afc0482f0b24024674b0d8ae327a97bc902941e4806ef95ae4: Error starting userland proxy: listen tcp 127.0.0.1:80: bind: address already in use
ERROR: Encountered errors while bringing up the project.

When I turn off the nginx server, I get this and the recommendation is to change the ports to nginx, that's why I come to you, to suggest me, if it's convenient to do it or there's another way, and clear as it does in nginx, which files Must be modified ??

  • @maxgonpe

    It looks like Mailu runs in a docker container, though it may be trying to set up a proxy to pass on requests over 80/443 to the container, which is why it'd conflict if you already have NGINX as it won't connect on ports that another service is already listening on.

    If you want to run a mail server, ideally, I'd recommend running it on its own Droplet that way you have separation of the web server from the mail server which would also prevent these conflicts as well as any special configurations.

@jtittle

Thanks john for your quick response, ok. Then I should enable a new droplet, just to use Mailu, humm .. I wanted to try to use the domain name of each droplet with its mail service included (that was the idea). Since the option of D.O. Is a monthly amount. Now I must investigate if from the droplet I can house the mail from the other droplets. Can you recommend any more alternatives?

Have another answer? Share your knowledge.