Hi everyone,
First and foremost, thanks to whoever reads this and provides support to others regularly, and to the maintainers of this wonderful software. You’re hero’s 😍
I’ve been trying to configure my new server with (nextcloud and) mailcow. Currently I’m stuck where an admin can log in, but a user cannot.
- Changed the user password several times from the admin
- Mailcow UI logs report unauthenticated
- Netfilter logs show “Invalid password for <email address>”
What happens exactly:
- Open the root url
- Fill in credentials
- Press log in
- Red bar pops up with Login failed
- Looking at the response I see the login page returned and a 200
My nginx vhost configuration:
server {
listen 80;
listen [::]:80;
server_name <hostname> autodiscover.* autoconfig.*;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name <hostname> autodiscover.* autoconfig.*;
ssl_certificate /opt/mailcow-dockerized/data/assets/ssl/cert.pem;
ssl_certificate_key /opt/mailcow-dockerized/data/assets/ssl/key.pem;
ssl_session_timeout 1d;
ssl_session_cache shared:SSL:50m;
ssl_session_tickets off;
# See https://ssl-config.mozilla.org/#server=nginx for the latest ssl settings recommendations
# An example config is given below
ssl_protocols TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5:!SHA1:!kRSA;
ssl_prefer_server_ciphers off;
location /Microsoft-Server-ActiveSync {
proxy_pass https://127.0.0.1:9443/Microsoft-Server-ActiveSync;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_connect_timeout 75;
proxy_send_timeout 3650;
proxy_read_timeout 3650;
proxy_buffers 64 512k; # Needed since the 2022-04 Update for SOGo
client_body_buffer_size 512k;
client_max_body_size 0;
}
location / {
proxy_pass https://127.0.0.1:9443/;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
client_max_body_size 0;
# The following Proxy Buffers has to be set if you want to use SOGo after the 2022-04 (April 2022) Update
# Otherwise a Login will fail like this: https://github.com/mailcow/mailcow-dockerized/issues/4537
proxy_buffer_size 128k;
proxy_buffers 64 512k;
proxy_busy_buffers_size 512k;
}
}
Interestingly the fact that I can log in on /admin and not on the root log in as user doesn’t seem to make a lot of sense.
Any help or advice on how to further trace the problem is very much appreciated.