On Mon, Mar 23, 2026 at 02:59:52PM +0000, Sad Clouds wrote: > > Mailbox delivery via LMTP is not SMTP relaying to another domain > > for subsequent additional store and forward processing. > > What if in the future I need to map multiple domains to different > Dovecot servers, for better load distribution or security: > > domains A, B, C --> imap1.example.com, imap2.example.com > domains D, E, F --> imap3.example.com > ... etc.
Fine. > ChatGPT tells me virtual_mailbox_domains is not the best solution, > since virtual_transport is limited to one setting for all domains: The AI is mistaken. If recipient envelope addresses are rewritten to [email protected], then you can just leave off the nexthop in: # Or custom master.cf variant of "lmtp" if desired # virtual_transport = lmtp otherwise, regardless of whether you choose "relay_domains" or "virtual_mailbox_domains", you'll need a transport table: # You can use lmtp: # You can configure use of SRV records here, if desired, ... a.example :imap1.example.com b.example :imap1.example.com c.example :imap1.example.com d.example :[imap3.example.com] d.example :[imap3.example.com] f.example :[imap3.example.com] Nothing about virtual mailbox domains gets in the way any more than it would with relay domains. -- Viktor. _______________________________________________ Postfix-users mailing list -- [email protected] To unsubscribe send an email to [email protected]
