[GH-ISSUE #1680] Unable to login with admin user when IMAP is forwarded from WAN #1323

Closed
opened 2026-02-27 11:16:31 +03:00 by kerem · 5 comments
Owner

Originally created by @Razorblade12 on GitHub (Feb 22, 2019).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/1680

Impacted versions

  • Modoboa: 1.12.2
  • installer used: Yes
  • Webserver: Nginx

Steps to reproduce

Enable Port Forwarding for IMAP(s) to local mail server on firewall. Login with user that has any administrative role

Current behavior

Unable to login, error message 504 Gateway Time-Out

Expected behavior

Administrative user is able to login

Additional information

As soon as the Port forwarding rule is disabled on the firewall login is possible.
Login with any user that does not have an administrative role is always possible.

You can even try a simple user with the firewall rule active. That user is able to login. When the user's role is then changed to Domain Administrator or Super Administrator the login is not possible.

Originally created by @Razorblade12 on GitHub (Feb 22, 2019). Original GitHub issue: https://github.com/modoboa/modoboa/issues/1680 # Impacted versions * Modoboa: 1.12.2 * installer used: Yes * Webserver: Nginx # Steps to reproduce Enable Port Forwarding for IMAP(s) to local mail server on firewall. Login with user that has any administrative role # Current behavior Unable to login, error message 504 Gateway Time-Out # Expected behavior Administrative user is able to login # Additional information As soon as the Port forwarding rule is disabled on the firewall login is possible. Login with any user that does not have an administrative role is always possible. You can even try a simple user with the firewall rule active. That user is able to login. When the user's role is then changed to Domain Administrator or Super Administrator the login is not possible.
kerem 2026-02-27 11:16:31 +03:00
Author
Owner

@tonioo commented on GitHub (Feb 25, 2019):

@Razorblade12 Strange... Are you talking about authentication to the web frontend? What is the first url the user is redirected to after authentication?

<!-- gh-comment-id:466948515 --> @tonioo commented on GitHub (Feb 25, 2019): @Razorblade12 Strange... Are you talking about authentication to the web frontend? What is the first url the user is redirected to after authentication?
Author
Owner

@Razorblade12 commented on GitHub (Feb 27, 2019):

@tonioo Yes, the authentication to the web frontend.
After entering credentials and pressing enter the message "504 Gateway Time-Out" appears with the "/dashboard" URL after several seconds.

<!-- gh-comment-id:467765933 --> @Razorblade12 commented on GitHub (Feb 27, 2019): @tonioo Yes, the authentication to the web frontend. After entering credentials and pressing enter the message "504 Gateway Time-Out" appears with the "/dashboard" URL after several seconds.
Author
Owner

@johnmays4545 commented on GitHub (May 8, 2019):

Was this issue ever resolved, I am currently experiencing the same error?

<!-- gh-comment-id:490440864 --> @johnmays4545 commented on GitHub (May 8, 2019): Was this issue ever resolved, I am currently experiencing the same error?
Author
Owner

@Razorblade12 commented on GitHub (May 12, 2019):

@johnmays4545
No, unfortunately not. I did not hear anything since my last post.
I think this might be a nginx configuration issue as I recently had the same issue with a different nginx site. So there must be something specific with the webserver.

<!-- gh-comment-id:491626787 --> @Razorblade12 commented on GitHub (May 12, 2019): @johnmays4545 No, unfortunately not. I did not hear anything since my last post. I think this might be a nginx configuration issue as I recently had the same issue with a different nginx site. So there must be something specific with the webserver.
Author
Owner

@stale[bot] commented on GitHub (Oct 23, 2020):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

<!-- gh-comment-id:715534817 --> @stale[bot] commented on GitHub (Oct 23, 2020): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#1323
No description provided.