On 2022-10-24, Alessio Cecchi alessio@skye.it wrote:
Director is not only used by large companies but also in small installations consisting of 2 servers and cannot be immediately replaced with Nginx as it has to manage the user/backend association for POP, IMAP, LMTP, Managesieve.
For the small multi-server installations I've done I have used ldap (though another db would work) where a primary server is defined for each user. The MTA does a lookup and uses the relevant host as destination for LMTP delivery. For client connections, users can connect to any server; Dovecot config uses proxy_maybe so if they hit the primary server for their mailbox then it's served directly, and otherwise it's proxied. (And in my case I care more about availability than splitting disk storage, so I replicate in Dovecot). This doesn't use Director.
Isn't Director only really useful in the case where you have 2 or more servers *and shared mailbox storage*, and you don't have a way to define a "primary" server for the mailbox? I don't really see how it's useful for simpler configs.