Jeremy Harris via Exim-users wrote:
> On 04/11/2020 14:15, Victor Sudakov via Exim-users wrote:
> > OTOH it would be good to have the +dovecot_domains compiled automatically
> > from all the domains in /etc/dovecot/users instead of defining it as a
> > semi-static list.
> >
> > (I call it semi-static because it's defined as
> > "domainlist dovecot_domains = dsearch;/home/vmail"
> > So when I add a new dovecot domain, I must remember to create the directory
> > under /home/vmail or rely on dovecot to create it).
>
> If you used a DB (sqlite, pgsql, mysql...) with separate columns for
> local_part and domain, you could easily search for either the full
> account or just the domain.
Yes but this file is also dovecot's passwd-file. It's a straightforward
and resilient setup to use a passwd-file as passdb/userdb.
--
Victor Sudakov, VAS4-RIPE, VAS47-RIPN
2:5005/49@fidonet
http://vas.tomsk.ru/