You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 1, 2024. It is now read-only.
I'm not sure if this project is still alive judging by the list of (inactive?) issues but I wanted to try it out for a personal email and found out about this. When using the Cloudflare proxy (and combined with Cloudflare Access), trying to login into iRedAdmin returns a 502 Bad Gateway page and throws the following error in logs:
Feb 7 16:05:42 mail iredadmin: [172.17.0.1] GET /iredadmin/login 200 5297 "-"
Feb 7 16:05:43 mail iredadmin: invalid request block size: 4116 (max 4096)...skip
As far as I investigated, this seems to be because of Cloudflare adding extra data to the Cookie header. A workaround such as clearing cookies before logging in can be used, but it is nowhere near ideal. I also put the endpoint behind Cloudflare Access as well, so that might also be adding even more data to the header. The webmail service in the other end works flawlessly.
I also tried to run it with the iredmail/mariadb:nightly image to see if that would work, however, it threw some MySQL Permission denied errors and then exited.
Note: You will NOT be able to reproduce this issue instantly. You will probably need to login (into both iRedAdmin and the Roundcube webmail), do some things and logout before being able to reproduce it. You could also try to create a large cookie manually. Some of the cookies I had were:
iRedAdmin-MYSQL
CF_AppSession
CF_Authorization (by far the largest one)
roundcube_sessid
roundcube_sessauth
The text was updated successfully, but these errors were encountered:
ghost
changed the title
Unable to access /iredadmin/login when using Cloudflare: invalid request block size
Unable to login into iRedAdmin when using Cloudflare: invalid request block size
Feb 7, 2023
I'm not sure if this project is still alive judging by the list of (inactive?) issues but I wanted to try it out for a personal email and found out about this. When using the Cloudflare proxy (and combined with Cloudflare Access), trying to login into iRedAdmin returns a
502 Bad Gateway
page and throws the following error in logs:As far as I investigated, this seems to be because of Cloudflare adding extra data to the
Cookie
header. A workaround such as clearing cookies before logging in can be used, but it is nowhere near ideal. I also put the endpoint behind Cloudflare Access as well, so that might also be adding even more data to the header. The webmail service in the other end works flawlessly.I'm running the container like this:
I also tried to run it with the
iredmail/mariadb:nightly
image to see if that would work, however, it threw some MySQLPermission denied
errors and then exited.Note: You will NOT be able to reproduce this issue instantly. You will probably need to login (into both iRedAdmin and the Roundcube webmail), do some things and logout before being able to reproduce it. You could also try to create a large cookie manually. Some of the cookies I had were:
iRedAdmin-MYSQL
CF_AppSession
CF_Authorization
(by far the largest one)roundcube_sessid
roundcube_sessauth
The text was updated successfully, but these errors were encountered: