-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possible to run under an existant nginx ? #70
Comments
Instead of
try
And probably you do not need this
because nginx directly communicates with container. |
Totally agree with @TitanFighter. I do have Nginx as a reverse proxy dealing with SSL on my server. I am exporting the 443 port as 8443
then my nginx locaton section is as follows:
Hope this helps BTW this is my full configuraton:
|
Can yo u say where the configuration file is? I'd like to register iRedmail on mail.mydomainexample.com but I'm having trouble with that. I tried the following:
but did not work. Any help would be appreciated :)
|
With what you got you already have all you need. I mean running that command you will propagate internal nginx to your host system, so if you point DNS over there you are done. However, you also need to propagate other ports, e.g., 25, 587 for email server itself. To the configuration. The docker image contains nginx already with following configuration
|
The DNS records are already pointing to the desirable subdomain, but iRedMail is still not working. My goal is to have subdomains like mail.example.com, cloud.example.com, gitlab.example.com, and so on. So, I followed this tutorial and set a nginx proxy container. The nginx proxy listens to traffic on ports 80 and 443 and redirects it to the correct container (but is not working for iRedMail only). iRedmail does work if, for example, I configure docker to redirect ports 8080 and 8443 in the host to ports 80 and 443 in the container, respectively. I guess the problem is that there are two nginx: one in the nginx proxy, and the other in your iRedMail docker image. Could you help to tackle this? I'm quite lost because I've just started using Docker and Nginx three days ago (before, I used to use the traditional LAMP setup). |
I also use mail.domain.com. If you wish I can share docker compose settings tomorrow. If you do not want to use docker compose then at least you can see how it works and can convert docker compose settings back to just simple docker yourself. |
Yes, please share the compose settings :) that will be helpful |
@AndreSouzaAbreu
Run both, the 1st one is Using Change |
@TitanFighter thank you! that worked! But for some reason I cann't login into [email protected] .. could you send me a message (andresouzaabreu.dev at gmail.com) for us to discuss it elsewhere? To avoid flooding here |
I have just one idea - from this example |
@AndreSouzaAbreu just had your problem for some reason. Here is the instruction how to reset password. Basically you need to |
Thanks @TitanFighter , I will try that out. I have a guess about why this is happening. I had a similar problem with passwords when seeding a database of a webserver. The passwords were stored in plain text in the databse. When the user tried to login, the password the user entered would be hashed and then compared to the value in the database. If the values were different, the user wouldn't login. Since the values seeded into the database were not hashed, the user accounts that were created in the seeding process would never be able to login. I think that a similar thing is happening here with iRedMail. In the case of my webserver, I was able to solve this by hashing the passwords in the seeding process. |
Hi all,
First thank's for this image :)
I would like to run the container under an existant nginx, so i run the contener like this :
My email.conf in nginx :
But when i go on email.domain.tld any browser say "bad redirection"
What i am missing ?
Hope someone can help me
Best regards.
The text was updated successfully, but these errors were encountered: