On Tue, 24 Mar 2026 00:10:31 +1100
Viktor Dukhovni via Postfix-users <[email protected]> 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.

ChatGPT tells me virtual_mailbox_domains is not the best solution,
since virtual_transport is limited to one setting for all domains:

----- Begin ChatGPT excerpt -----
main.cf:
virtual_mailbox_domains = domain1.com, domain2.com
transport_maps = hash:/etc/postfix/transport_maps

transport_maps:
domain1.com lmtp:[imap1]:24
domain2.com lmtp:[imap2]:24

Now you’re mixing:
  virtual delivery model (local ownership)
  transport routing model (relay behavior)

Postfix will:
  classify domains as local (virtual)
  then override delivery via transport_maps

This creates a hybrid behavior that is:
  confusing
  non-standard
  harder to debug
----- End ChatGPT excerpt -----

It suggests I better stick to relay_domains + transport_maps. Does it
have a valid point or is it complete nonsense?
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to