[Dovecot] Three oddities

Timo Sirainen tss at iki.fi
Wed Aug 20 19:47:36 EEST 2003


On Wednesday, Aug 20, 2003, at 11:29 Europe/Helsinki, Bob Hall wrote:

> So I'm assuming that imap-master and the
> main dovecot process (/usr/local/sbin/dovecot) are the same.

yep.

> All of the mail accounts run under a Unix
> account, and they all have the Unix account home directory in their 
> LDAP
> homeDirectory records. I'm guessing that Dovecot isn't pulling this 
> info
> from the LDAP registry, and therefore can't post inside dovecot.rawlog.

With Linux you could check what home directory imap process really used 
by looking at /proc/pid/pwd symlink. I don't know if FreeBSD has 
anything similiar.

> I think I've found a another bug. In dovecot-ldap.conf it says:
> # You can use same UID and GID for all user accounts if you really 
> want to.
> # If the UID/GID is still found from LDAP reply, it overrides these 
> values.
> This is ambiguous. I took it to mean
> 	it (LDAP entry) overrides these (global) values
> What it actually means, or at least what actually happens, is
> 	it (global) overrides these (LDAP entry) values

Oh? It's a bug then.

> Furthermore, if user_global_uid isn't explicitly set, it defaults to
> 0. If I set the uid number not equal to 0 in the LDAP entry, but don't 
> set
> user_global_uid, then login fails. From maillog:
> Aug 20 03:15:15 kongemord dovecot: Logins with UID 0 not permitted 
> (user rjhjr)

Yes, the error message could be better.



More information about the dovecot mailing list