Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ernix/b820949821459de3839e to your computer and use it in GitHub Desktop.
Save ernix/b820949821459de3839e to your computer and use it in GitHub Desktop.
dovecot 2.2.10 mysql virtual user lookup doesn't overwrite uid/gid/home/mail etc

Error:

Couldn't drop privileges: User is missing UID (see mail_uid setting)

Switch include order in conf.d/10-auth.conf to fix the problem.

diff --git a/conf.d/10-auth.conf b/conf.d/10-auth.conf
index e9cfd05..fbfed63 100644
--- a/conf.d/10-auth.conf
+++ b/conf.d/10-auth.conf
@@ -119,8 +119,8 @@ auth_mechanisms = plain login
 #!include auth-deny.conf.ext
 #!include auth-master.conf.ext

-!include auth-system.conf.ext
 !include auth-sql.conf.ext
+!include auth-system.conf.ext
 #!include auth-ldap.conf.ext
 #!include auth-passwdfile.conf.ext
 #!include auth-checkpassword.conf.ext

なんぞこれ

@soujak
Copy link

soujak commented Oct 31, 2015

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment