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
... I understand that not following the below instructions will result in immediate closure and/or deletion of my issue.
... I have understood that this bug report is dedicated for bugs, and not for support-related inquiries.
... I have understood that answers are voluntary and community-driven, and not commercial support.
... I have verified that my issue has not been already answered in the past. I also checked previous issues.
Description
Hello,
I came across the fact that the Mailcow Identity Provider implementation does not take into account the scenario in which a user's login (IMAP, Sieve, SMTP and co.) is only allowed via App-Pws.
So there is a user who is subject to the identity provider “LDAP”. This user has no permitted protocols for direct access in mailcow. If an auth is now performed (presumably, not further limited without a valid app PW/local PW), this is fired against the LDAP. Thunderbird likes to do this 3-4 times and the LDAP user is then blocked due to bruteforcing.
Logs:
php-fpm-mailcow-1 | 2025-05-06T08:02:40.152903961Z [06-May-2025 10:02:40] WARNING: [pool system-worker] child 327182 said into stderr: "NOTICE: PHP message: MAILCOWAUTH: Login failed for user [email protected]"
dovecot-mailcow-1 | 2025-05-06T08:02:40.154846260Z May 6 10:02:40 498cdd4af2aa dovecot: auth-worker(2084): HTTP request failed with 401 for user [email protected]
dovecot-mailcow-1 | 2025-05-06T08:02:40.154870706Z May 6 10:02:40 498cdd4af2aa dovecot: auth-worker(2084): Error: conn unix:auth-worker (pid=170,uid=401): auth-worker<1648392>: lua([email protected],10.1.81.13,<nw9ZCnM0+IYKAVEN>): passdb-lua: Upstream error
php-fpm-mailcow-1 | 2025-05-06T08:02:40.438108570Z [06-May-2025 10:02:40] WARNING: [pool system-worker] child 379961 said into stderr: "NOTICE: PHP message: MAILCOWAUTH: Login failed for user [email protected]"
dovecot-mailcow-1 | 2025-05-06T08:02:40.439822661Z May 6 10:02:40 498cdd4af2aa dovecot: auth-worker(2084): HTTP request failed with 401 for user [email protected]
dovecot-mailcow-1 | 2025-05-06T08:02:40.439850955Z May 6 10:02:40 498cdd4af2aa dovecot: auth-worker(2084): Error: conn unix:auth-worker (pid=170,uid=401): auth-worker<1648393>: lua([email protected],10.1.81.13,<nw9ZCnM0+IYKAVEN>): passdb-lua: Upstream error
php-fpm-mailcow-1 | 2025-05-06T08:02:46.744402839Z [06-May-2025 10:02:46] WARNING: [pool system-worker] child 307293 said into stderr: "NOTICE: PHP message: MAILCOWAUTH: Login failed for user [email protected]"
dovecot-mailcow-1 | 2025-05-06T08:02:46.746334031Z May 6 10:02:46 498cdd4af2aa dovecot: auth-worker(2084): HTTP request failed with 401 for user [email protected]
dovecot-mailcow-1 | 2025-05-06T08:02:46.746371475Z May 6 10:02:46 498cdd4af2aa dovecot: auth-worker(2084): Error: conn unix:auth-worker (pid=170,uid=401): auth-worker<1648394>: lua([email protected],10.1.81.13,<nw9ZCnM0+IYKAVEN>): passdb-lua: Upstream error
php-fpm-mailcow-1 | 2025-05-06T08:02:47.119162172Z [06-May-2025 10:02:47] WARNING: [pool system-worker] child 318217 said into stderr: "NOTICE: PHP message: MAILCOWAUTH: Login failed for user [email protected]"
dovecot-mailcow-1 | 2025-05-06T08:02:47.121040685Z May 6 10:02:47 498cdd4af2aa dovecot: auth-worker(2084): HTTP request failed with 401 for user [email protected]
dovecot-mailcow-1 | 2025-05-06T08:02:47.121175771Z May 6 10:02:47 498cdd4af2aa dovecot: auth-worker(2084): Error: conn unix:auth-worker (pid=170,uid=401): auth-worker<1648395>: lua([email protected],10.1.81.13,<nw9ZCnM0+IYKAVEN>): passdb-lua: Upstream error
sogo-mailcow-1 | 2025-05-06T08:02:53.015079437Z May 6 10:02:53 0a385d00519c sogod[9:60] -[NGLdapConnection _searchAtBaseDN:qualifier:attributes:scope:]: search at base 'ou=users,dc=mgpv,dc=net' filter '([email protected])' for attrs '*'
php-fpm-mailcow-1 | 2025-05-06T08:02:53.582373822Z [06-May-2025 10:02:53] WARNING: [pool system-worker] child 327182 said into stderr: "NOTICE: PHP message: MAILCOWAUTH: Login failed for user [email protected]"
dovecot-mailcow-1 | 2025-05-06T08:02:53.584856861Z May 6 10:02:53 498cdd4af2aa dovecot: auth-worker(2084): HTTP request failed with 401 for user [email protected]
dovecot-mailcow-1 | 2025-05-06T08:02:53.585322614Z May 6 10:02:53 498cdd4af2aa dovecot: auth-worker(2084): Error: conn unix:auth-worker (pid=170,uid=401): auth-worker<1648412>: lua([email protected],10.1.81.13,<nw9ZCnM0+IYKAVEN>): passdb-lua: Upstream error
php-fpm-mailcow-1 | 2025-05-06T08:02:54.040676213Z [06-May-2025 10:02:54] WARNING: [pool system-worker] child 379961 said into stderr: "NOTICE: PHP message: MAILCOWAUTH: Login failed for user [email protected]"
dovecot-mailcow-1 | 2025-05-06T08:02:54.042410819Z May 6 10:02:54 498cdd4af2aa dovecot: auth-worker(2084): HTTP request failed with 401 for user [email protected]
dovecot-mailcow-1 | 2025-05-06T08:02:54.042767037Z May 6 10:02:54 498cdd4af2aa dovecot: auth-worker(2084): Error: conn unix:auth-worker (pid=170,uid=401): auth-worker<1648413>: lua([email protected],10.1.81.13,<nw9ZCnM0+IYKAVEN>): passdb-lua: Upstream error
dovecot-mailcow-1 | 2025-05-06T08:02:56.069782378Z May 6 10:02:56 498cdd4af2aa dovecot: imap-login: Disconnected: Connection closed (auth service reported temporary failure): user=<[email protected]>, method=PLAIN, rip=10.1.81.13, lip=172.22.1.250, TLS, TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
Steps to reproduce:
1. connect an identity provider (type: ldap)
2. make sure to have a mailbox connected to it
3. make sure that all "Allowed protocols for direct user access" are unselected
4. Create an app-password for the user
5. Login using a random password
Which branch are you using?
master
Which architecture are you using?
x86
Operating System:
Debian 12
Server/VM specifications:
Is Apparmor, SELinux or similar active?
no
Virtualization technology:
KVM
Docker version:
28.0.4
docker-compose version or docker compose version:
v2.34.0
mailcow version:
2025-03b
Reverse proxy:
None internally (nginx of mailcow itself), externally apache2
jr3001
changed the title
Identity Provider (LDAP): Wrong auth via App-PW is forwarded to LDAP even when only App-PWs are allowed
Identity Provider (LDAP): Wrong auth via App-PW is forwarded to LDAP even if only App-PWs are allowed
May 6, 2025
Contribution guidelines
I've found a bug and checked that ...
Description
Logs:
Steps to reproduce:
Which branch are you using?
master
Which architecture are you using?
x86
Operating System:
Debian 12
Server/VM specifications:
Is Apparmor, SELinux or similar active?
no
Virtualization technology:
KVM
Docker version:
28.0.4
docker-compose version or docker compose version:
v2.34.0
mailcow version:
2025-03b
Reverse proxy:
None internally (nginx of mailcow itself), externally apache2
Logs of git diff:
Logs of iptables -L -vn:
Logs of ip6tables -L -vn:
Logs of iptables -L -vn -t nat:
Logs of ip6tables -L -vn -t nat:
DNS check:
The text was updated successfully, but these errors were encountered: