[Dovecot] Use a different usename than the recipient address (that require a lookup)?

Timo Sirainen tss at iki.fi
Fri Nov 26 20:27:19 EET 2010


On Mon, 2010-11-08 at 13:42 -0500, Zhou, Yan wrote:

> I am integrating Postfix and DoveCot, both use LDAP to look up
> user/email address info. My question is this: can I create a user
> "jsmith" to get all emails with the recipient address:
> dovecotdemo at domain?  Because of using LDAP, I need to do a lookup to
> know that the user "jsmith" is getting emails for "dovecotdemo at domain",
> NOT "dovecotdemo" (there will be no such user).

If there is e.g. "mail" field that contains "dovecotdemo at domain" value,
you could set for example:

user_attrs = uid=user, (other attributes)
user_filter = (|(uid=%u)(mail=%u))




More information about the dovecot mailing list