]> git.ekhem.eu.org Git - server.git/commitdiff
[dovecot] Ignore domain during authentication.
authorJakub Czajka <jakub@ekhem.eu.org>
Sat, 29 Oct 2022 09:04:41 +0000 (11:04 +0200)
committerJakub Czajka <jakub@ekhem.eu.org>
Sun, 3 Dec 2023 17:00:57 +0000 (18:00 +0100)
MacOS Mail App only sends username during login. It fails to
authenticate if `dovecot` checks the domain.

dovecot/dovecot-sql.conf.ext

index 628746f795ae4811fd972d4c404cb650e03f4bc9..3b8cd59fab0428b89547066b3a60684d7a429e0e 100644 (file)
@@ -109,7 +109,7 @@ connect = dbname=mail_db user=dovecot
 #
 password_query = \
   SELECT username, domain, password \
-  FROM users WHERE username = '%n' AND domain = '%d' AND active = 'Y'
+  FROM users WHERE username = '%n' AND active = 'Y'
 
 # userdb query to retrieve the user information. It can return fields:
 #   uid - System UID (overrides mail_uid setting)