Userdb by directory lookup

Aki Tuomi aki.tuomi at dovecot.fi
Thu Aug 30 10:32:50 EEST 2018


Is there some reason why you cannot use LDAP as userdb? Those uid / gid
/ home parameters can be also provided as global settings like

mail_uid=vmail

mail_gid=vmail

mail_home=/data/vmail/user/%n

Aki


On 29.08.2018 23:12, Miloslav Hůla wrote:
> Hi,
>
> I have the Dovecot (2.2.27-3+deb9u2) with LMTP and Postfix. Static
> userdb:
>
> userdb {
>   driver = static
>   args = uid=vmail gid=vmail home=/data/vmail/user/%n allow_all_users=yes
> }
>
> and passdb by LDAP, only to verify IMAP user password by bind.
>
>
> Problem is, when someone sends email to non-existent at mydomain.tld,
> Dovecot automatically creates its home directory and Maildir.
>
> Is there any way how deliver only when /data/vmail/user/%n directory
> already exists, and reject otherwise?
>
> When I remove allow_all_users=yes, LMTP stops to deliver at all with
> 550 code. I probably understand why, but I cannot figure how to solve
> it. I cannot use LDAP to user lookup.
>
> Milo



More information about the dovecot mailing list